aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/xmlstarlet
diff options
context:
space:
mode:
authormnag <mnag@FreeBSD.org>2005-09-29 05:01:34 +0800
committermnag <mnag@FreeBSD.org>2005-09-29 05:01:34 +0800
commit7937e38e100910640908c15a0ec0e61a633580ea (patch)
tree12ffba14779f788ba67a4ebf40f8015de2ded404 /textproc/xmlstarlet
parent9e9d36a320303c87d4b8fc3f1abfc6d13cab91f8 (diff)
downloadfreebsd-ports-gnome-7937e38e100910640908c15a0ec0e61a633580ea.tar.gz
freebsd-ports-gnome-7937e38e100910640908c15a0ec0e61a633580ea.tar.zst
freebsd-ports-gnome-7937e38e100910640908c15a0ec0e61a633580ea.zip
Fix build when textproc/libxslt are compiled with GCRYPT
PR: 86632 Reported by: Adam VanderHook <acidos@bandwidth-junkies.net> Approved by: pav (mentor)
Diffstat (limited to 'textproc/xmlstarlet')
-rw-r--r--textproc/xmlstarlet/Makefile9
-rw-r--r--textproc/xmlstarlet/files/patch-configure113
2 files changed, 116 insertions, 6 deletions
diff --git a/textproc/xmlstarlet/Makefile b/textproc/xmlstarlet/Makefile
index fbf9884050e8..f3c584a5f57c 100644
--- a/textproc/xmlstarlet/Makefile
+++ b/textproc/xmlstarlet/Makefile
@@ -15,9 +15,7 @@ MASTER_SITE_SUBDIR= xmlstar
MAINTAINER= ports@FreeBSD.org
COMMENT= Command Line XML Toolkit
-BUILD_DEPENDS= ${LOCALBASE}/lib/libxml2.a:${PORTSDIR}/textproc/libxml2 \
- ${LOCALBASE}/lib/libxslt.a:${PORTSDIR}/textproc/libxslt
-
+USE_GNOME= libxslt
USE_ICONV= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
@@ -29,8 +27,7 @@ MAN1= xmlstarlet.1
PLIST_FILES= bin/xml
post-patch:
- @${REINPLACE_CMD} -e 's|^CFLAGS|#CFLAGS|g ; \
- s|-lpthread|${PTHREAD_LIBS}|g ; \
- s|-ldl|-liconv|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e "s|%%PTHREAD%%|${PTHREAD_LIBS}|g" \
+ ${WRKSRC}/configure
.include <bsd.port.mk>
diff --git a/textproc/xmlstarlet/files/patch-configure b/textproc/xmlstarlet/files/patch-configure
new file mode 100644
index 000000000000..89108c364559
--- /dev/null
+++ b/textproc/xmlstarlet/files/patch-configure
@@ -0,0 +1,113 @@
+--- configure.orig Wed Sep 28 17:30:45 2005
++++ configure Wed Sep 28 17:37:07 2005
+@@ -1042,7 +1042,7 @@
+
+ ac_test_CFLAGS="${CFLAGS+set}"
+ ac_save_CFLAGS="$CFLAGS"
+-CFLAGS=
++#CFLAGS=
+ echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
+ echo "configure:1048: checking whether ${CC-cc} accepts -g" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
+@@ -1076,7 +1076,7 @@
+ fi
+
+
+-CFLAGS="-Wall -g -pedantic"
++#CFLAGS="-Wall -g -pedantic"
+ EXTRA_LIBS=
+
+ case "${host}" in
+@@ -1095,7 +1095,7 @@
+ withval="$with_libxml_prefix"
+ LIBXML_PREFIX=$withval
+ LIBXML_CFLAGS="-I$withval/include/libxml2 -I$withval/include/libxml"
+- LIBXML_LIBS="$withval/lib/libxml2.a -lz -lm -lpthread -ldl"
++ LIBXML_LIBS="`pkg-config --libs libxml-2.0` %%PTHREAD%%"
+
+ fi
+
+@@ -1111,7 +1111,7 @@
+ # Check whether --with-libxml-libs-prefix or --without-libxml-libs-prefix was given.
+ if test "${with_libxml_libs_prefix+set}" = set; then
+ withval="$with_libxml_libs_prefix"
+- LIBXML_LIBS="$withval/libxml2.a -lz -lm -lpthread -ldl"
++ LIBXML_LIBS="`pkg-config --libs libxml-2.0` %%PTHREAD%%"
+
+ fi
+
+@@ -1120,7 +1120,7 @@
+ if test "${with_libxml_src+set}" = set; then
+ withval="$with_libxml_src"
+ LIBXML_SRC="$withval"
+- LIBXML_LIBS="$withval/.libs/libxml2.a -lz -lm -lpthread"
++ LIBXML_LIBS="`pkg-config --libs libxml-2.0` %%PTHREAD%%"
+ LIBXML_CFLAGS="-I$withval/include/libxml2 -I$withval/include/libxml -I$withval/include"
+
+ fi
+@@ -1144,8 +1144,7 @@
+ withval="$with_libxslt_prefix"
+ LIBXSLT_PREFIX=$withval
+ LIBXSLT_CFLAGS="-I$withval/include/libxslt -I$withval/include/libexslt"
+- LIBXSLT_LIBS="$withval/lib/libxslt.a $withval/lib/libexslt.a -lz -lm -lpthread"
+-
++ LIBXSLT_LIBS="`pkg-config --libs libexslt` %%PTHREAD%%"
+ fi
+
+
+@@ -1160,7 +1159,7 @@
+ # Check whether --with-libxslt-libs-prefix or --without-libxslt-libs-prefix was given.
+ if test "${with_libxslt_libs_prefix+set}" = set; then
+ withval="$with_libxslt_libs_prefix"
+- LIBXSLT_LIBS="$withval/libxslt.a $withval/libexslt.a -lz -lm -lpthread"
++ LIBXSLT_LIBS="`pkg-config --libs libexslt` %%PTHREAD%%"
+
+ fi
+
+@@ -1169,7 +1168,7 @@
+ if test "${with_libxslt_src+set}" = set; then
+ withval="$with_libxslt_src"
+ LIBXSLT_SRC="$withval"
+- LIBXSLT_LIBS="$withval/libxslt/.libs/libxslt.a $withval/libexslt/.libs/libexslt.a -lz -lm -lpthread"
++ LIBXSLT_LIBS="`pkg-config --libs libexslt` %%PTHREAD%%"
+ LIBXSLT_CFLAGS="-I$withval/libxslt -I$withval/libexslt -I$withval"
+
+ fi
+@@ -1445,7 +1444,7 @@
+
+ ac_test_CFLAGS="${CFLAGS+set}"
+ ac_save_CFLAGS="$CFLAGS"
+-CFLAGS=
++#CFLAGS=
+ echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
+ echo "configure:1451: checking whether ${CC-cc} accepts -g" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
+@@ -2133,8 +2132,8 @@
+ #define vsnprintf _vsnprintf
+ EOF
+
+- LIBXML_LIBS=`echo "$LIBXML_LIBS" | sed -e 's/ -lz//g' -e 's/ -lpthread//g'`
+- LIBXSLT_LIBS=`echo "$LIBXSLT_LIBS" | sed -e 's/ -lz//g' -e 's/ -lpthread//g'`
++ LIBXML_LIBS=`echo "$LIBXML_LIBS" | sed -e 's/ -lz//g' -e 's/ %%PTHREAD%%//g'`
++ LIBXSLT_LIBS=`echo "$LIBXSLT_LIBS" | sed -e 's/ -lz//g' -e 's/ %%PTHREAD%%//g'`
+ ;;
+ *-hpux* )
+ LIBXML_LIBS=`echo "$LIBXML_LIBS" | sed -e 's/ -lz//g'`
+@@ -2159,7 +2158,7 @@
+
+ if test "x$LIBXML_LIBS" = "x"
+ then
+- LIBXML_LIBS="${LIBXML_PREFIX}/lib/libxml2.a -lz -lm -lpthread -ldl"
++ LIBXML_LIBS="`pkg-config --libs libxml-2.0` %%PTHREAD%%"
+ fi
+
+ if test "x$LIBXSLT_CFLAGS" = "x"
+@@ -2169,7 +2168,7 @@
+
+ if test "x$LIBXSLT_LIBS" = "x"
+ then
+- LIBXSLT_LIBS="${LIBXSLT_PREFIX}/lib/libxslt.a ${LIBXSLT_PREFIX}/lib/libexslt.a -lz -lm -lpthread"
++ LIBXSLT_LIBS="`pkg-config --libs libexslt` %%PTHREAD%%"
+ fi
+
+ if test "x$LIBICONV_CFLAGS" = "x"