1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/graphics/libwmf/Makefile
Antoine Brodin 908e0b6c37 Move the -nox11 PKGNAMESUFFIX to the -nox11 slave and simplify CONFLICTS
Suggested in:	ports/188785 followup
2014-04-23 20:42:47 +00:00

58 lines
1.4 KiB
Makefile

# Created by: Chris Piazza <cpiazza@FreeBSD.org>
# $FreeBSD$
PORTNAME= libwmf
PORTVERSION= 0.2.8.4
PORTREVISION= 11
CATEGORIES= graphics
MASTER_SITES= SF/wvware/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Tools and library for converting Microsoft WMF (windows metafile)
LICENSE= GPLv2
BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
libpng.so:${PORTSDIR}/graphics/png \
libfreetype.so:${PORTSDIR}/print/freetype2
CONFLICTS?= libwmf-nox11-[0-9]*
USE_AUTOTOOLS= libtool
USE_GNOME= libxml2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-sys-gd=no \
--with-png=${LOCALBASE} --with-jpeg=${LOCALBASE} \
--with-gsfontdir=${LOCALBASE}/share/ghostscript/fonts
USE_LDCONFIG= yes
PORTDOCS= *
OPTIONS_DEFINE= X11
OPTIONS_DEFAULT=X11
OPTIONS_SUB= yes
X11_USE= XORG=x11
X11_CONFIGURE_OFF=--with-x=no
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|src include fonts doc|src include fonts|g' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|@LT_CURRENT@|2|g ; \
s|@LIBWMF_GDK_PIXBUF_TRUE@|#|g ; \
s|@LIBWMF_GDK_PIXBUF_FALSE@||g ; \
s|-release $$(LT_RELEASE)||g ; \
s|: install-loaderLTLIBRARIES|:|g' ${WRKSRC}/src/Makefile.in
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${TAR} -C ${WRKSRC}/doc --exclude '*Makefile*' -cf - . | \
${TAR} -C ${STAGEDIR}${DOCSDIR} --unlink -xf -
.endif
.include <bsd.port.mk>