aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/rep-gtk2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits/rep-gtk2/Makefile')
-rw-r--r--x11-toolkits/rep-gtk2/Makefile35
1 files changed, 14 insertions, 21 deletions
diff --git a/x11-toolkits/rep-gtk2/Makefile b/x11-toolkits/rep-gtk2/Makefile
index 4d4768ca4906..8cabca1d70a2 100644
--- a/x11-toolkits/rep-gtk2/Makefile
+++ b/x11-toolkits/rep-gtk2/Makefile
@@ -14,34 +14,27 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= sobomax@FreeBSD.org
-LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
- rep.10:${PORTSDIR}/lang/librep
-.if !defined(WITHOUT_GNOME)
-LIB_DEPENDS+= glade.4:${PORTSDIR}/devel/libglade \
- gnome.4:${PORTSDIR}/x11/gnomelibs \
- gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf
-.endif
-
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
+LIB_DEPENDS= rep.10:${PORTSDIR}/lang/librep
PLIST_SUB= GNUHOST=${ARCH}--freebsd${OSREL}
USE_X_PREFIX= yes
USE_GMAKE= yes
+USE_GTK= yes
+WANT_GNOME= yes
GNU_CONFIGURE= yes
-.if defined(WITHOUT_GNOME)
-CONFIGURE_ARGS= --without-libglade --without-gnome --without-gdk-pixbuf \
- --without-gnome-canvas-pixbuf
-PLIST_SUB+= GNOME:="@comment "
-.else
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+
+.include <bsd.port.pre.mk>
+
+.if defined(HAVE_GNOME)
+LIB_DEPENDS+= glade.4:${PORTSDIR}/devel/libglade
CONFIGURE_ARGS= --with-gnome --with-libglade --with-gdk-pixbuf \
--with-gnome-canvas-pixbuf
-PLIST_SUB+= GNOME:=""
+.else
+CONFIGURE_ARGS= --without-libglade --without-gnome --without-gdk-pixbuf \
+ --without-gnome-canvas-pixbuf
.endif
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- GTK_CONFIG="${GTK_CONFIG}" \
- GLIB_CONFIG="${GLIB_CONFIG}" \
- LIBS="-L${LOCALBASE}/lib"
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>