diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 06:59:03 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 06:59:03 +0000 |
commit | 0c6a3253fe7d652e4d744555cc7352fffd4d103a (patch) | |
tree | 85dcef76c01a75047f6f6e519e34539fa17ae348 /games/tetrinetx | |
parent | 4e56d99acab2b215405ccc900e56d697c30ae727 (diff) | |
download | pkgsrc-0c6a3253fe7d652e4d744555cc7352fffd4d103a.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'games/tetrinetx')
-rw-r--r-- | games/tetrinetx/Makefile | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/games/tetrinetx/Makefile b/games/tetrinetx/Makefile index 187183fc097..e36d75a7dcf 100644 --- a/games/tetrinetx/Makefile +++ b/games/tetrinetx/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2007/09/02 12:33:13 joerg Exp $ +# $NetBSD: Makefile,v 1.5 2008/03/04 06:59:06 jlam Exp $ DISTNAME= tetrinetx-1.13.16+qirc-1.40c PKGNAME= tetrinetx-1.13.16 @@ -10,6 +10,8 @@ MAINTAINER= david@netbsd-fr.org HOMEPAGE= ${MASTER_SITES} COMMENT= Server for an addictive 6 player tetris game +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/${DISTNAME} SHAREDIR= ${PREFIX}/share/tetrinetx BINARY= tetrix.netbsd @@ -20,20 +22,21 @@ LIBS.SunOS+= -lsocket -lnsl -lresolv do-build: cd ${WRKSRC:Q}/src && \ ${CC} \ - ${CPPFLAGS} -I${LOCALBASE:Q}/include \ + ${CPPFLAGS} -I${PREFIX:Q}/include \ -DSHAREDIR=\"${SHAREDIR:Q}\" -DPREFIX=\"${PREFIX:Q}\" \ ${CFLAGS} -fno-strength-reduce -Wall \ - ${LDFLAGS} -L${LOCALBASE:Q}/lib -ladns ${LIBS} \ - -o ../bin/${BINARY:Q} -Wl,-R${LOCALBASE:Q}/lib \ + ${LDFLAGS} -L${PREFIX:Q}/lib -ladns ${LIBS} \ + -o ../bin/${BINARY:Q} -Wl,-R${PREFIX:Q}/lib \ main.c do-install: - ${INSTALL_DATA_DIR} ${SHAREDIR} - ${INSTALL_PROGRAM} ${WRKSRC:Q}/bin/${BINARY:Q} ${PREFIX:Q}/bin/tetrix - ${INSTALL_DATA} ${WRKSRC:Q}/bin/game.conf ${SHAREDIR:Q} - ${INSTALL_DATA} ${WRKSRC:Q}/bin/game.secure ${SHAREDIR:Q} - ${INSTALL_DATA} ${WRKSRC:Q}/bin/game.motd ${SHAREDIR:Q} - ${INSTALL_DATA} ${WRKSRC:Q}/bin/game.pmotd ${SHAREDIR:Q} + ${INSTALL_DATA_DIR} ${DESTDIR}${SHAREDIR} + ${INSTALL_PROGRAM} ${WRKSRC:Q}/bin/${BINARY:Q} \ + ${DESTDIR}${PREFIX:Q}/bin/tetrix + ${INSTALL_DATA} ${WRKSRC:Q}/bin/game.conf ${DESTDIR}${SHAREDIR:Q} + ${INSTALL_DATA} ${WRKSRC:Q}/bin/game.secure ${DESTDIR}${SHAREDIR:Q} + ${INSTALL_DATA} ${WRKSRC:Q}/bin/game.motd ${DESTDIR}${SHAREDIR:Q} + ${INSTALL_DATA} ${WRKSRC:Q}/bin/game.pmotd ${DESTDIR}${SHAREDIR:Q} .include "../../net/adns/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |