1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Try to unbreak for freebsd > 10.x

This commit is contained in:
Andrej Zverev 2013-11-24 15:48:16 +00:00
parent 0efda35f40
commit f5af979eff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334739
2 changed files with 12 additions and 1 deletions

View File

@ -38,8 +38,13 @@ CONFIGURE_ENV= OPENSSL_LIBS="-L/usr/lib -ssl -crypto" OPENSSL_CFLAGS="-I/usr/inc
CONFIGURE_ARGS+= --disable-debug
# Workaround to build on > 10.x
.if ${OSVERSION} >= 1000000
USE_GCC= yes
.endif
post-patch:
@${REINPLACE_CMD} -e 's/-O3/${CFLAGS}/' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/configure
.if ${PORT_OPTIONS:MKQUEUE}
CONFIGURE_ARGS+= --with-kqueue

View File

@ -36,6 +36,12 @@ NO_STAGE= yes
BROKEN= Does not configure on arm
.endif
# Workaround to build and segfault on > 10.x
.if ${OPSYS} == "FreeBSD" && ${OSVERSION} >= 1000000
USE_GCC= yes
LDFLAGS+= -lc++
.endif
.if ${PORT_OPTIONS:MXMLRPC}
CONFIGURE_ARGS+= --with-xmlrpc-c
LIB_DEPENDS+= xmlrpc:${PORTSDIR}/net/xmlrpc-c-devel