summaryrefslogtreecommitdiff
path: root/textproc/xmlstarlet/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/xmlstarlet/Makefile')
-rw-r--r--textproc/xmlstarlet/Makefile32
1 files changed, 21 insertions, 11 deletions
diff --git a/textproc/xmlstarlet/Makefile b/textproc/xmlstarlet/Makefile
index 94426a1ca5b3..8f540ce005b0 100644
--- a/textproc/xmlstarlet/Makefile
+++ b/textproc/xmlstarlet/Makefile
@@ -1,8 +1,8 @@
PORTNAME= xmlstarlet
-PORTVERSION= 1.6.1
+DISTVERSION= 1.6.1
PORTREVISION= 4
CATEGORIES= textproc
-MASTER_SITES= SF/xmlstar/${PORTNAME}/${PORTVERSION}
+MASTER_SITES= SF/xmlstar/${PORTNAME}/${DISTVERSION}
MAINTAINER= hrs@FreeBSD.org
COMMENT= Command Line XML Toolkit
@@ -11,24 +11,34 @@ WWW= https://xmlstar.sourceforge.net/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
-USE_GNOME= libxslt
-USES= gnome iconv
+USES= autoreconf gnome iconv pkgconfig
+USE_GNOME= libxml2 libxslt
+
GNU_CONFIGURE= yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
-CONFIGURE_ARGS= --with-libxml-prefix=${LOCALBASE} \
- --with-libxslt-prefix=${LOCALBASE} \
- ${ICONV_CONFIGURE_ARG} \
- --disable-static-libs
-PLIST_FILES= bin/xml share/man/man1/xmlstarlet.1.gz
+
+CFLAGS+= -Wno-incompatible-function-pointer-types
+
+PLIST_FILES= bin/xml \
+ share/man/man1/xmlstarlet.1.gz
+
PORTDOCS= xmlstarlet.txt \
xmlstarlet-man.xml \
xmlstarlet-ug.html xmlstarlet-ug.pdf \
xmlstarlet-ug.ps xmlstarlet-ug.xml \
html.css
+
+CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG}
+
OPTIONS_DEFINE= DOCS
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|g' \
+ ${PATCH_WRKSRC}/configure.ac
+ @${REINPLACE_CMD} -e 's/ATTRIBUTE_UNUSED/__attribute__((unused))/g' \
+ ${PATCH_WRKSRC}/src/xml_pyx.c
+
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/doc && ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>