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:
parent
ead84ab467
commit
fd6222659a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51302
@ -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
|
||||
|
11
x11/xsnow/scripts/configure
vendored
11
x11/xsnow/scripts/configure
vendored
@ -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;
|
Loading…
Reference in New Issue
Block a user