1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/graphics/libwmf/Makefile
Rodrigo Osorio 05f0f44a55 */*: Update WWW to use HTTPS for sourceforge.net projects
Homepage link is permanent redirected to its HTTPS counterpart
2023-11-01 23:11:47 +01:00

62 lines
1.4 KiB
Makefile

PORTNAME= libwmf
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.13
PORTREVISION= 2
CATEGORIES= graphics
MAINTAINER= ports@FreeBSD.org
COMMENT= Tools and library for converting Microsoft WMF (windows metafile)
WWW= https://wvware.sourceforge.net/libwmf.html
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png \
libfreetype.so:print/freetype2 \
libgd.so:graphics/gd \
libexpat.so:textproc/expat2
USES= autoreconf:build cpe gnome jpeg libtool localbase pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= caolanm
USE_GNOME= gdkpixbuf2
USE_LDCONFIG= yes
CPE_VENDOR= wvware
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-gsfontdir=${LOCALBASE}/share/ghostscript/fonts
INSTALL_TARGET= install-strip
CONFLICTS?= libwmf-nox11
PORTDOCS= *
OPTIONS_DEFINE= X11 DOCS
OPTIONS_DEFAULT=X11
OPTIONS_SUB= yes
X11_USES= xorg
X11_USE= XORG=x11
X11_CONFIGURE_OFF=--with-x=no
post-patch:
@${REINPLACE_CMD} -e \
's|@LIBWMF_GDK_PIXBUF_TRUE@|#|g ; \
s|@LIBWMF_GDK_PIXBUF_FALSE@||g ; \
s|: install-loaderLTLIBRARIES|:|g' ${WRKSRC}/src/Makefile.in
pre-configure:
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} AUTOHEADER="${TRUE}" \
${LOCALBASE}/bin/autoreconf -vif -Ipatches)
post-configure:
@${REINPLACE_CMD} -e 's|autoheader|autoheader -Ipatches|g' \
${WRKSRC}/Makefile
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${TAR} -C ${WRKSRC}/doc --exclude '*Makefile*' -cf - . | \
${TAR} -C ${STAGEDIR}${DOCSDIR} --unlink -xf -
.include <bsd.port.mk>