mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Fix build, don't clobber the system strcasestr() function.
PR: 36455
This commit is contained in:
parent
db3214062f
commit
5d60a21dbf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56891
@ -28,6 +28,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libxml2 \
|
||||
LDFLAGS="-L${LOCALBASE}/lib `${GLIB_CONFIG} --libs gthread`" \
|
||||
XML_CONFIG="${XML_CONFIG}"
|
||||
CONFIGURE_ARGS= --without-included-gettext
|
||||
CFLAGS+= -DHAVE_STRCASESTR
|
||||
|
||||
pre-patch:
|
||||
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
||||
@ -37,5 +38,7 @@ pre-patch:
|
||||
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
|
||||
@${PERL} -pi -e 's|-lxml|-lxml2|g' \
|
||||
${WRKSRC}/configure
|
||||
@${PERL} -pi -e 's|extern int strcasestr|//extern int strcasestr|' \
|
||||
${WRKSRC}/src/trackers.c
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -28,6 +28,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libxml2 \
|
||||
LDFLAGS="-L${LOCALBASE}/lib `${GLIB_CONFIG} --libs gthread`" \
|
||||
XML_CONFIG="${XML_CONFIG}"
|
||||
CONFIGURE_ARGS= --without-included-gettext
|
||||
CFLAGS+= -DHAVE_STRCASESTR
|
||||
|
||||
pre-patch:
|
||||
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
||||
@ -37,5 +38,7 @@ pre-patch:
|
||||
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
|
||||
@${PERL} -pi -e 's|-lxml|-lxml2|g' \
|
||||
${WRKSRC}/configure
|
||||
@${PERL} -pi -e 's|extern int strcasestr|//extern int strcasestr|' \
|
||||
${WRKSRC}/src/trackers.c
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user