aboutsummaryrefslogtreecommitdiff
path: root/graphics/dia
diff options
context:
space:
mode:
authorAlexander Logvinov <avl@FreeBSD.org>2009-07-20 15:53:34 +0000
committerAlexander Logvinov <avl@FreeBSD.org>2009-07-20 15:53:34 +0000
commit06741aca657ec02dae67e9c63f8fdba4768e29a2 (patch)
treeb61fcceed9a47a3a38f20cf52c2c363959da24c4 /graphics/dia
parent16ddb34724a38e6e2609209a3408c9e6f7e96d13 (diff)
downloadports-06741aca657ec02dae67e9c63f8fdba4768e29a2.tar.gz
ports-06741aca657ec02dae67e9c63f8fdba4768e29a2.zip
Notes
Diffstat (limited to 'graphics/dia')
-rw-r--r--graphics/dia/Makefile14
-rw-r--r--graphics/dia/pkg-plist2
2 files changed, 14 insertions, 2 deletions
diff --git a/graphics/dia/Makefile b/graphics/dia/Makefile
index 1b70b1c18a94..13ba818d1d11 100644
--- a/graphics/dia/Makefile
+++ b/graphics/dia/Makefile
@@ -8,7 +8,7 @@
PORTNAME= dia
DISTVERSION= 0.97
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= graphics gnome
MASTER_SITES= GNOME
@@ -46,6 +46,13 @@ PLIST_SUB+= PYTHON="@comment "
.include <bsd.port.pre.mk>
+.if ${ARCH} == "i386"
+LIB_DEPENDS+= EMF.1:${PORTSDIR}/graphics/libemf
+PLIST_SUB+= WMF=""
+.else
+PLIST_SUB+= WMF="@comment "
+.endif
+
.if ${HAVE_GNOME:Mlibgnomeui}!=""
USE_GNOME+= libgnomeui
INSTALLS_OMF= yes
@@ -72,10 +79,13 @@ post-patch:
's,\(^GTK_LIBS.*\),\1 ${PTHREAD_LIBS}, ; \
s,\(^GTK_CFLAGS = \),\1 ${PTHREAD_CFLAGS} ,'
.endif
+.if ${ARCH} != "i386"
+ @${REINPLACE_CMD} -e 's|wmf||g' ${WRKSRC}/plug-ins/Makefile.in
+.endif
pre-configure:
@${REINPLACE_CMD} -e 's|http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl|${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl| ; \
- s|echo aout|echo elf|g' \
+ s|echo aout|echo elf|g ; s|/usr/include/libEMF|${LOCALBASE}/include/libEMF|g' \
${WRKSRC}/configure
post-install:
diff --git a/graphics/dia/pkg-plist b/graphics/dia/pkg-plist
index 698422d7d83e..22a3fff2b4d7 100644
--- a/graphics/dia/pkg-plist
+++ b/graphics/dia/pkg-plist
@@ -65,6 +65,8 @@ lib/dia/libvdx_filter.la
lib/dia/libvdx_filter.so
lib/dia/libwpg_filter.la
lib/dia/libwpg_filter.so
+%%WMF%%lib/dia/libwmf_filter.la
+%%WMF%%lib/dia/libwmf_filter.so
lib/dia/libxfig_filter.la
lib/dia/libxfig_filter.so
lib/dia/libxslt_filter.la