diff options
Diffstat (limited to 'games/nethack-qt/Makefile')
-rw-r--r-- | games/nethack-qt/Makefile | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/games/nethack-qt/Makefile b/games/nethack-qt/Makefile index 7b81e59d5da..7fbe1600763 100644 --- a/games/nethack-qt/Makefile +++ b/games/nethack-qt/Makefile @@ -1,10 +1,13 @@ -# $NetBSD: Makefile,v 1.3 1998/12/29 19:42:09 tron Exp $ +# $NetBSD: Makefile,v 1.4 1998/12/31 13:20:52 tv Exp $ # DISTNAME= qnethack-3.2.2.1.0.1.src PKGNAME= nethack-qt-3.2.2 CATEGORIES= games x11 -MASTER_SITES= ftp://ftp.troll.no/contrib/ +DISTFILES= qnethack-3.2.2.1.0.1.src.tar.gz \ + nethack-3.2.2.tar.gz +MASTER_SITES= ftp://ftp.troll.no/contrib/ \ + http://pinky.wtower.com/nethack/sources/ MAINTAINER= root@garbled.net HOMEPAGE= http://trolls.troll.no/warwick/nethack/ @@ -13,28 +16,28 @@ DEPENDS+= nethack-lib-3.2.2:../nethack-lib DEPENDS+= xpm-3.4k:../../graphics/xpm DEPENDS+= qt-1.42:../../x11/qt +WRKSRC= ${WRKDIR}/nethack-3.2.2 + USE_GMAKE= yes -WRKSRC= ../nethack-lib/${WRKDIR_BASENAME}/nethack-3.2.2 +HAS_CONFIGURE= yes +CONFIGURE_SCRIPT= sys/unix/setup.sh ALL_TARGET= nethack tiles.xpm INSTALL_TARGET= binfiles MAKE_ENV+= GTYPE=-qt QTDIR=${X11BASE} -do-extract: - -@mkdir ${WRKDIR_BASENAME} - (cd ../nethack-lib && make clean) - (cd ../nethack-lib && make patch) - (cd ${WRKSRC}/sys/unix && sh ./setup.sh) - (cd ${WRKSRC}/src && make clean) - (cd ${WRKSRC}/win && ${EXTRACT_CMD} -xzf ${DISTDIR}/${DISTNAME}.tar.gz) +PATCHFILES+= ${PKGSRCDIR}/games/nethack-lib/patches/patch-* +ALLFILES= ${DISTFILES} # don't checksum shared patches + +post-extract: + @${LN} -sf ../../Qt ${WRKSRC}/win/Qt post-patch: - (cd ${WRKSRC} && ${PATCH} -p0 < win/Qt/nhqt.patch) - (cd ../nethack-lib && make configure) + @${MV} ${WRKSRC}/include/config.h ${WRKSRC}/foo + @${SED} -e 's@XXXLOCALBASEXXX@${LOCALBASE}@g' <${WRKSRC}/foo> ${WRKSRC}/include/config.h + @${RM} -f ${WRKSRC}/foo + @cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < win/Qt/nhqt.patch post-install: ${INSTALL} -c -o bin -g games -m 0644 ${WRKSRC}/dat/tiles.xpm ${LOCALBASE}/share/nethackdir -do-clean: - -@rm -r ${WRKDIR_BASENAME} - .include "../../mk/bsd.pkg.mk" |