summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcpiazza <cpiazza@FreeBSD.org>2000-11-24 00:01:43 +0000
committercpiazza <cpiazza@FreeBSD.org>2000-11-24 00:01:43 +0000
commitdaa1b06b82eb762f09fa7e7c2cc1ae41ad6cfa1d (patch)
tree508d19f94150d15866e93161cb753ae0f1254aaf
parent981867dde0db4d7315f61392fcc5227f2f142b56 (diff)
downloadFreeBSD-ports-daa1b06b82eb762f09fa7e7c2cc1ae41ad6cfa1d.zip
FreeBSD-ports-daa1b06b82eb762f09fa7e7c2cc1ae41ad6cfa1d.tar.gz
Make gnome optional
PR: 23049 Submitted by: Jeremy Norris <ishmael27@home.com>
-rw-r--r--audio/gnapster/Makefile14
-rw-r--r--audio/gnapster/files/patch-ae11
-rw-r--r--audio/gnapster/files/patch-af11
-rw-r--r--audio/gnapster/pkg-plist15
4 files changed, 40 insertions, 11 deletions
diff --git a/audio/gnapster/Makefile b/audio/gnapster/Makefile
index 9cc47ac..7ad3adb 100644
--- a/audio/gnapster/Makefile
+++ b/audio/gnapster/Makefile
@@ -12,15 +12,21 @@ MASTER_SITES= http://www.faradic.net/~jasta/files/
MAINTAINER= cpiazza@FreeBSD.org
-LIB_DEPENDS= ungif.5:${PORTSDIR}/graphics/libungif
+.if defined(HAVE_GNOME)
+LIB_DEPENDS= gdk_pixbuf.2:${PORTSDIR}/graphics/gdk_pixbuf
+.endif
USE_GMAKE= yes
USE_X_PREFIX= yes
-USE_GNOME= yes
-USE_XPM= yes
+USE_IMLIB= yes
+WANT_GNOME= yes
USE_LIBTOOL= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LIBS="-L${LOCALBASE}/lib"
+ LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
+
+.if !defined(HAVE_GNOME)
+CONFIGURE_ARGS+=--disable-gnome --disable-gdk-pixbuf
+.endif
pre-patch:
@${PERL} -pi -e 's|-lpthread|-pthread|g ; \
diff --git a/audio/gnapster/files/patch-ae b/audio/gnapster/files/patch-ae
new file mode 100644
index 0000000..51f3c41
--- /dev/null
+++ b/audio/gnapster/files/patch-ae
@@ -0,0 +1,11 @@
+--- configure.orig Sun Oct 22 09:26:22 2000
++++ configure Sun Oct 22 09:26:41 2000
+@@ -1323,7 +1323,7 @@
+
+ GNAPSTER_INCLUDES=""
+ GNAPSTER_LDADD=""
+-CFLAGS="-g"
++#CFLAGS="-g"
+
+
+ if test "$gnome" = yes; then
diff --git a/audio/gnapster/files/patch-af b/audio/gnapster/files/patch-af
new file mode 100644
index 0000000..b0c4ca0
--- /dev/null
+++ b/audio/gnapster/files/patch-af
@@ -0,0 +1,11 @@
+--- pixmaps/Makefile.in.orig Mon Nov 6 19:53:30 2000
++++ pixmaps/Makefile.in Mon Nov 6 19:55:59 2000
+@@ -121,7 +121,7 @@
+
+ EXTRA_DIST = gnapster.png
+
+-pixmapdir = $(datadir)/pixmaps
++pixmapdir = $(pkgdatadir)/pixmaps
+
+ pixmap_DATA = gnapster.png
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
diff --git a/audio/gnapster/pkg-plist b/audio/gnapster/pkg-plist
index 0b313f3..cd39635 100644
--- a/audio/gnapster/pkg-plist
+++ b/audio/gnapster/pkg-plist
@@ -1,9 +1,10 @@
bin/gnapster
-share/gnome/gnapster/themes/cyblue.theme
-share/gnome/gnapster/themes/cypress.theme
-share/gnome/gnapster/themes/default.theme
-share/gnome/gnapster/themes/faded.theme
-share/gnome/pixmaps/gnapster.png
+%%GNOME:%%share/gnome/apps/Applications/gnapster.desktop
+%%DATADIR%%/gnapster/themes/cyblue.theme
+%%DATADIR%%/gnapster/themes/cypress.theme
+%%DATADIR%%/gnapster/themes/default.theme
+%%DATADIR%%/gnapster/themes/faded.theme
+%%DATADIR%%/gnapster/pixmaps/gnapster.png
share/locale/ca/LC_MESSAGES/gnapster.mo
share/locale/da/LC_MESSAGES/gnapster.mo
share/locale/de/LC_MESSAGES/gnapster.mo
@@ -19,5 +20,5 @@ share/locale/pt/LC_MESSAGES/gnapster.mo
share/locale/ru/LC_MESSAGES/gnapster.mo
share/locale/sv/LC_MESSAGES/gnapster.mo
share/locale/tr/LC_MESSAGES/gnapster.mo
-@dirrm share/gnome/gnapster/themes
-@dirrm share/gnome/gnapster
+@dirrm %%DATADIR%%/gnapster/themes
+@dirrm %%DATADIR%%/gnapster
OpenPOWER on IntegriCloud