summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-04-11 15:27:54 +0000
committerbapt <bapt@FreeBSD.org>2014-04-11 15:27:54 +0000
commit2639b4fd0c5065b70715755aaf9ed802ac585119 (patch)
treed71a089c622d66bebb94921d1005d2a2b4318f31
parent7a2c750a639e1281bc2443c255bda6fbc1c89bf9 (diff)
downloadFreeBSD-ports-2639b4fd0c5065b70715755aaf9ed802ac585119.zip
FreeBSD-ports-2639b4fd0c5065b70715755aaf9ed802ac585119.tar.gz
Support stage
-rw-r--r--graphics/dia/Makefile31
-rw-r--r--graphics/dia/pkg-plist2
2 files changed, 8 insertions, 25 deletions
diff --git a/graphics/dia/Makefile b/graphics/dia/Makefile
index c00f8e4..065baae 100644
--- a/graphics/dia/Makefile
+++ b/graphics/dia/Makefile
@@ -13,11 +13,12 @@ DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= Diagram creation program, similar to Visio
+OPTIONS_DEFINE= DOCS
+
LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt \
libpng15.so:${PORTSDIR}/graphics/png
-USES= desktop-file-utils gettext gmake pathfix pkgconfig
-USE_XZ= yes
+USES= desktop-file-utils gettext gmake libtool pathfix pkgconfig tar:xz
USE_GNOME= gtk20 gnomeprefix libxslt libartlgpl2 intlhack
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
@@ -25,27 +26,11 @@ CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --disable-gnome
+INSTALL_TARGET= install-strip
-NO_STAGE= yes
+DOCS_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MDOCS}
-BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
-MAN1= dia.1
-MANLANG= "" fr
-.endif
-
-#.if !defined(WITHOUT_PYTHON)
-#USE_PYTHON= yes
-#USE_GNOME+= pygtk2
-#CONFIGURE_ARGS= --with-python
-#PLIST_SUB+= PYTHON=""
-#.else
-#PLIST_SUB+= PYTHON="@comment "
-#.endif
-
-.include <bsd.port.pre.mk>
-
.if ${ARCH} == "i386"
LIB_DEPENDS+= libEMF.so:${PORTSDIR}/graphics/libemf
CONFIGURE_ARGS+= --enable-libemf
@@ -63,10 +48,6 @@ post-patch:
${WRKSRC}/objects/custom/shape_typeinfo.c \
${WRKSRC}/tests/test-objects.c \
${WRKSRC}/tests/test-boundingbox.c
-.if ! ${PORT_OPTIONS:MDOCS}
- @${REINPLACE_CMD} -e '/SUBDIRS/s|data doc tests|data tests|g' \
- ${WRKSRC}/Makefile.in
-.endif
@${FIND} ${WRKSRC} -name Makefile.in | \
${XARGS} ${REINPLACE_CMD} -e \
's,\(^GTK_LIBS.*\),\1 ${PTHREAD_LIBS}, ; \
@@ -75,4 +56,4 @@ post-patch:
s|echo aout|echo elf|g ; s|/usr/include/libEMF|${LOCALBASE}/include/libEMF|g ; \
s|-lstdc++||g' ${WRKSRC}/configure
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/dia/pkg-plist b/graphics/dia/pkg-plist
index 8b7c392..0e193bbb 100644
--- a/graphics/dia/pkg-plist
+++ b/graphics/dia/pkg-plist
@@ -69,6 +69,8 @@ lib/dia/libxfig_filter.la
lib/dia/libxfig_filter.so
lib/dia/libxslt_filter.la
lib/dia/libxslt_filter.so
+%%PORTDOCS%%man/fr/man1/dia.1.gz
+%%PORTDOCS%%man/man1/dia.1.gz
share/applications/dia.desktop
share/dia/dia-splash.png
share/dia/shapes/Assorted/arrow-chevron.png
OpenPOWER on IntegriCloud