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

Avoid use of Perl.

This commit is contained in:
Trevor Johnson 2003-11-21 03:20:21 +00:00
parent f2e9fdbd86
commit 221ab4b10c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94598

View File

@ -21,14 +21,16 @@ MAKEFILE= Makefile-xpm
PLIST= ${WRKDIR}/pkg-plist
SCRIPTS= startswm
USE_GMAKE= yes
USE_PERL5_BUILD=yes
USE_XPM= yes
USE_X_PREFIX= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
post-patch:
${PERL} -pi -e "s:PREFIX:${PREFIX}:g" \
${WRKSRC}/init.c ${WRKSRC}/swm.conf
.for ii in init.c swm.conf
${MV} ${WRKSRC}/${ii} ${WRKSRC}/${ii}.orig
${SED} -e "s:PREFIX:${PREFIX}:g" \
< ${WRKSRC}/${ii}.orig > ${WRKSRC}/${ii}
.endfor
post-build:
cd ${WRKSRC}/../swmbg && ${CC} ${CFLAGS} -I${X11BASE}/include *.c \