1998-09-11 09:10:39 +00:00
|
|
|
# New ports collection makefile for: PySol
|
|
|
|
# Date created: 11 September 1998
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1998-09-11 09:10:39 +00:00
|
|
|
#
|
1999-08-25 06:06:33 +00:00
|
|
|
# $FreeBSD$
|
1998-09-11 09:10:39 +00:00
|
|
|
#
|
|
|
|
|
2000-04-17 08:59:32 +00:00
|
|
|
PORTNAME= pysol
|
2003-09-04 09:13:04 +00:00
|
|
|
PORTVERSION= 4.82
|
1998-09-11 09:10:39 +00:00
|
|
|
CATEGORIES= games
|
2005-03-09 13:31:08 +00:00
|
|
|
MASTER_SITES= http://www.pysol.org/download/pysol/:source \
|
|
|
|
${MASTER_SITE_LOCAL:S/$/:support/}
|
|
|
|
MASTER_SITE_SUBDIR= tg/:support
|
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:support \
|
|
|
|
${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX}:source
|
1998-09-11 09:10:39 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= tg@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Solitaire game, written in Python
|
1998-09-11 09:10:39 +00:00
|
|
|
|
2005-03-09 13:31:08 +00:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pysolsoundserver.so:${PORTSDIR}/audio/pysol-sound-server \
|
|
|
|
${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
2005-02-28 01:50:22 +00:00
|
|
|
|
2001-05-08 11:53:55 +00:00
|
|
|
USE_BZIP2= yes
|
2005-03-09 13:31:08 +00:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_REINPLACE= yes
|
2001-05-08 11:53:55 +00:00
|
|
|
NO_BUILD= yes
|
2000-09-22 12:05:11 +00:00
|
|
|
|
2001-05-08 11:53:55 +00:00
|
|
|
MAN6= pysol.6
|
2000-04-20 08:59:59 +00:00
|
|
|
|
2005-03-09 13:31:08 +00:00
|
|
|
post-patch:
|
|
|
|
@${RM} ${WRKSRC}/src/tk/soundoptionsdialog.py.orig
|
|
|
|
@${REINPLACE_CMD} -e "s|@pkgdatadir@|${DATADIR}|" \
|
2001-12-04 12:53:50 +00:00
|
|
|
-e "s|@prefix@|${PREFIX}|" \
|
2005-03-09 13:31:08 +00:00
|
|
|
-e "s|@PYTHON@|${PYTHON_CMD}|" ${WRKSRC}/pysol
|
|
|
|
@${REINPLACE_CMD} -e "s|pysol_\$$PYVER.pyc|src/pysol.py|" \
|
|
|
|
${WRKSRC}/pysol
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pysol ${PREFIX}/bin/pysol
|
1999-10-13 08:44:01 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/pysol.6 ${PREFIX}/man/man6
|
2005-03-09 13:31:08 +00:00
|
|
|
@${MKDIR} ${DATADIR}
|
2001-05-08 11:53:55 +00:00
|
|
|
(cd ${WRKSRC}/data; tar -cf - .) | \
|
2005-03-09 13:31:08 +00:00
|
|
|
(cd ${DATADIR}; tar --unlink -xf -)
|
|
|
|
(cd ${WRKSRC}; tar -cf - src) | \
|
|
|
|
(cd ${DATADIR}; tar --unlink -xf -)
|
|
|
|
@cd ${DATADIR} && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py src
|
1998-09-11 09:10:39 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|