diff options
author | tg <tg@FreeBSD.org> | 2000-09-22 20:05:11 +0800 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 2000-09-22 20:05:11 +0800 |
commit | 8586d530cbe7b285fea8a9a32725997d0c7aa9fa (patch) | |
tree | 120c922ae6fd8c7974dcbc824498b31c745fab55 /games/pysol/Makefile | |
parent | 93d07ed23dfd9f33e80f36209a19f6f174fb79a3 (diff) | |
download | freebsd-ports-gnome-8586d530cbe7b285fea8a9a32725997d0c7aa9fa.tar.gz freebsd-ports-gnome-8586d530cbe7b285fea8a9a32725997d0c7aa9fa.tar.zst freebsd-ports-gnome-8586d530cbe7b285fea8a9a32725997d0c7aa9fa.zip |
Upgrade to 4.60. Additional music files and cardsets are moved
from an option to separate ports (to be imported shortly).
Partly submitted by: sobomax
Diffstat (limited to 'games/pysol/Makefile')
-rw-r--r-- | games/pysol/Makefile | 70 |
1 files changed, 18 insertions, 52 deletions
diff --git a/games/pysol/Makefile b/games/pysol/Makefile index 71a47c83987e..38dc086101e3 100644 --- a/games/pysol/Makefile +++ b/games/pysol/Makefile @@ -6,73 +6,39 @@ # PORTNAME= pysol -PORTVERSION= 4.41 +PORTVERSION= 4.60 CATEGORIES= games -MASTER_SITES= http://wildsau.idv.uni-linz.ac.at/mfx/download/pysol/ -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${CARDSETS_DISTFILE} \ - ${MUSIC_DISTFILE} +MASTER_SITES= http://wildsau.idv.uni-linz.ac.at/mfx/download/pysol/ \ + ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= tg +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} pysol.py.bz2 +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= tg@FreeBSD.org -RUN_DEPENDS= ${LOCALBASE}/lib/python1.5/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \ - ${SOUND_DEPENDS} +BUILD_DEPENDS= bunzip2:${PORTSDIR}/archivers/bzip2 +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter -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) -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 - -PLISTS+= ${PKGDIR}/PLIST +USE_PYTHON= yes MAN6= pysol.6 -.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: - @${ECHO_MSG} - @${ECHO_MSG} "If you want install sound support please use \"make -DWITH_SOUND\"" - @${ECHO_MSG} -.endif + ${LOCALBASE}/bin/bunzip2 -c ${DISTDIR}/pysol.py.bz2 \ + > ${WRKSRC}/pysol.py + +do-build: + ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -l ${WRKSRC} do-install: - ${SED} -e "s|@pkgdatadir@|${PREFIX}/share/pysol|" < ${WRKSRC}/pysol > ${PREFIX}/bin/pysol + ${SED} -e "s|@pkgdatadir@|${PREFIX}/share/pysol|" \ + -e "s|^exec python|exec ${PYTHON_CMD}|" \ + < ${WRKSRC}/pysol > ${PREFIX}/bin/pysol ${CHMOD} +x ${PREFIX}/bin/pysol ${INSTALL_DATA} ${WRKSRC}/pysol.6 ${PREFIX}/man/man6 @${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} + ${INSTALL_DATA} ${WRKSRC}/pysol.pyc ${PREFIX}/share/pysol .include <bsd.port.mk> |