Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2003 17:13:29 +0100 (CET)
From:      "Simon 'portlint' Schubert" <corecode@corecode.ath.cx>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        greid@FreeBSD.org, nakai@FreeBSD.org, sobomax@FreeBSD.org, stijn@win.tue.nl, vsilyaev@mindspring.com
Subject:   ports/48249: unPERLify ports/emulators
Message-ID:  <200302131613.h1DGDTeL053946@terrorfish.uni.stoert.net>

next in thread | raw e-mail | index | archive | help

>Number:         48249
>Category:       ports
>Synopsis:       unPERLify ports/emulators
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 13 08:20:20 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Simon 'portlint' Schubert
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD terrorfish.uni.stoert.net 5.0-CURRENT FreeBSD 5.0-CURRENT #46: Thu Jan 30 15:51:45 CET 2003 corecode@terrorfish.uni.stoert.net:/usr/obj/athlon/usr/src/sys/TERRORFISH i386


	
>Description:
	unPERLify
	
>How-To-Repeat:
	
>Fix:

Index: bfe/Makefile
===================================================================
RCS file: /home/ncvs/ports/emulators/bfe/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- bfe/Makefile	4 Jul 2002 09:20:28 -0000	1.8
+++ bfe/Makefile	13 Feb 2003 16:01:19 -0000
@@ -16,15 +16,16 @@
 RUN_DEPENDS=	bochs:${PORTSDIR}/emulators/bochs
 
 USE_X_PREFIX=	yes
+USE_REINPLACE=	yes
 USE_XPM=	yes
 
 WRKSRC=		${WRKDIR}/bfe
 
 pre-build:
-	${PERL} -pi -e "s@/usr/X11R6@${X11BASE}@g; \
+	${REINPLACE_CMD} -e 's@/usr/X11R6@${X11BASE}@g; \
 			s@/usr/local@${LOCALBASE}@g; \
 			s@-lforms@-lforms -lXpm@g; \
-			s@gcc@${CC}@g; s@-O2@${CFLAGS}@g" ${WRKSRC}/Makefile
+			s@gcc@${CC}@g; s@-O2@${CFLAGS}@g' ${WRKSRC}/Makefile
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/bfe ${PREFIX}/bin
Index: gngb/Makefile
===================================================================
RCS file: /home/ncvs/ports/emulators/gngb/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- gngb/Makefile	2 Jan 2003 15:06:02 -0000	1.4
+++ gngb/Makefile	13 Feb 2003 16:00:18 -0000
@@ -16,6 +16,7 @@
 LIB_DEPENDS=	SDL-1.1.5:${PORTSDIR}/devel/sdl12
 
 GNU_CONFIGURE=	yes
+USE_REINPLACE=	yes
 USE_GMAKE=	yes
 USE_XLIB=	yes
 USE_X_PREFIX=	yes
@@ -38,13 +39,13 @@
 .endif
 
 pre-configure:
-	@${PERL} -pi -e 's|sdl-config|sdl11-config|g' ${WRKSRC}/configure
-	@${PERL} -pi -e 's|-lSDL|-lSDL-1.1|g' ${WRKSRC}/configure
-	@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|sdl-config|sdl11-config|g; \
+		s|-lSDL|-lSDL-1.1|g; \
+		s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
 
 post-configure:
 .if !defined(WITH_OPTIMIZED_CFLAGS)
-	@${PERL} -pi -e 's|(CFLAGS =).*|\1 ${PORT_CFLAGS} ${CFLAGS}|' ${WRKSRC}/src/Makefile
+	@${REINPLACE_CMD} -e 's|\(CFLAGS =\).*|\1 ${PORT_CFLAGS} ${CFLAGS}|' ${WRKSRC}/src/Makefile
 .endif
 
 .include <bsd.port.mk>
Index: visualos/Makefile
===================================================================
RCS file: /home/ncvs/ports/emulators/visualos/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- visualos/Makefile	10 Jun 2002 09:55:01 -0000	1.6
+++ visualos/Makefile	13 Feb 2003 16:04:08 -0000
@@ -14,6 +14,7 @@
 MAINTAINER=	sobomax@FreeBSD.org
 
 USE_X_PREFIX=	yes
+USE_REINPLACE=	yes
 USE_GMAKE=	yes
 USE_GNOME=	yes
 USE_LIBTOOL=	yes
@@ -23,10 +24,10 @@
 MAN1=		VisualOS.1
 
 pre-patch:
-	@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
-		s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
-	@find ${WRKSRC} -name "Makefile.in*" | xargs ${PERL} -pi -e \
-		's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
-		 s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+		s|\(DATADIRNAME=\)lib|\1share|g' ${WRKSRC}/configure
+	@${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \
+		's|\(\$$(datadir)/\)gnome/|\1/|g ; \
+		 s|\$$(datadir)/locale|$$(prefix)/share/locale|g'
 
 .include <bsd.port.mk>
Index: vmware2/Makefile
===================================================================
RCS file: /home/ncvs/ports/emulators/vmware2/Makefile,v
retrieving revision 1.47
diff -u -r1.47 Makefile
--- vmware2/Makefile	12 Feb 2003 19:15:54 -0000	1.47
+++ vmware2/Makefile	13 Feb 2003 16:06:08 -0000
@@ -38,6 +38,7 @@
 
 USE_SUBMAKE=	yes
 USE_LINUX=	yes
+USE_PERL5=	yes
 VMDIR=		${PREFIX}/lib/vmware
 
 ONLY_FOR_ARCHS=	i386
Index: xmame/Makefile
===================================================================
RCS file: /home/ncvs/ports/emulators/xmame/Makefile,v
retrieving revision 1.50
diff -u -r1.50 Makefile
--- xmame/Makefile	2 Jan 2003 15:06:03 -0000	1.50
+++ xmame/Makefile	13 Feb 2003 16:07:13 -0000
@@ -20,6 +20,7 @@
 MAINTAINER?=	stijn@win.tue.nl
 
 USE_BZIP2=	yes
+USE_PERL5=	yes
 USE_GMAKE=	yes
 USE_GNOMENG=	yes
 
	


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302131613.h1DGDTeL053946>