1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

unPERLify and use REINPLACE_CMD and USE_PERL5 where appropriate.

PR:		48249
Submitted by:	Simon 'portlint' Schubert <corecode@corecode.ath.cx>
This commit is contained in:
Joe Marcus Clarke 2003-11-15 20:20:56 +00:00
parent 645aeccf22
commit 3ccf7ec93f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94050
3 changed files with 7 additions and 4 deletions

View File

@ -18,6 +18,7 @@ COMMENT= GameBoy(tm) emulator
LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12
GNU_CONFIGURE= yes
USE_REINPLACE= yes
USE_GMAKE= yes
USE_GETOPT_LONG=yes
USE_XLIB= yes
@ -41,13 +42,13 @@ PORT_CFLAGS+= -DSDL_GL
.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>

View File

@ -39,6 +39,7 @@ FREEBSD_MODULE_SITES= \
USE_SUBMAKE= yes
USE_LINUX= yes
USE_PERL5= yes
VMDIR= ${PREFIX}/lib/vmware
SRC_BASE?= /usr/src

View File

@ -21,6 +21,7 @@ MAINTAINER?= refugee@vt.edu
COMMENT?= UNIX/X11 port of the Multi Arcade Machine Emulator (MAME)
USE_BZIP2= yes
USE_PERL5= yes
USE_GMAKE= yes
USE_REINPLACE= yes