2004-06-21 07:53:03 +02:00
|
|
|
# Ports collection makefile for: py-gui
|
|
|
|
# Date created: 21 June 2004
|
|
|
|
# Whom: Hye-Shik Chang
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gui
|
2006-06-25 03:03:55 +02:00
|
|
|
PORTVERSION= 1.7.2
|
2004-06-21 07:53:03 +02:00
|
|
|
CATEGORIES= x11-toolkits python
|
|
|
|
MASTER_SITES= http://www.cosc.canterbury.ac.nz/~greg/python_gui/
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2006-06-25 03:03:55 +02:00
|
|
|
DISTNAME= PyGUI-${PORTVERSION}-1
|
2004-06-21 07:53:03 +02:00
|
|
|
|
2006-11-24 10:28:13 +01:00
|
|
|
MAINTAINER= python@FreeBSD.org
|
2004-06-21 07:53:03 +02:00
|
|
|
COMMENT= A cross-platform pythonic GUI API
|
|
|
|
|
2004-07-12 04:16:27 +02:00
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/Pyrex/Distutils/__init__.py:${PORTSDIR}/devel/pyrex
|
2004-07-11 02:47:31 +02:00
|
|
|
|
2004-06-21 07:53:03 +02:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
USE_GNOME= pygtk2
|
|
|
|
|
|
|
|
DOCSDIR= share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
EXAMPLESDIR= share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
|
2006-06-25 05:47:12 +02:00
|
|
|
# A workaround for the problem that "make config" doesn't work
|
|
|
|
# because _OPTIONSFILE is defined before bsd.python.mk is included.
|
|
|
|
LATEST_LINK= py-${PORTNAME}
|
|
|
|
|
2006-06-25 03:03:55 +02:00
|
|
|
WRKSRC= ${WRKDIR}/PyGUI-${PORTVERSION}
|
|
|
|
|
|
|
|
OPTIONS= GL "Enable GL support" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_GL)
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/gdkgl/__init__.py:${PORTSDIR}/x11-toolkits/py-gtkglext
|
|
|
|
.endif
|
|
|
|
|
2004-06-21 07:53:03 +02:00
|
|
|
post-extract:
|
2006-04-22 04:54:07 +02:00
|
|
|
${RM} -rf ${WRKSRC}/GUI/Cocoa
|
2004-06-21 07:53:03 +02:00
|
|
|
${TOUCH} ${WRKSRC}/GUI/Gtk/__init__.py \
|
|
|
|
${WRKSRC}/GUI/Generic/__init__.py
|
|
|
|
|
|
|
|
post-patch:
|
2006-04-22 04:54:07 +02:00
|
|
|
${REINPLACE_CMD} -e 's/"GUI.Cocoa",//g' ${WRKSRC}/setup.py
|
2004-06-21 07:53:03 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/${DOCSDIR}
|
|
|
|
${TAR} -C ${WRKSRC}/Doc -cf - . | ${TAR} -C ${PREFIX}/${DOCSDIR} -xf -
|
|
|
|
${MKDIR} ${PREFIX}/${EXAMPLESDIR}
|
2006-06-25 03:03:55 +02:00
|
|
|
${RM} -f ${WRKSRC}/Demos/BlobEdit/.gdb_history \
|
|
|
|
${WRKSRC}/Demos/BlobEdit/Makefile
|
2004-06-21 07:53:03 +02:00
|
|
|
${TAR} -C ${WRKSRC}/Demos -cf - . | \
|
|
|
|
${TAR} -C ${PREFIX}/${EXAMPLESDIR} -xf -
|
|
|
|
.endif
|
|
|
|
|
2006-06-25 03:03:55 +02:00
|
|
|
.include <bsd.port.post.mk>
|