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

Move the configuration bits from scripts/ into Makefile, using a pre-build

target to patch ${WRKSRC}/Makefile.
This should fix an install problem with XFree86-4.
This commit is contained in:
Jean-Marc Zucconi 2001-12-10 04:04:33 +00:00
parent ead84ab467
commit fd6222659a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51302
2 changed files with 7 additions and 11 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= xsnow
PORTVERSION= 1.40
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR= games
@ -17,6 +18,12 @@ MAINTAINER= jmz@FreeBSD.org
USE_IMAKE= yes
MAN6= xsnow.6
pre-build:
@cd ${WRKSRC} && ${MV} Makefile Makefile~ && ${SED} \
-e 's: BINDIR .*:BINDIR=${PREFIX}/bin:' \
-e 's: MANDIR .*:MANDIR=${PREFIX}/man/man6:' \
-e 's: MANSUFFIX .*:MANSUFFIX=6:' <Makefile~ >Makefile
pre-install:
@${MKDIR} ${PREFIX}/bin
@${MKDIR} ${PREFIX}/man/man6

View File

@ -1,11 +0,0 @@
#!/bin/sh
cd $WRKSRC || exit 1;
mv xsnow.c xsnow.c.orig
sed -e 's/^void usleep(usec)/void Xusleep(usec)/' <xsnow.c.orig>xsnow.c
echo "BINDIR=$PREFIX/bin" >> Imakefile || exit 1;
echo "MANDIR=$PREFIX/man/man6" >> Imakefile || exit 1;
echo "MANSUFFIX=6" >> Imakefile || exit 1;
exit 0;