1
0
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:
Pete Fritchman 2002-03-30 00:13:03 +00:00
parent db3214062f
commit 5d60a21dbf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56891
2 changed files with 6 additions and 0 deletions

View File

@ -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>

View File

@ -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>