summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-10-25 21:06:14 +0000
committerrillig <rillig@pkgsrc.org>2006-10-25 21:06:14 +0000
commit895e23377b141df1b8b2c5a30d639e0985a0b930 (patch)
treef10cf40671a1902facd0f65572e88a1a6e864fb5
parent8cca3676185b500d81f8d983b60fcfd62c0b3deb (diff)
downloadpkgsrc-895e23377b141df1b8b2c5a30d639e0985a0b930.tar.gz
Fixed "test ==" and pkglint warnings.
-rw-r--r--games/ketm/Makefile21
-rw-r--r--games/ketm/distinfo3
-rw-r--r--games/ketm/patches/patch-ad26
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