mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Fix build on GCC-based architectures:
fails to compile: fltk_wrap.cpp:5355: #pragma GCC diagnostic not allowed inside functions PR: 235989 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket)
This commit is contained in:
parent
3e32035e01
commit
4a604cfef2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=497159
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,6 @@ COMMENT= Python interface to FLTK window toolkit
|
|||
LICENSE= LGPL20
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
BROKEN_powerpc64= fails to compile: fltk_wrap.cpp:5355: \#pragma GCC diagnostic not allowed inside functions
|
||||
|
||||
LIB_DEPENDS= libfltk.so:x11-toolkits/fltk
|
||||
|
||||
CFLAGS+= -DFL_LIBRARY
|
||||
|
@ -34,6 +32,8 @@ OPTIONS_DEFINE= DOCS EXAMPLES
|
|||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/setup.py
|
||||
@${REINPLACE_CMD} -e '/#pragma GCC diagnostic/d' \
|
||||
${WRKSRC}/python/fltk_wrap.cpp
|
||||
|
||||
post-build:
|
||||
${REINPLACE_CMD} -e "s|\.\./docs|${DOCSDIR}/html|g" ${WRKSRC}/fltk/test/help.py
|
||||
|
|
Loading…
Add table
Reference in a new issue