Add dependency on x11-servers/Xfree86-4-Server.

Add pkg-install.

Submitted by:	Kato Tsuguru <tkato@prontomail.ne.jp
Reviewed by:	will
This commit is contained in:
Trevor Johnson 2000-10-23 12:03:46 +00:00
parent 90e309d9eb
commit 90822f14d1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34131
2 changed files with 14 additions and 5 deletions

View file

@ -13,6 +13,8 @@ EXTRACT_SUFX= .c.gz
MAINTAINER= trevor@FreeBSD.org
RUN_DEPENDS= XFree86:${PORTSDIR}/x11-servers/XFree86-4-Server
NO_WRKSUBDIR= yes
USE_X_PREFIX= yes
@ -21,12 +23,10 @@ do-extract:
${GUNZIP_CMD} -c ${_DISTDIR}${DISTFILES} > ${WRKSRC}/wrapper.c
do-build:
${CC} -o ${WRKDIR}/Xwrapper ${WRKDIR}/wrapper.c
cd ${WRKSRC} && ${CC} ${CFLAGS} -o Xwrapper wrapper.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/Xwrapper ${PREFIX}/bin/
${LN} -sf ${PREFIX}/bin/Xwrapper ${PREFIX}/bin/X
${CHMOD} -s ${PREFIX}/bin/XFree86
${CHMOD} +s ${PREFIX}/bin/Xwrapper
${INSTALL_PROGRAM} ${WRKSRC}/Xwrapper ${PREFIX}/bin
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>

9
x11/wrapper/pkg-install Normal file
View file

@ -0,0 +1,9 @@
#!/bin/sh
if [ "X$2" != "XPOST-INSTALL" ]; then
exit 0
fi
/bin/ln -sf ${PKG_PREFIX}/bin/Xwrapper ${PKG_PREFIX}/bin/X
/bin/chmod -s ${PKG_PREFIX}/bin/XFree86
/bin/chmod +s ${PKG_PREFIX}/bin/Xwrapper