diff options
author | pav <pav@FreeBSD.org> | 2004-04-19 05:14:32 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-04-19 05:14:32 +0800 |
commit | c84f976ff5681d3808be3d171f32d9f389ad6324 (patch) | |
tree | 832ed5dd0815ea40cc847b53528b1722d3a29eb8 /x11-toolkits/py-fltk/Makefile | |
parent | 28d6e50e27e5c9ac8dc572f4b2becd3aa821655f (diff) | |
download | freebsd-ports-gnome-c84f976ff5681d3808be3d171f32d9f389ad6324.tar.gz freebsd-ports-gnome-c84f976ff5681d3808be3d171f32d9f389ad6324.tar.zst freebsd-ports-gnome-c84f976ff5681d3808be3d171f32d9f389ad6324.zip |
Add py-fltk, a Python wrapper for the Fast Light Tool Kit cross-platform graphical
user-interface library.
WWW: http://pyfltk.sourceforge.net/
PR: ports/65286
Submitted by: Radim Kolar <hsn@netmag.cz>
Diffstat (limited to 'x11-toolkits/py-fltk/Makefile')
-rw-r--r-- | x11-toolkits/py-fltk/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/x11-toolkits/py-fltk/Makefile b/x11-toolkits/py-fltk/Makefile new file mode 100644 index 000000000000..c4c2efb3810c --- /dev/null +++ b/x11-toolkits/py-fltk/Makefile @@ -0,0 +1,49 @@ +# New ports collection makefile for: py-fltk +# Date created: 6 Apr 2004 +# Whom: Radim Kolar +# +# $FreeBSD$ +# + +PORTNAME= fltk +PORTVERSION= 1.1.b2 +CATEGORIES= x11-toolkits +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} +MASTER_SITE_SUBDIR= pyfltk +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pyFltk-${PORTVERSION:S/.b/b/} + +MAINTAINER= hsn@netmag.cz +COMMENT= Python interface to FLTK window toolkit + +LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk + +USE_PYTHON= yes +USE_PYDISTUTILS= yes +USE_XLIB= yes +USE_REINPLACE= yes + +#WRKSRC= ${WRKDIR}/${DISTNAME} +MAKE_ENV+= FLTK_HOME=${X11BASE}/include OPENGL_HOME=${X11BASE}/include +DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} +EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} +XTRADOCS= CHANGES README TODO + +post-build: + ${REINPLACE_CMD} -e "s|\.\./docs|${DOCSDIR}/html|g" ${WRKSRC}/test/help.py + +do-install: + @(cd ${INSTALL_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} install ${PYDISTUTILS_INSTALLARGS}) +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${MKDIR} ${DOCSDIR}/html + ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}/html + ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/test/*.py ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/test/*.html ${EXAMPLESDIR} +.for i in ${XTRADOCS} + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> |