summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-06-15 23:33:45 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-06-15 23:33:45 +0000
commit2fbfb6960182f131a7e1167a2ba3d7290aa2a81e (patch)
tree00940436c8be1f69989cb9ab0a4a53dd073c4e7f /graphics
parentAdd gnomemm, a meta-port for building all the GNOME 2 C++ bindings. (diff)
Make GNOME support optional.
Submitted by: obraun
Notes
Notes: svn path=/head/; revision=83074
Diffstat (limited to 'graphics')
-rw-r--r--graphics/dia/Makefile23
-rw-r--r--graphics/dia/pkg-plist18
2 files changed, 31 insertions, 10 deletions
diff --git a/graphics/dia/Makefile b/graphics/dia/Makefile
index 4879f830405a..5e083ea99146 100644
--- a/graphics/dia/Makefile
+++ b/graphics/dia/Makefile
@@ -20,9 +20,9 @@ LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_GMAKE= yes
-USE_GNOME= gnomeprefix gnomehack libgnomeui
+USE_GNOME= gtk20 gnomehack gnomeprefix libxslt libartlgpl2
+WANT_GNOME= yes
USE_LIBTOOL= yes
-CONFIGURE_ARGS= --enable-gnome --enable-bonobo
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib -lintl"
@@ -32,10 +32,25 @@ MAN1= dia.1
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
+CONFIGURE_ARGS= --with-python
PLIST_SUB= PYTHON:=""
.else
PLIST_SUB= PYTHON:="@comment "
.endif
-.include <bsd.port.mk>
+.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>
diff --git a/graphics/dia/pkg-plist b/graphics/dia/pkg-plist
index bd6c0d756110..3db66d8a3423 100644
--- a/graphics/dia/pkg-plist
+++ b/graphics/dia/pkg-plist
@@ -1016,9 +1016,12 @@ share/gnome/dia/sheets/civil.sheet
share/gnome/dia/sheets/jigsaw.sheet
share/gnome/dia/sheets/network.sheet
share/gnome/dia/sheets/sybase.sheet
-share/gnome/help/dia/C
-share/gnome/help/dia/en/topic.dat
-share/gnome/help/dia/pl/topic.dat
+%%GNOME:%%share/gnome/help/dia/C
+%%GNOME:%%share/gnome/help/dia/en/topic.dat
+%%GNOME:%%share/gnome/help/dia/pl/topic.dat
+%%NOGNOME:%%share/gnome/dia/help/C
+%%NOGNOME:%%share/gnome/dia/help/en/topic.dat
+%%NOGNOME:%%share/gnome/dia/help/pl/topic.dat
share/gnome/mime-info/dia.keys
share/gnome/mime-info/dia.mime
share/gnome/pixmaps/dia-diagram.png
@@ -1055,9 +1058,12 @@ share/locale/uk/LC_MESSAGES/dia.mo
share/locale/vi/LC_MESSAGES/dia.mo
share/locale/zh_CN/LC_MESSAGES/dia.mo
share/locale/zh_TW/LC_MESSAGES/dia.mo
-@dirrm share/gnome/help/dia/pl
-@dirrm share/gnome/help/dia/en
-@dirrm share/gnome/help/dia
+%%GNOME:%%@dirrm share/gnome/help/dia/pl
+%%GNOME:%%@dirrm share/gnome/help/dia/en
+%%GNOME:%%@dirrm share/gnome/help/dia
+%%NOGNOME:%%@dirrm share/gnome/dia/help/pl
+%%NOGNOME:%%@dirrm share/gnome/dia/help/en
+%%NOGNOME:%%@dirrm share/gnome/dia/help
@dirrm share/gnome/dia/sheets/UML
@dirrm share/gnome/dia/sheets/GRAFCET
@dirrm share/gnome/dia/sheets/ER