aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/dia
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2013-04-17 19:25:52 +0800
committerkwm <kwm@FreeBSD.org>2013-04-17 19:25:52 +0800
commit209113772bf46c2f5b5d9a33f223c80304386a5a (patch)
treef0aee7be23aab98c508d74931a751731715cddf6 /graphics/dia
parentda184f7e5577439c919ad64c5c9127eddc75083e (diff)
downloadfreebsd-ports-gnome-209113772bf46c2f5b5d9a33f223c80304386a5a.tar.gz
freebsd-ports-gnome-209113772bf46c2f5b5d9a33f223c80304386a5a.tar.zst
freebsd-ports-gnome-209113772bf46c2f5b5d9a33f223c80304386a5a.zip
convert NOPORTDOCS to PORT_OPTIONS:MDOCS
Switch to desktop-file-utils uses. Remove shlib version. Fix glib.h header patch so the correct prototype is used, otherwise function returns the wrong time [1] Move pre-configure section to post-patch. PR: ports/177462 [1] PR: ports/177564 [1] Submitted by: AN <andy@neu.net> Luiz Eduardo Roncato Cordeiro <cordeiro@cert.br> Based on: patch from Golyashov Sergey <svvord@ulona.org> in ports/177462 Feature safe: yes
Diffstat (limited to 'graphics/dia')
-rw-r--r--graphics/dia/Makefile23
-rw-r--r--graphics/dia/pkg-plist2
2 files changed, 10 insertions, 15 deletions
diff --git a/graphics/dia/Makefile b/graphics/dia/Makefile
index ec3cdd225304..aab758836587 100644
--- a/graphics/dia/Makefile
+++ b/graphics/dia/Makefile
@@ -4,22 +4,22 @@
PORTNAME= dia
DISTVERSION= 0.97.2
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= graphics gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
-MAINTAINER?= gnome@FreeBSD.org
+MAINTAINER= gnome@FreeBSD.org
COMMENT= Diagram creation program, similar to Visio
LIB_DEPENDS= popt:${PORTSDIR}/devel/popt \
png15:${PORTSDIR}/graphics/png
-USES= pathfix
+USES= pathfix desktop-file-utils
USE_XZ= yes
USE_GMAKE= yes
-USE_GNOME= gtk20 gnomeprefix libxslt libartlgpl2 intlhack \
- desktopfileutils
+USE_GNOME= gtk20 gnomeprefix libxslt libartlgpl2 intlhack
INSTALLS_ICONS= yes
USE_GETTEXT= yes
GNU_CONFIGURE= yes
@@ -28,8 +28,9 @@ CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -lintl" \
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS= --disable-gnome
+.include <bsd.port.options.mk>
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
MAN1= dia.1
MANLANG= "" fr
@@ -47,7 +48,7 @@ MANLANG= "" fr
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
-LIB_DEPENDS+= EMF.1:${PORTSDIR}/graphics/libemf
+LIB_DEPENDS+= EMF:${PORTSDIR}/graphics/libemf
CONFIGURE_ARGS+= --enable-libemf
PLIST_SUB+= WMF=""
.else
@@ -58,11 +59,12 @@ PLIST_SUB+= WMF="@comment "
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/lib/intl.c
- @${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
+ @${REINPLACE_CMD} -e 's|glib/gstrfuncs.h>|glib.h>|g' \
+ -e 's|glib/gtestutils.h|glib.h|g' \
${WRKSRC}/objects/custom/shape_typeinfo.c \
${WRKSRC}/tests/test-objects.c \
${WRKSRC}/tests/test-boundingbox.c
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/SUBDIRS/s|data doc tests|data tests|g' \
${WRKSRC}/Makefile.in
.endif
@@ -70,13 +72,8 @@ post-patch:
${XARGS} ${REINPLACE_CMD} -e \
's,\(^GTK_LIBS.*\),\1 ${PTHREAD_LIBS}, ; \
s,\(^GTK_CFLAGS = \),\1 ${PTHREAD_CFLAGS} ,'
-
-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|/usr/include/libEMF|${LOCALBASE}/include/libEMF|g' \
${WRKSRC}/configure
-post-install:
- @-update-desktop-database
-
.include <bsd.port.post.mk>
diff --git a/graphics/dia/pkg-plist b/graphics/dia/pkg-plist
index 6c3772e79854..6a5b606a3570 100644
--- a/graphics/dia/pkg-plist
+++ b/graphics/dia/pkg-plist
@@ -1849,5 +1849,3 @@ share/mime-info/dia.mime
@dirrmtry man/fr/man1
@dirrmtry man/fr
@dirrm lib/dia
-@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
-@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true