mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
* Switch from PORTVERSION to DISTVERSION as recommended by Porters Handbook * Import patches from Debian for various fixes [1] * Import patch from Gentoo to fix build with new versions of libxml2 and libxslt [2] * Remove GNU_CONFIGURE_MANPREFIX * Rework Makefile for better readability and to follow Porters Handbook more closely * Unbreak with libxml2 2.14 [3] References: [1] https://sources.debian.org/patches/xmlstarlet/1.6.1-4/50-fix-format-security.patch/ https://sources.debian.org/patches/xmlstarlet/1.6.1-4/60-avoid-silent-rules.patch/ https://sources.debian.org/patches/xmlstarlet/1.6.1-4/70-remove-link-usr-lib.patch/ https://sources.debian.org/patches/xmlstarlet/1.6.1-4/80-fix-unesc-dquot.patch/ https://sources.debian.org/patches/xmlstarlet/1.6.1-4/90-fix-upstream-version.patch/ https://sources.debian.org/patches/xmlstarlet/1.6.1-4/pkg-config.patch/ [2] https://gitweb.gentoo.org/repo/gentoo.git/tree/app-text/xmlstarlet/files/xmlstarlet-1.6.1-clang17.patch [3] https://gitlab.archlinux.org/archlinux/packaging/packages/xmlstarlet/-/blob/34eb3ee24a6088a13d5de01af7a2f4e784cff0fc/PKGBUILD#L22 PR: 279976 Tested by: George Mitchell <george@m5p.com> Approved by: maintainer timeout, 3 weeks
45 lines
1.0 KiB
Makefile
45 lines
1.0 KiB
Makefile
PORTNAME= xmlstarlet
|
|
DISTVERSION= 1.6.1
|
|
PORTREVISION= 4
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= SF/xmlstar/${PORTNAME}/${DISTVERSION}
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= Command Line XML Toolkit
|
|
WWW= https://xmlstar.sourceforge.net/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= autoreconf gnome iconv pkgconfig
|
|
USE_GNOME= libxml2 libxslt
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
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_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|