1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/x11-toolkits/py-fltk/Makefile
Alexey Dokuchaev 97deaa15fc x11-toolkits/py-fltk: update the port to version 1.3.8
It has better compatibility with modern compilers and matches
our current FLTK version (adjust port description accordingly).
2023-08-08 07:30:22 +00:00

55 lines
1.5 KiB
Makefile

PORTNAME= fltk
PORTVERSION= 1.3.8
CATEGORIES= x11-toolkits python
MASTER_SITES= SF/py${PORTNAME}/py${PORTNAME}/pyFltk-${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pyFltk-${PORTVERSION}
MAINTAINER= python@FreeBSD.org
COMMENT= Python interface to FLTK window toolkit
WWW= https://pyfltk.sourceforge.io/
LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= swig:devel/swig
LIB_DEPENDS= libfltk.so:x11-toolkits/fltk
CFLAGS+= -DFL_LIBRARY
USES= python shebangfix xorg
USE_PYTHON= autoplist distutils
PYDISTUTILS_CONFIGUREARGS= swig
SHEBANG_FILES= fltk/test/tree.py \
fltk/test/tree_demo.py \
fltk/test/fltk_threads.py
USE_XORG= x11
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
PORTDOCS= *
PORTEXAMPLES= *
WRKSRC= ${WRKDIR}/pyFltk-${PORTVERSION}
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e '/^%include fl_types/,+1 \
s|Enumerations|Fl_Export|' ${WRKSRC}/swig/fltk.i
post-build:
${REINPLACE_CMD} -e "s|\.\./docs|${DOCSDIR}/html|g" ${WRKSRC}/fltk/test/help.py
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/fltk/_fltk*.so
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/html/
cd ${WRKSRC}/ && ${INSTALL_DATA} CHANGES README.md ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/fltk/docs/ && ${INSTALL_DATA} *.html *.jpg ${STAGEDIR}${DOCSDIR}/html/
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
cd ${WRKSRC}/fltk/test/ && ${INSTALL_DATA} *.py HelpDialog.html ${STAGEDIR}${EXAMPLESDIR}/
.include <bsd.port.mk>