blob: cc7d1ef7f7dce29c73f404bcdcd3ed93682a2d27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
PORTNAME= libwmf
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.13
CATEGORIES= graphics
MAINTAINER= ports@FreeBSD.org
COMMENT= Tools and library for converting Microsoft WMF (windows metafile)
WWW= http://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>
|