diff options
author | tg <tg@FreeBSD.org> | 1997-01-03 08:15:44 +0000 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 1997-01-03 08:15:44 +0000 |
commit | 2b37a2961e1c8f92f286dfc33fc5c1d05e1255ea (patch) | |
tree | 2fb85e45b936ee2f4060740dca56ded015ae408b /games/xgammon/Makefile | |
parent | 4f9f8c217be3c5f905b9eca3092f706c370fe967 (diff) | |
download | FreeBSD-ports-2b37a2961e1c8f92f286dfc33fc5c1d05e1255ea.zip FreeBSD-ports-2b37a2961e1c8f92f286dfc33fc5c1d05e1255ea.tar.gz |
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...
Diffstat (limited to 'games/xgammon/Makefile')
-rw-r--r-- | games/xgammon/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/games/xgammon/Makefile b/games/xgammon/Makefile new file mode 100644 index 0000000..e25576d --- /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> |