summaryrefslogtreecommitdiffstats
path: root/x11-wm/sawfish
diff options
context:
space:
mode:
authorreg <reg@FreeBSD.org>2000-10-05 07:22:56 +0000
committerreg <reg@FreeBSD.org>2000-10-05 07:22:56 +0000
commit05b7017f031a0b7ec77897d1ff4479959829076e (patch)
tree26ae85d09c84baa372a2949e4ad9d1546c408c7e /x11-wm/sawfish
parent68dad4980b984b6c03859651af5eefb37c1c9d90 (diff)
downloadFreeBSD-ports-05b7017f031a0b7ec77897d1ff4479959829076e.zip
FreeBSD-ports-05b7017f031a0b7ec77897d1ff4479959829076e.tar.gz
Implement WANT_GNOME.
Diffstat (limited to 'x11-wm/sawfish')
-rw-r--r--x11-wm/sawfish/Makefile47
-rw-r--r--x11-wm/sawfish/files/patch-ac2
2 files changed, 26 insertions, 23 deletions
diff --git a/x11-wm/sawfish/Makefile b/x11-wm/sawfish/Makefile
index 5d841c6..60fb9dc 100644
--- a/x11-wm/sawfish/Makefile
+++ b/x11-wm/sawfish/Makefile
@@ -13,41 +13,44 @@ MASTER_SITE_SUBDIR= sawmill
MAINTAINER= sobomax@FreeBSD.org
-LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
- Imlib.5:${PORTSDIR}/graphics/imlib \
- rep.10:${PORTSDIR}/lang/librep
-.if !defined(WITHOUT_GNOME)
-LIB_DEPENDS+= capplet.4:${PORTSDIR}/sysutils/gnomecontrolcenter
-.endif
+LIB_DEPENDS= rep.10:${PORTSDIR}/lang/librep
BUILD_DEPENDS= ${X11BASE}/libexec/rep/${ARCH}--freebsd${OSREL}/gtk.so:${PORTSDIR}/x11-toolkits/rep-gtk
RUN_DEPENDS= ${X11BASE}/libexec/rep/${ARCH}--freebsd${OSREL}/gtk.so:${PORTSDIR}/x11-toolkits/rep-gtk
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
-
PLIST_SUB= GNUHOST=${ARCH}--freebsd${OSREL} VERSION=${PORTVERSION}
USE_X_PREFIX= yes
USE_GMAKE= yes
+USE_IMLIB= yes
+WANT_GNOME= yes
USE_AUTOCONF= yes
-CONFIGURE_ARGS= --localstatedir=${PREFIX}/share \
- --datadir=${PREFIX}/share --with-readline
-.if !defined(WITHOUT_GNOME)
-CONFIGURE_ARGS+= --enable-capplet
+CONFIGURE_ARGS= --with-readline
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+
+.include <bsd.port.pre.mk>
+
+.if defined(HAVE_GNOME)
+USE_GNOME= yes
+CONFIGURE_ARGS+=--enable-capplet
PLIST_SUB+= GNOME:=""
.else
-CONFIGURE_ARGS+= --disable-capplet \
- --disable-gnome-widgets \
- --without-gdk-pixbuf
+CONFIGURE_ARGS+=--disable-capplet \
+ --disable-gnome-widgets \
+ --without-gdk-pixbuf
PLIST_SUB+= GNOME:="@comment "
.endif
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
- GTK_CONFIG="${GTK_CONFIG}" \
- GLIB_CONFIG="${GLIB_CONFIG}" \
- LIBS="-L${LOCALBASE}/lib -lxpg4"
pre-patch:
- find ${WRKSRC} \( -name "*.jl" -or -name "*.jl.in" \) | \
+ @${PERL} -pi -e 's^-l(pthread|c_r)^-pthread^g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
+ s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
+ s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
+ 's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g ; \
+ s|\$$\(datadir\)/aclocal|\$$\(prefix\)/share/aclocal|g ; \
+ s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g'
+ @find ${WRKSRC} \( -name "*.jl" -or -name "*.jl.in" \) | \
xargs ${GREP} -l "../locale" | \
xargs ${PERL} -pi -e "s|\.\./locale|../../../locale|g"
@@ -56,4 +59,4 @@ post-install:
--entry="* sawfish: (sawfish). sawfish programming manual" \
${PREFIX}/info/sawfish.info ${PREFIX}/info/dir
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/x11-wm/sawfish/files/patch-ac b/x11-wm/sawfish/files/patch-ac
index b2d9d3a..438809a 100644
--- a/x11-wm/sawfish/files/patch-ac
+++ b/x11-wm/sawfish/files/patch-ac
@@ -5,7 +5,7 @@
sawfishdir='${datadir}/sawfish'
lispdir='${sawfishdir}/${version}/lisp'
-localedir='${sawfishdir}/${version}/locale'
-+localedir='${datadir}/locale'
++localedir='${prefix}/share/locale'
sawfishexecdir='${libexecdir}/sawfish/${version}/${host_type}'
dnl Checks for programs.
OpenPOWER on IntegriCloud