1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

unPERLify by using REINPLACE_CMD where appropriate.

PR:		47656
Submitted by:	Simon 'portlint' Schubert <corecode@corecode.ath.cx>
This commit is contained in:
Joe Marcus Clarke 2003-11-15 20:07:28 +00:00
parent 6161de9f22
commit d3863e248a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94045
2 changed files with 11 additions and 9 deletions

View File

@ -13,7 +13,7 @@ MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= halifax
MAINTAINER= domi@saargate.de
COMMENT= a GNOME compliant fax viewer which ist capable of displaying TIFF G3 faxes
COMMENT= GNOME compliant fax viewer capable of displaying TIFF G3 faxes
LIB_DEPENDS= gnomeprint.16:${PORTSDIR}/print/gnomeprint \
gconf-1.1:${PORTSDIR}/devel/gconf \
@ -21,6 +21,7 @@ LIB_DEPENDS= gnomeprint.16:${PORTSDIR}/print/gnomeprint \
USE_GMAKE= yes
USE_X_PREFIX= yes
USE_REINPLACE= yes
USE_GNOME= yes
USE_LIBTOOL= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
@ -29,10 +30,10 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
MAN1= halifax.1 ghfaxviewer.1
pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
@${REINPLACE_CMD} -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'
@${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>

View File

@ -14,6 +14,7 @@ MAINTAINER= pat@FreeBSD.org
COMMENT= A Window Maker dockapp that helps with easy use of pppd
USE_X_PREFIX= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_GNOME= gtk12
@ -25,14 +26,14 @@ CONFIGURE_ARGS= --x-includes="${X11BASE}/include" \
MAN1= yawmppp.1x
pre-patch:
@${PERL} -pi -e "s@-g -O2@${CFLAGS}@g; s@-O2 -Wall@${CFLAGS} -Wall@g; \
@${REINPLACE_CMD} -e "s@-g -O2@${CFLAGS}@g; s@-O2 -Wall@${CFLAGS} -Wall@g; \
s@-O2@${CFLAGS}@g" ${WRKSRC}/*/Makefile.in \
${WRKSRC}/configure ${WRKSRC}/*/*/Makefile.in
@${PERL} -pi -e 's!\/usr\/local!${PREFIX}!; \
@${REINPLACE_CMD} -e 's!\/usr\/local!${PREFIX}!; \
s!/usr/bin!${PREFIX}/bin!' ${WRKSRC}/src/ycommon.c
@${PERL} -pi.orig -e 's|/etc/ppp/yagetmodemspeed|${PREFIX}/bin/yagetmodemspeed|' \
@${REINPLACE_CMD} -e 's|/etc/ppp\(/yagetmodemspeed\)|${PREFIX}/bin\1|' \
${WRKSRC}/src/gtksetup/applet.c
@${PERL} -pi.orig -e 's|tac|cat|' ${WRKSRC}/src/dockapp/getmodemspeed.c
@${REINPLACE_CMD} -e 's|tac|cat|' ${WRKSRC}/src/dockapp/getmodemspeed.c
do-install:
.for file in dockapp/yagetmodemspeed dockapp/${PORTNAME} gtklog/${PORTNAME}.log \