aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/py-fltk/Makefile
diff options
context:
space:
mode:
authorWilliam Grzybowski <wg@FreeBSD.org>2013-12-30 13:13:54 +0000
committerWilliam Grzybowski <wg@FreeBSD.org>2013-12-30 13:13:54 +0000
commit7d53fda8e9e1adae8ef125deebb4997096156a45 (patch)
tree679c80ed4c7d2fcf127ffb9f3df7cf1d2d54e240 /x11-toolkits/py-fltk/Makefile
parent50b917dcc85ba17c8589f212eb2038d3dbe1bb8e (diff)
downloadports-7d53fda8e9e1adae8ef125deebb4997096156a45.tar.gz
ports-7d53fda8e9e1adae8ef125deebb4997096156a45.zip
Notes
Diffstat (limited to 'x11-toolkits/py-fltk/Makefile')
-rw-r--r--x11-toolkits/py-fltk/Makefile23
1 files changed, 11 insertions, 12 deletions
diff --git a/x11-toolkits/py-fltk/Makefile b/x11-toolkits/py-fltk/Makefile
index b143c2f0795c..df2a27841e06 100644
--- a/x11-toolkits/py-fltk/Makefile
+++ b/x11-toolkits/py-fltk/Makefile
@@ -17,17 +17,18 @@ LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk
USE_PYTHON= yes
USE_PYDISTUTILS= yes
+PYDISTUTILS_AUTOPLIST= yes
USE_XORG= x11
-PYDISTUTILS_PKGNAME= pyFltk
-
MAKE_ENV+= FLTK_HOME=${LOCALBASE}/bin
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
XTRADOCS= CHANGES README TODO
CFLAGS+= -DFL_LIBRARY
-NO_STAGE= yes
+PORTDOCS= *
+PORTEXAMPLES= *
+
post-patch:
@${REINPLACE_CMD} -e "s|/usr/X11R6|${LOCALBASE}|g;s|package_data.*},||g;s|sunos5|freebsd8', 'freebsd9', 'freebsd10|g" ${WRKSRC}/setup.py
@@ -35,16 +36,14 @@ post-build:
${REINPLACE_CMD} -e "s|\.\./docs|${DOCSDIR}/html|g" ${WRKSRC}/fltk/test/help.py
post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}/html
- ${INSTALL_DATA} ${WRKSRC}/fltk/docs/*.html ${DOCSDIR}/html
- ${INSTALL_DATA} ${WRKSRC}/fltk/docs/*.jpg ${DOCSDIR}/html
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/fltk/test/*.py ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/fltk/test/HelpDialog.html ${EXAMPLESDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/html
+ ${INSTALL_DATA} ${WRKSRC}/fltk/docs/*.html ${STAGEDIR}${DOCSDIR}/html
+ ${INSTALL_DATA} ${WRKSRC}/fltk/docs/*.jpg ${STAGEDIR}${DOCSDIR}/html
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/fltk/test/*.py ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/fltk/test/HelpDialog.html ${STAGEDIR}${EXAMPLESDIR}
.for i in ${XTRADOCS}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>