1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

Fix build on FreeBSD 13+

Reported by:	pkg-fallout
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2018-11-14 21:45:02 +00:00
parent f81ed928db
commit 41cde27dff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=484963
2 changed files with 21 additions and 1 deletions

View File

@ -33,7 +33,8 @@ WRKSRC= ${WRKDIR}/pyFltk-${PORTVERSION}
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e "s|/usr/X11R6|${LOCALBASE}|g;s|package_data.*},||g;s|sunos5|dragonfly4', 'freebsd8', 'freebsd9', 'freebsd10', 'freebsd11', 'freebsd12|g" ${WRKSRC}/setup.py
# @${REINPLACE_CMD} -e "s|'freebsd.*sunos5'|'freebsd11', 'freebsd12', 'freebsd13'|; s|/usr/X11R6|${LOCALBASE}|g; s|package_data.*},||g" ${WRKSRC}/setup.py
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/setup.py
post-build:
${REINPLACE_CMD} -e "s|\.\./docs|${DOCSDIR}/html|g" ${WRKSRC}/fltk/test/help.py

View File

@ -0,0 +1,19 @@
--- setup.py.orig 2016-12-29 09:36:33 UTC
+++ setup.py
@@ -106,7 +106,7 @@ elif sys.platform.startswith('linux'):
compile_arg_list.append('-Werror=format-security')
lib_dir_list = [fltk_lib_dir, '/usr/lib']
lib_list = ["fltk"]
-elif sys.platform in ['freebsd4','freebsd5','freebsd6','freebsd7', 'sunos5']:
+elif sys.platform[0:7] == 'freebsd':
print("Building for: %s"%sys.platform)
def_list = [('UNIX', '1')]
lib_dir_list = [fltk_lib_dir,'/usr/X11R6/lib','/usr/lib']
@@ -323,7 +323,6 @@ setup (name = 'pyFltk',
description = 'This is a Python wrapper for the FLTK',
ext_modules = [module1],
packages = ['fltk'],
- package_data={'fltk': ['test/*.*', 'docs/*.*']},
)