aboutsummaryrefslogtreecommitdiffstats
path: root/games/pysol/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/pysol/Makefile')
-rw-r--r--games/pysol/Makefile45
1 files changed, 39 insertions, 6 deletions
diff --git a/games/pysol/Makefile b/games/pysol/Makefile
index c2f8d9095bc1..06bd342ec147 100644
--- a/games/pysol/Makefile
+++ b/games/pysol/Makefile
@@ -9,21 +9,47 @@ PORTNAME= pysol
PORTVERSION= 4.40
CATEGORIES= games
MASTER_SITES= http://wildsau.idv.uni-linz.ac.at/mfx/download/pysol/
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${CARDSETS}${EXTRACT_SUFX}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${CARDSETS_DISTFILE} \
+ ${MUSIC_DISTFILE}
MAINTAINER= tg@FreeBSD.org
-RUN_DEPENDS= ${LOCALBASE}/lib/python1.5/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
+RUN_DEPENDS= ${LOCALBASE}/lib/python1.5/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
+ ${SOUND_DEPENDS}
+
+NO_BUILD= yes
+PLIST= ${WRKDIR}/PLIST
+
+CARDSETS= pysol-cardsets-4.20
+MUSIC= pysol-music-4.30
+
+.if !defined(WITHOUT_CARDSETS)
+CARDSETS_DISTFILE=${CARDSETS}${EXTRACT_SUFX}
+PLISTS+= ${PKGDIR}/PLIST.cardsets
+.else
+CARDSETS_DISTFILE=
+.endif
.if defined(WITH_SOUND)
-RUN_DEPENDS+= ${LOCALBASE}/lib/python1.5/site-packages/pysolsoundservermodule.so:${PORTSDIR}/audio/pysol-sound-server
+SOUND_DEPENDS= ${LOCALBASE}/lib/python1.5/site-packages/pysolsoundservermodule.so:${PORTSDIR}/audio/pysol-sound-server
+MUSIC_DISTFILE= ${MUSIC}${EXTRACT_SUFX}
+PLISTS+= ${PKGDIR}/PLIST.music
+.else
+SOUND_DEPENDS=
+MISIC_DISTFILE=
.endif
-NO_BUILD= yes
+PLISTS+= ${PKGDIR}/PLIST
-MAN6= pysol.6
+MAN6= pysol.6
-CARDSETS= pysol-cardsets-4.20
+.if !defined(WITHOUT_CARDSETS)
+pre-fetch:
+ @${ECHO_MSG}
+ @${ECHO_MSG} "If you do not want to download/install optional cardsets (12MB) please use"
+ @${ECHO_MSG} "\"make -DWITHOUT_CARDSETS\" instead."
+ @${ECHO_MSG}
+.endif
.if !defined(WITH_SOUND)
post-extract:
@@ -39,7 +65,14 @@ do-install:
@${MKDIR} ${PREFIX}/share/pysol
(cd ${WRKSRC}/data; tar cf - *) | \
(cd ${PREFIX}/share/pysol; tar xf -)
+.if !defined(WITHOUT_CARDSETS)
(cd ${WRKDIR}/${CARDSETS}/data; tar cf - *) | \
(cd ${PREFIX}/share/pysol; tar xf -)
+.endif
+.if defined(WITH_SOUND)
+ (cd ${WRKDIR}/${MUSIC}/data; tar cf - *) | \
+ (cd ${PREFIX}/share/pysol; tar xf -)
+.endif
+ @cat ${PLISTS} > ${PLIST}
.include <bsd.port.mk>