2004-04-18 23:14:32 +02:00
|
|
|
# New ports collection makefile for: py-fltk
|
|
|
|
# Date created: 6 Apr 2004
|
|
|
|
# Whom: Radim Kolar
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= fltk
|
2011-11-17 15:40:48 +01:00
|
|
|
PORTVERSION= 1.3.0
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 1
|
2008-12-28 11:54:08 +01:00
|
|
|
CATEGORIES= x11-toolkits python
|
2011-08-20 03:56:53 +02:00
|
|
|
#MASTER_SITES= SF/py${PORTNAME}/py${PORTNAME}/py${PORTNAME}-${PORTVERSION}
|
|
|
|
MASTER_SITES= SF/py${PORTNAME}/py${PORTNAME}/${DISTNAME}
|
2004-04-18 23:14:32 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= pyFltk-${PORTVERSION:S/.b/b/}
|
|
|
|
|
2008-03-20 22:05:48 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-04-18 23:14:32 +02:00
|
|
|
COMMENT= Python interface to FLTK window toolkit
|
|
|
|
|
|
|
|
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
|
|
|
|
|
2011-02-25 01:47:51 +01:00
|
|
|
USE_PYTHON= 2.5+
|
2004-04-18 23:14:32 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
2008-03-25 23:44:48 +01:00
|
|
|
USE_XORG= x11
|
2004-04-18 23:14:32 +02:00
|
|
|
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGNAME= pyFltk
|
|
|
|
|
2008-01-11 00:18:30 +01:00
|
|
|
MAKE_ENV+= FLTK_HOME=${LOCALBASE}/bin
|
2004-04-18 23:14:32 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
XTRADOCS= CHANGES README TODO
|
2011-11-17 15:40:48 +01:00
|
|
|
CFLAGS+= -DFL_LIBRARY
|
2004-04-18 23:14:32 +02:00
|
|
|
|
2006-12-01 20:45:02 +01:00
|
|
|
post-patch:
|
2011-11-17 15:40:48 +01:00
|
|
|
@${REINPLACE_CMD} -e "s|/usr/X11R6|${LOCALBASE}|g;s|package_data.*},||g;s|sunos5|freebsd8', 'freebsd9', 'freebsd10|g" ${WRKSRC}/setup.py
|
2006-12-01 20:45:02 +01:00
|
|
|
|
2004-04-18 23:14:32 +02:00
|
|
|
post-build:
|
2008-01-11 00:18:30 +01:00
|
|
|
${REINPLACE_CMD} -e "s|\.\./docs|${DOCSDIR}/html|g" ${WRKSRC}/fltk/test/help.py
|
2004-04-18 23:14:32 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@(cd ${INSTALL_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} install ${PYDISTUTILS_INSTALLARGS})
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}/html
|
2008-01-11 00:18:30 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/fltk/docs/*.html ${DOCSDIR}/html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/fltk/docs/*.jpg ${DOCSDIR}/html
|
2004-04-18 23:14:32 +02:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2008-01-11 00:18:30 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/fltk/test/*.py ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/fltk/test/HelpDialog.html ${EXAMPLESDIR}
|
2004-04-18 23:14:32 +02:00
|
|
|
.for i in ${XTRADOCS}
|
2008-01-11 00:18:30 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
2004-04-18 23:14:32 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2008-01-11 00:18:30 +01:00
|
|
|
.include <bsd.port.mk>
|