aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/xskat/Makefile19
-rw-r--r--games/xskat/distinfo2
2 files changed, 21 insertions, 0 deletions
diff --git a/games/xskat/Makefile b/games/xskat/Makefile
index 4a7c5814e284..56dfdac9cf9d 100644
--- a/games/xskat/Makefile
+++ b/games/xskat/Makefile
@@ -9,12 +9,31 @@ PORTNAME= xskat
PORTVERSION= 4.0
CATEGORIES= games
MASTER_SITES= http://www.xskat.de/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= tg@FreeBSD.org
COMMENT= Play the card game Skat
+.if defined(WITH_ALTENBURGER_CARDS)
+DISTFILES+= xskat-cards.tar.gz
+RESTRICTED= "The altenburger card file is NOT freely redistributable!"
+.endif
+
USE_IMAKE= yes
MAN1= xskat.1 xskat-de.1
PLIST_FILES= bin/xskat
+pre-fetch:
+.if !defined(WITH_ALTENBURGER_CARDS)
+ @${ECHO}
+ @${ECHO} "You can compile xskat with the beautiful original"
+ @${ECHO} "Altenburger card set by setting WITH_ALTENBURGER_CARDS"
+ @${ECHO}
+.endif
+
+post-patch:
+.if defined(WITH_ALTENBURGER_CARDS)
+ cd ${WRKSRC}; ${CP} ../xskat-cards.c cards.c
+.endif
+
.include <bsd.port.mk>
diff --git a/games/xskat/distinfo b/games/xskat/distinfo
index b8ec481f1db0..c5c8522284d0 100644
--- a/games/xskat/distinfo
+++ b/games/xskat/distinfo
@@ -1,2 +1,4 @@
MD5 (xskat-4.0.tar.gz) = 6744cea48a890771736b75083e7ea2b5
SIZE (xskat-4.0.tar.gz) = 179059
+MD5 (xskat-cards.tar.gz) = 1ff631c59714c011ae2f2d43cb65afc1
+SIZE (xskat-cards.tar.gz) = 187122