aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/rep-gtk2
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-06-01 08:30:05 +0800
committermarcus <marcus@FreeBSD.org>2003-06-01 08:30:05 +0800
commit658069f89d5bb5db073d3d60e96b547c473ca770 (patch)
tree3b573c9bfa1f3e27f9830f5e3ea5fb2a8182bf2b /x11-toolkits/rep-gtk2
parent5a216a6a239602090c55b62f8927013f773b0dd6 (diff)
downloadfreebsd-ports-gnome-658069f89d5bb5db073d3d60e96b547c473ca770.tar.gz
freebsd-ports-gnome-658069f89d5bb5db073d3d60e96b547c473ca770.tar.zst
freebsd-ports-gnome-658069f89d5bb5db073d3d60e96b547c473ca770.zip
* Make GNOME support optional [1]
* Update the pkg-descr to be more inline with the COMMENT Requested by: obraun
Diffstat (limited to 'x11-toolkits/rep-gtk2')
-rw-r--r--x11-toolkits/rep-gtk2/Makefile26
-rw-r--r--x11-toolkits/rep-gtk2/pkg-descr2
-rw-r--r--x11-toolkits/rep-gtk2/pkg-plist12
3 files changed, 25 insertions, 15 deletions
diff --git a/x11-toolkits/rep-gtk2/Makefile b/x11-toolkits/rep-gtk2/Makefile
index 73529da7616b..b90a7d6aa46b 100644
--- a/x11-toolkits/rep-gtk2/Makefile
+++ b/x11-toolkits/rep-gtk2/Makefile
@@ -7,16 +7,16 @@
PORTNAME= rep-gtk2
PORTVERSION= 0.17
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_GNOME}
-MASTER_SITE_SUBDIR= sources/rep-gtk/0.17
+MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/0.17
DISTNAME= rep-gtk-${PORTVERSION}
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
-COMMENT= GTK+ binding for rep Lisp interpreter
+COMMENT= GTK+-2 binding for rep Lisp interpreter
LIB_DEPENDS= rep.12:${PORTSDIR}/lang/librep
@@ -25,12 +25,22 @@ PLIST_SUB= GNUHOST=${ARCH}-pc-freebsd${OSREL:C/\..*//}
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_GMAKE= yes
-USE_GNOME= libgnomeui
+USE_GNOME= libglade2
+WANT_GNOME= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-libglade \
- --with-gnome
+CONFIGURE_ARGS= --with-libglade
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LIBS="-L${LOCALBASE}/lib"
+ LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_TARGET= ${ARCH}-pc-freebsd${OSREL:C/\..*//}
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${HAVE_GNOME:Mlibgnomeui}!=""
+USE_GNOME+= libgnomeui
+CONFIGURE_ARGS+= --with-gnome
+PKGNAMESUFFIX= -gnome
+.else
+CONFIGURE_ARGS+= --without-gnome
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/x11-toolkits/rep-gtk2/pkg-descr b/x11-toolkits/rep-gtk2/pkg-descr
index dbf830465677..4ceb045b3fef 100644
--- a/x11-toolkits/rep-gtk2/pkg-descr
+++ b/x11-toolkits/rep-gtk2/pkg-descr
@@ -1,3 +1,3 @@
-GTK+ binding for rep Lisp interpreter
+Rep-gtk offers GTK+-2 bindings for rep Lisp interpreter.
WWW: http://rep-gtk.sourceforge.net/
diff --git a/x11-toolkits/rep-gtk2/pkg-plist b/x11-toolkits/rep-gtk2/pkg-plist
index 67beac4f3519..57f4fd56e377 100644
--- a/x11-toolkits/rep-gtk2/pkg-plist
+++ b/x11-toolkits/rep-gtk2/pkg-plist
@@ -1,9 +1,9 @@
-libexec/rep/%%GNUHOST%%/gui/gtk-2/gnome-canvas.la
-libexec/rep/%%GNUHOST%%/gui/gtk-2/gnome-canvas.so
-libexec/rep/%%GNUHOST%%/gui/gtk-2/gnome-lib.la
-libexec/rep/%%GNUHOST%%/gui/gtk-2/gnome-lib.so
-libexec/rep/%%GNUHOST%%/gui/gtk-2/gnome-ui.la
-libexec/rep/%%GNUHOST%%/gui/gtk-2/gnome-ui.so
+%%GNOME:%%libexec/rep/%%GNUHOST%%/gui/gtk-2/gnome-canvas.la
+%%GNOME:%%libexec/rep/%%GNUHOST%%/gui/gtk-2/gnome-canvas.so
+%%GNOME:%%libexec/rep/%%GNUHOST%%/gui/gtk-2/gnome-lib.la
+%%GNOME:%%libexec/rep/%%GNUHOST%%/gui/gtk-2/gnome-lib.so
+%%GNOME:%%libexec/rep/%%GNUHOST%%/gui/gtk-2/gnome-ui.la
+%%GNOME:%%libexec/rep/%%GNUHOST%%/gui/gtk-2/gnome-ui.so
libexec/rep/%%GNUHOST%%/gui/gtk-2/gtk.la
libexec/rep/%%GNUHOST%%/gui/gtk-2/gtk.so
libexec/rep/%%GNUHOST%%/gui/gtk-2/libglade.la