summaryrefslogtreecommitdiff
path: root/games/xgammon/Makefile
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>1997-01-03 08:15:44 +0000
committerThomas Gellekum <tg@FreeBSD.org>1997-01-03 08:15:44 +0000
commit6ea18d7a8c5fcfe882285533ed1989ae9d2111b2 (patch)
treecc4320a36b4ad38fcf4b61edb9323402529dfa43 /games/xgammon/Makefile
parentInstall manpage in man6 as the man page header says it is. (diff)
Import of xgammon, a backgammon game for X11.
The do-extract rule is extremely ugly; I just don't want to write a general tool for RedHats rpm format...
Notes
Notes: svn path=/head/; revision=5182
Diffstat (limited to 'games/xgammon/Makefile')
-rw-r--r--games/xgammon/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/games/xgammon/Makefile b/games/xgammon/Makefile
new file mode 100644
index 000000000000..e25576dc4c4b
--- /dev/null
+++ b/games/xgammon/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: xgammon
+# Version required: 0.98-7
+# Date created: 02 January 1997
+# Whom: Thomas Gellekum <tg@FreeBSD.ORG>
+#
+# $Id$
+#
+
+DISTNAME= xgammon-0.98
+CATEGORIES= games
+MASTER_SITES= ftp://ftp.redhat.com/pub/redhat/devel/srpms/SRPMS/
+EXTRACT_SUFX= -7.src.rpm
+
+PATCH_DIST_STRIP= -p1
+
+MAINTAINER= tg@FreeBSD.ORG
+
+NO_WRKSUBDIR= yes
+USE_IMAKE= yes
+
+PATCH_FILES= ${DISTNAME}-dirent.patch
+
+do-extract:
+.if !defined(NO_WRKDIR)
+ @${RM} -rf ${WRKDIR}
+ @${MKDIR} ${WRKDIR}
+.endif
+ @dd if=${_DISTDIR}${DISTFILES} bs=1706 skip=1 | gzip -cd | \
+ (cd ${WRKDIR}; cpio -i)
+ @tar -xzf ${WRKDIR}/${DISTNAME}.tar.gz -C ${WRKDIR}
+
+pre-patch:
+ @${ECHO_MSG} "===> Applying distribution patches for ${PKGNAME}"
+ @for file in ${PATCH_FILES}; do \
+ ${PATCH} ${PATCH_DIST_ARGS} < ${WRKDIR}/$$file; \
+ done
+
+.include <bsd.port.mk>