1998-09-11 11:10:39 +02:00
|
|
|
# New ports collection makefile for: PySol
|
|
|
|
# Date created: 11 September 1998
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1998-09-11 11:10:39 +02:00
|
|
|
#
|
1999-08-25 08:06:33 +02:00
|
|
|
# $FreeBSD$
|
1998-09-11 11:10:39 +02:00
|
|
|
#
|
|
|
|
|
2000-04-17 10:59:32 +02:00
|
|
|
PORTNAME= pysol
|
2000-06-05 10:35:28 +02:00
|
|
|
PORTVERSION= 4.41
|
1998-09-11 11:10:39 +02:00
|
|
|
CATEGORIES= games
|
1999-12-08 12:01:01 +01:00
|
|
|
MASTER_SITES= http://wildsau.idv.uni-linz.ac.at/mfx/download/pysol/
|
2000-06-02 11:17:58 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${CARDSETS_DISTFILE} \
|
|
|
|
${MUSIC_DISTFILE}
|
1998-09-11 11:10:39 +02:00
|
|
|
|
1999-08-31 08:53:31 +02:00
|
|
|
MAINTAINER= tg@FreeBSD.org
|
1998-09-11 11:10:39 +02:00
|
|
|
|
2000-06-02 11:17:58 +02:00
|
|
|
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
|
1998-09-11 11:10:39 +02:00
|
|
|
|
2000-04-20 10:59:59 +02:00
|
|
|
.if defined(WITH_SOUND)
|
2000-06-02 11:17:58 +02:00
|
|
|
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=
|
2000-04-20 10:59:59 +02:00
|
|
|
.endif
|
|
|
|
|
2000-06-02 11:17:58 +02:00
|
|
|
PLISTS+= ${PKGDIR}/PLIST
|
1998-12-22 17:07:34 +01:00
|
|
|
|
2000-06-02 11:17:58 +02:00
|
|
|
MAN6= pysol.6
|
1999-10-13 10:44:01 +02:00
|
|
|
|
2000-06-02 11:17:58 +02:00
|
|
|
.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
|
1998-09-11 11:10:39 +02:00
|
|
|
|
2000-04-20 10:59:59 +02:00
|
|
|
.if !defined(WITH_SOUND)
|
|
|
|
post-extract:
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "If you want install sound support please use \"make -DWITH_SOUND\""
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
|
|
|
|
1998-09-11 11:10:39 +02:00
|
|
|
do-install:
|
1999-11-05 11:15:52 +01:00
|
|
|
${SED} -e "s|@pkgdatadir@|${PREFIX}/share/pysol|" < ${WRKSRC}/pysol > ${PREFIX}/bin/pysol
|
|
|
|
${CHMOD} +x ${PREFIX}/bin/pysol
|
1999-10-13 10:44:01 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/pysol.6 ${PREFIX}/man/man6
|
1998-09-11 11:10:39 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/pysol
|
|
|
|
(cd ${WRKSRC}/data; tar cf - *) | \
|
|
|
|
(cd ${PREFIX}/share/pysol; tar xf -)
|
2000-06-02 11:17:58 +02:00
|
|
|
.if !defined(WITHOUT_CARDSETS)
|
1998-12-22 17:07:34 +01:00
|
|
|
(cd ${WRKDIR}/${CARDSETS}/data; tar cf - *) | \
|
|
|
|
(cd ${PREFIX}/share/pysol; tar xf -)
|
2000-06-02 11:17:58 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SOUND)
|
|
|
|
(cd ${WRKDIR}/${MUSIC}/data; tar cf - *) | \
|
|
|
|
(cd ${PREFIX}/share/pysol; tar xf -)
|
|
|
|
.endif
|
|
|
|
@cat ${PLISTS} > ${PLIST}
|
1998-09-11 11:10:39 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|