forked from Lainports/freebsd-ports
are no more self hosting so we are stuck with 0.25 version while pkgconf provide the same set of features as 0.27 and a compatible frontend. A symlink to pkg-config has been added for convenience and compatibility This also introduces a new macro to use pkgconf in your ports: USE_PKGCONFIG it can take the following arguments: - yes (meaning build only dep) - build (meaning build only dep) - run (meaning run only dep) - both (meaning run and build dep) From now USE_GNOME= pkgconfig is deprecated in favour of USE_PKGCONFIG The old gnome macro has been modified to use pkgconf but still the sameway: run and build dep to avoid large breakage. While here fix some ports relying on pkg-config but not specifying it, fix some ports broken because testing wrong .pc files, and fix ports using pkg-config --version to determine pkg-config version instead of pkg-config --modversion pkg-config like recommanded by pkg-config With Hat: portmgr Exp-runs by: bapt (pointhat-west), beat (pointyhat)
55 lines
1.2 KiB
Makefile
55 lines
1.2 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: xmlwrapp
|
|
# Date created: Jan 14, 2003
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xmlwrapp
|
|
PORTVERSION= 0.6.3
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A modern style C++ library for working with XML data
|
|
|
|
LICENSE= BSD
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= boost_iostreams.4:${PORTSDIR}/devel/boost-libs
|
|
|
|
OPTIONS= XSLT "build libxsltwrap library (requires libxslt)" off
|
|
|
|
USE_GNOME= gnomehack libxml2
|
|
USE_PERL5_BUILD=yes
|
|
USE_AUTOTOOLS= libtool
|
|
CONFIGURE_ARGS= --disable-silent-rules
|
|
USE_LDCONFIG= yes
|
|
USE_PKGCONFIG= yes
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(WITH_XSLT)
|
|
USE_GNOME+= libxslt
|
|
PLIST_SUB+= XSLT=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-xslt
|
|
PLIST_SUB+= XSLT="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} '/if test/s|==|=|' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} '/^SUBDIRS/s|docs||' ${WRKSRC}/Makefile.in
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@(cd ${WRKSRC}/docs && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
|
${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|