1999-06-16 15:32:18 +02:00
|
|
|
# New ports collection makefile for: libwmf
|
|
|
|
# Date Created: 22 May 1999
|
1999-06-20 09:21:30 +02:00
|
|
|
# Whom: Chris Piazza <cpiazza@FreeBSD.org>
|
1999-06-16 15:32:18 +02:00
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1999-06-16 15:32:18 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= libwmf
|
2003-12-11 15:27:51 +01:00
|
|
|
PORTVERSION= 0.2.8.2
|
1999-06-16 15:32:18 +02:00
|
|
|
CATEGORIES= graphics
|
2000-11-12 18:24:56 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= wvware
|
1999-06-16 15:32:18 +02:00
|
|
|
|
2000-06-20 23:45:58 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= Tools and library for converting Microsoft WMF (windows metafile)
|
1999-06-16 15:32:18 +02:00
|
|
|
|
2001-09-13 09:01:02 +02:00
|
|
|
BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2 # XXX
|
2002-05-21 06:08:42 +02:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
2002-03-11 18:25:31 +01:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
1999-06-16 15:32:18 +02:00
|
|
|
|
2003-12-11 15:27:51 +01:00
|
|
|
USE_GNOME= gnometarget libxml2
|
2002-07-15 23:23:26 +02:00
|
|
|
USE_REINPLACE= yes
|
2001-11-20 04:54:56 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2002-07-15 23:23:26 +02:00
|
|
|
CONFIGURE_ARGS= --with-sys-gd=no \
|
2001-11-20 04:54:56 +01:00
|
|
|
--with-png=${LOCALBASE} --with-jpeg=${LOCALBASE} \
|
|
|
|
--with-gsfontdir=${LOCALBASE}/share/ghostscript/fonts
|
2000-12-19 09:19:50 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
1999-06-16 15:32:18 +02:00
|
|
|
|
2002-05-21 06:08:42 +02:00
|
|
|
.if defined(WITHOUT_X11)
|
|
|
|
PKGNAMESUFFIX= -nox11
|
|
|
|
CONFIGURE_ARGS+= --with-x=no
|
|
|
|
PLIST_SUB+= X11='@comment '
|
|
|
|
.else
|
|
|
|
USE_XLIB= yes
|
|
|
|
PLIST_SUB+= X11=''
|
|
|
|
.endif
|
|
|
|
|
2002-11-23 16:22:27 +01:00
|
|
|
post-patch:
|
2002-07-15 23:23:26 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|src include fonts doc|src include fonts|g' \
|
2001-09-13 09:01:02 +02:00
|
|
|
${WRKSRC}/Makefile.in
|
2003-12-11 15:27:51 +01:00
|
|
|
@${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' ${WRKSRC}/src/Makefile.in
|
2001-09-13 09:01:02 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${TAR} -C ${WRKSRC}/doc --exclude '*Makefile*' -cf - . | \
|
|
|
|
${TAR} -C ${DOCSDIR} --unlink -xf -
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGROUP} ${DOCSDIR}
|
|
|
|
.endif
|
2000-07-07 20:39:50 +02:00
|
|
|
|
1999-06-16 15:32:18 +02:00
|
|
|
.include <bsd.port.mk>
|