aboutsummaryrefslogtreecommitdiff
path: root/games/pyching/Makefile
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2001-07-08 16:05:12 +0000
committerKevin Lo <kevlo@FreeBSD.org>2001-07-08 16:05:12 +0000
commit9f16c9f01920cd7be66435da6964f6039fd6c55e (patch)
treec7dcd821a728cbd5732cec1e5d88673ee5641eb1 /games/pyching/Makefile
parentdfd5092def2af3de56eb2deecdf2c70c3aa932a5 (diff)
downloadports-9f16c9f01920cd7be66435da6964f6039fd6c55e.tar.gz
ports-9f16c9f01920cd7be66435da6964f6039fd6c55e.zip
Notes
Diffstat (limited to 'games/pyching/Makefile')
-rw-r--r--games/pyching/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/games/pyching/Makefile b/games/pyching/Makefile
new file mode 100644
index 000000000000..76e8c8b79f16
--- /dev/null
+++ b/games/pyching/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: pyching
+# Date created: 5 July 2001
+# Whom: Hye-Shik Chang <perky@python.or.kr>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pyching
+PORTVERSION= 1.0.4
+CATEGORIES= games python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= perky@python.or.kr
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
+
+NO_WRKSUBDIR= yes
+USE_PYTHON= yes
+USE_X_PREFIX= yes
+
+PLIST_SUB+= LIB_TARGET=${LIB_TARGET:S,^${PREFIX}/,,g} \
+ DOC_TARGET=${DOC_TARGET:S,^${PREFIX}/,,g}
+
+EXEC_FILENAME= ${PORTNAME}
+LIB_FILES= pyching_*.py* smgTkLib/smg*.py* icon.xbm
+DOC_FILES= [A-Z]*
+LIB_TARGET= ${PREFIX}/lib/${PORTNAME}
+DOC_TARGET= ${PREFIX}/share/doc/${PORTNAME}
+
+post-patch:
+ ${SED} 's@^\(import sys\)$$@\1; sys.path.append("${LIB_TARGET}")@' \
+ ${WRKSRC}/pyching.py >${WRKSRC}/${EXEC_FILENAME}
+
+do-build:
+ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${EXEC_FILENAME} ${PREFIX}/bin
+ ${MKDIR} ${LIB_TARGET}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${LIB_FILES} ${LIB_TARGET}
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOC_TARGET}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOC_FILES} ${DOC_TARGET}
+.endif
+
+.include <bsd.port.mk>