summaryrefslogtreecommitdiffstats
path: root/graphics/dia/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/dia/Makefile')
-rw-r--r--graphics/dia/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/graphics/dia/Makefile b/graphics/dia/Makefile
new file mode 100644
index 000000000..7b032cb2d
--- /dev/null
+++ b/graphics/dia/Makefile
@@ -0,0 +1,59 @@
+# New ports collection makefile for: dia
+# Date created: 21 December 1999
+# Whom: saper@system.pl
+#
+# $FreeBSD: ports/graphics/dia/Makefile,v 1.46 2004/07/26 05:05:59 adamw Exp $
+#
+
+PORTNAME= dia
+PORTVERSION= 0.94p3
+PORTEPOCH= 1
+CATEGORIES= graphics gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.94
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/p/-pre/}
+DIST_SUBDIR= gnome2
+
+MAINTAINER?= gnome@FreeBSD.org
+COMMENT= Diagram creation program, similar to Visio
+
+LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
+
+USE_BZIP2= yes
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_GNOME= gtk20 gnomehack gnomeprefix libxslt libartlgpl2
+WANT_GNOME= yes
+USE_LIBTOOL_VER=15
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib -lintl" \
+ LOCALBASE="${LOCALBASE}"
+
+MAN1= dia.1
+
+.if !defined(WITHOUT_PYTHON)
+USE_PYTHON= yes
+BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/pygtk.py:${PORTSDIR}/x11-toolkits/py-gtk2
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pygtk.py:${PORTSDIR}/x11-toolkits/py-gtk2
+CONFIGURE_ARGS= --with-python
+PLIST_SUB= PYTHON:=""
+.else
+PLIST_SUB= PYTHON:="@comment "
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${HAVE_GNOME:Mlibgnomeui}!=""
+USE_GNOME+= libgnomeui
+CONFIGURE_ARGS+= --enable-gnome --enable-bonobo
+PKGNAMESUFFIX= -gnome
+.else
+USE_REINPLACE= yes
+post-patch:
+ @${FIND} ${WRKSRC} -name Makefile.in | \
+ ${XARGS} ${REINPLACE_CMD} -e \
+ 's,\(^GTK_LIBS.*\),\1 ${PTHREAD_LIBS}, ; \
+ s,\(^GTK_CFLAGS = \),\1 ${PTHREAD_CFLAGS} ,'
+.endif
+
+.include <bsd.port.post.mk>