diff options
author | marcus <marcus@FreeBSD.org> | 2003-06-16 07:33:45 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-06-16 07:33:45 +0800 |
commit | 9bdeb8769c4ca6f65bed450f82ccfa5deb02391d (patch) | |
tree | 90115c81d9af850360c6f5bbb44b7824ff03e0e3 /graphics/dia | |
parent | 1609cf2f226124845b75557c66b353c516fab113 (diff) | |
download | freebsd-ports-gnome-9bdeb8769c4ca6f65bed450f82ccfa5deb02391d.tar.gz freebsd-ports-gnome-9bdeb8769c4ca6f65bed450f82ccfa5deb02391d.tar.zst freebsd-ports-gnome-9bdeb8769c4ca6f65bed450f82ccfa5deb02391d.zip |
Make GNOME support optional.
Submitted by: obraun
Diffstat (limited to 'graphics/dia')
-rw-r--r-- | graphics/dia/Makefile | 23 | ||||
-rw-r--r-- | graphics/dia/pkg-plist | 18 |
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 |