summaryrefslogtreecommitdiff
path: root/devel/glade/Makefile
diff options
context:
space:
mode:
authorYukihiro Nakai <nakai@FreeBSD.org>1999-10-14 09:13:54 +0000
committerYukihiro Nakai <nakai@FreeBSD.org>1999-10-14 09:13:54 +0000
commitbcd377635080ad33768d0137c4b26a560eafea65 (patch)
tree7a6f1060f8f9c062dc15143384c32a61182c9896 /devel/glade/Makefile
parentPR: ports/14303 (diff)
PR: ports/14303
Submitted by:Ade Lovett<ade@lovett.com> Update to 0.5.3
Notes
Notes: svn path=/head/; revision=22431
Diffstat (limited to 'devel/glade/Makefile')
-rw-r--r--devel/glade/Makefile26
1 files changed, 23 insertions, 3 deletions
diff --git a/devel/glade/Makefile b/devel/glade/Makefile
index 7fefabb31ed4..f1d1ab28237e 100644
--- a/devel/glade/Makefile
+++ b/devel/glade/Makefile
@@ -1,18 +1,26 @@
# New ports collection makefile for: glade
-# Version required: 0.4.1
+# Version required: 0.5.3
# Date created: 29 June 1998
# Whom: Dom Mitchell <dom@myrddin.demon.co.uk>
#
# $FreeBSD$
#
-DISTNAME= glade-0.4.1
+DISTNAME= glade-0.5.3
CATEGORIES= devel
MASTER_SITES= http://glade.pn.org/
MAINTAINER= dom@myrddin.demon.co.uk
+.if defined(USE_GNOME)
+LIB_DEPENDS= gnome.3:${PORTSDIR}/x11/gnomelibs
+PLIST_GNOME= ${PKGDIR}/PLIST.gnome
+.else
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
+CONFIGURE_ARGS= --disable-gnome
+.endif
+
+PLIST= ${WRKDIR}/PLIST
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
@@ -20,11 +28,23 @@ FETCH_BEFORE_ARGS= -b
USE_X_PREFIX= yes
USE_LIBTOOL= yes
-CONFIGURE_ARGS= --disable-gnome
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
GTK_CONFIG="${GTK_CONFIG}" \
LIBS="-L${LOCALBASE}/libs"
+.if !defined(USE_GNOME)
+pre-extract:
+ @${ECHO} "You can add hooks for GNOME by defining USE_GNOME"
+.endif
+
+post-patch:
+.if !defined(USE_GNOME)
+ @cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-nognome
+.endif
+
+pre-install:
+ @sort -r -o ${PLIST} ${PLIST_GNOME} ${PKGDIR}/PLIST
+
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/glade