2004-04-18 20:32:41 +00:00
|
|
|
# New ports collection makefile for: py-fox
|
|
|
|
# Date created: 5 Apr 2004
|
|
|
|
# Whom: Radim Kolar
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= fox
|
|
|
|
PORTVERSION= 1.0.5
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 1
|
2004-04-18 20:32:41 +00:00
|
|
|
CATEGORIES= x11-toolkits
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= fxpy
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= FXPy-${PORTVERSION}
|
|
|
|
|
2004-10-12 13:23:48 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-04-18 20:32:41 +00:00
|
|
|
COMMENT= Python interface to FOX Graphics library
|
|
|
|
|
2006-06-10 15:53:58 +00:00
|
|
|
LIB_DEPENDS= FOX-1.0:${PORTSDIR}/x11-toolkits/fox10
|
2004-04-18 20:32:41 +00:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
USE_XLIB= yes
|
2007-05-19 20:36:56 +00:00
|
|
|
USE_GL= yes
|
2004-04-18 20:32:41 +00:00
|
|
|
|
2007-07-30 09:42:28 +00:00
|
|
|
PYDISTUTILS_PKGNAME= FXPy
|
|
|
|
|
2004-04-18 20:32:41 +00:00
|
|
|
WRKSRC= ${WRKDIR}/FXPy-${PORTVERSION}
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
|
2006-11-27 22:03:36 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/setup.py
|
|
|
|
|
2004-04-18 20:32:41 +00:00
|
|
|
do-install:
|
|
|
|
@(cd ${INSTALL_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} install ${PYDISTUTILS_INSTALLARGS})
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.png ${DOCSDIR}
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.xml ${EXAMPLESDIR}
|
|
|
|
${MKDIR} ${EXAMPLESDIR}/icons
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/icons/*.png ${EXAMPLESDIR}/icons
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|