summaryrefslogtreecommitdiff
path: root/games/toppler/Makefile
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-04-02 16:43:40 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-04-02 16:43:40 +0000
commit82151969a7e765675a57233558f4e8009bc3bb07 (patch)
tree4792d3fa9cb533322c89126588dd2dce2fa032fc /games/toppler/Makefile
parentadd fspanel 0.7.6 (diff)
toppler (aka nebulous) is a game where you have to guide a small
frog up a tower, avoiding the baddies. You do have a snowball to fire, though. PR: 34119 Submitted by: dom@happygiraffe.net
Notes
Notes: svn path=/head/; revision=57219
Diffstat (limited to 'games/toppler/Makefile')
-rw-r--r--games/toppler/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/games/toppler/Makefile b/games/toppler/Makefile
new file mode 100644
index 000000000000..48f09f4744a7
--- /dev/null
+++ b/games/toppler/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: toppler
+# Date created: 18 Jan 2002
+# Whom: Dom Mitchell <dom@happygiraffe.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= toppler
+PORTVERSION= 0.71
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= toppler
+
+MAINTAINER= dom@happygiraffe.net
+
+LIB_DEPENDS= SDL-1.1:${PORTSDIR}/devel/sdl12
+
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
+
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}"
+
+SCOREDIR?= /var/games/${PORTNAME}
+SCOREFILE?= ${PORTNAME}.hscr
+
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+ @find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cc" \) | \
+ xargs ${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g'
+
+post-patch:
+ @${PERL} -pi -e 's|%SCOREDIR%|${SCOREDIR}|g;' \
+ -e 's|%SCOREFILE%|${SCOREFILE}|g' ${WRKSRC}/menu.cc
+
+pre-install:
+ ${MKDIR} ${SCOREDIR}
+
+post-install:
+ ${CHOWN} root:games ${PREFIX}/bin/${PORTNAME}
+ ${CHMOD} g+s ${PREFIX}/bin/${PORTNAME}
+ ${TOUCH} ${SCOREDIR}/${SCOREFILE}
+ ${CHMOD} 664 ${SCOREDIR}/${SCOREFILE}
+ ${CHOWN} root:games ${SCOREDIR}/${SCOREFILE}
+
+.include <bsd.port.mk>