diff options
author | rillig <rillig> | 2006-10-25 21:06:14 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-10-25 21:06:14 +0000 |
commit | d1240bccae9fe7b94748257ca9760f788823f381 (patch) | |
tree | f10cf40671a1902facd0f65572e88a1a6e864fb5 | |
parent | c53a29910cc8d9df367a454cb1ad4c2b88ffa5a5 (diff) | |
download | pkgsrc-d1240bccae9fe7b94748257ca9760f788823f381.tar.gz |
Fixed "test ==" and pkglint warnings.
-rw-r--r-- | games/ketm/Makefile | 21 | ||||
-rw-r--r-- | games/ketm/distinfo | 3 | ||||
-rw-r--r-- | games/ketm/patches/patch-ad | 26 |
3 files changed, 34 insertions, 16 deletions
diff --git a/games/ketm/Makefile b/games/ketm/Makefile index 811044f0b39..6158a4e8774 100644 --- a/games/ketm/Makefile +++ b/games/ketm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2006/06/12 16:28:09 wiz Exp $ +# $NetBSD: Makefile,v 1.25 2006/10/25 21:06:14 rillig Exp $ # DISTNAME= ketm-0.0.6 @@ -15,25 +15,16 @@ BUILD_TARGET= ketm USE_TOOLS+= gmake -INSTALLATION_DIRS= bin +INSTALLATION_DIRS= bin share/ketm/data -post-patch: - cd ${WRKSRC} && \ - for f in *.c; do \ - ${SED} "s,data/,${LOCALBASE}/share/ketm/data/,g" $${f} \ - > $${f}.done; \ - ${MV} $${f}.done $${f}; \ - done - - ${SED} "s,data/,${LOCALBASE}/share/ketm/data/,g" \ - ${WRKSRC}/font.h > ${WRKSRC}/font.h.done - ${MV} ${WRKSRC}/font.h.done ${WRKSRC}/font.h +SUBST_CLASSES+= ketm +SUBST_STAGE.ketm= pre-configure +SUBST_FILES.ketm= *.c font.h +SUBST_SED.ketm= -e "s,data/,${LOCALBASE}/share/ketm/data/,g" do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ketm ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${PREFIX}/share/ketm ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/ketm - ${INSTALL_DATA_DIR} ${PREFIX}/share/ketm/data cd ${WRKSRC}/data && \ ${INSTALL_DATA} *.bmp *.dat ${PREFIX}/share/ketm/data diff --git a/games/ketm/distinfo b/games/ketm/distinfo index ea7781b0345..5fddeb8459a 100644 --- a/games/ketm/distinfo +++ b/games/ketm/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.7 2006/03/30 21:18:23 joerg Exp $ +$NetBSD: distinfo,v 1.8 2006/10/25 21:06:14 rillig Exp $ SHA1 (ketm-0.0.6.tar.bz2) = 3275b6be9178e30478609db9b8f897ae212df049 RMD160 (ketm-0.0.6.tar.bz2) = 28e0fad25d15e466e5f94aa456a692429ed9b31b @@ -6,3 +6,4 @@ Size (ketm-0.0.6.tar.bz2) = 1836502 bytes SHA1 (patch-aa) = 619ca79fc73983f60a0449226bcf1ca546776b2f SHA1 (patch-ab) = 33edc5d12a930308f51994130859e6b3f30afb75 SHA1 (patch-ac) = d7dd4aedf4d8d20930a15c0a99f0b423b009401a +SHA1 (patch-ad) = a52991fa1bce6cb2e7a43b8eff837cd42c79d6cb diff --git a/games/ketm/patches/patch-ad b/games/ketm/patches/patch-ad new file mode 100644 index 00000000000..35bd44730f4 --- /dev/null +++ b/games/ketm/patches/patch-ad @@ -0,0 +1,26 @@ +$NetBSD: patch-ad,v 1.1 2006/10/25 21:06:14 rillig Exp $ + +--- Configure.orig 2001-09-13 13:15:28.000000000 +0200 ++++ Configure 2006-10-25 23:02:00.000000000 +0200 +@@ -54,15 +54,12 @@ else + fi + + +-if [ "${OS}" == "BSD" ]; then +- LDFLAGS="`sdl-config --libs` -lm -L/usr/X11R6/lib -lX11 -lXext -lXxf86dga -lXxf86misc -lXxf86vm" +-elif [ "${OS}" == "Linux" ]; then +- LDFLAGS="`sdl-config --libs`" +-elif [ "${OS}" == "BeOS" ]; then +- LDFLAGS="`sdl-config --libs`" +-elif [ "${OS}" == "UNIX" ]; then +- LDFLAGS="`sdl-config --libs`" +-fi ++case "$OS" in ++BSD) LDFLAGS="`sdl-config --libs` -lm -L/usr/X11R6/lib -lX11 -lXext -lXxf86dga -lXxf86misc -lXxf86vm";; ++Linux) LDFLAGS="`sdl-config --libs`";; ++BeOS) LDFLAGS="`sdl-config --libs`";; ++UNIX) LDFLAGS="`sdl-config --libs`";; ++esac + + echo -n "Checking Release Type..." + if [ "${type}" == "debug" ]; then |