summaryrefslogtreecommitdiff
path: root/audio/extace
diff options
context:
space:
mode:
authorJeremy Lea <reg@FreeBSD.org>2000-10-05 07:22:56 +0000
committerJeremy Lea <reg@FreeBSD.org>2000-10-05 07:22:56 +0000
commit7b4c77811e89d7fc1131ca6e63df3e719bc86b1d (patch)
tree9695733a1620c4c290c86f161a4f1b73160ed39a /audio/extace
parentImplement USE_GNOME, part 2. (diff)
Implement WANT_GNOME.
Notes
Notes: svn path=/head/; revision=33430
Diffstat (limited to 'audio/extace')
-rw-r--r--audio/extace/Makefile28
-rw-r--r--audio/extace/files/patch-ab29
-rw-r--r--audio/extace/pkg-plist5
3 files changed, 45 insertions, 17 deletions
diff --git a/audio/extace/Makefile b/audio/extace/Makefile
index de54804f2d01..1de4d59ca929 100644
--- a/audio/extace/Makefile
+++ b/audio/extace/Makefile
@@ -13,22 +13,24 @@ MASTER_SITE_SUBDIR= eXtace
MAINTAINER= sobomax@FreeBSD.org
-LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
- gdk_imlib.5:${PORTSDIR}/graphics/imlib \
- esd.2:${PORTSDIR}/audio/esound \
- fftw.2:${PORTSDIR}/math/fftw
+LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw
USE_X_PREFIX= yes
+USE_IMLIB= yes
+USE_ESOUND= yes
+WANT_GNOME= yes
USE_LIBTOOL= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DHAVE_LIBFFTW" \
+ LIBS="-L${LOCALBASE}/lib"
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
-ESD_CONFIG?= ${LOCALBASE}/bin/esd-config
+.include <bsd.port.pre.mk>
-CONFIGURE_ENV= GTK_CONFIG="${GTK_CONFIG}" \
- GLIB_CONFIG="${GLIB_CONFIG}" \
- ESD_CONFIG="${ESD_CONFIG}" \
- LIBS="-L${LOCALBASE}/lib" \
- CPPFLAGS="-I${LOCALBASE}/include -DHAVE_LIBFFTW"
+.if defined(HAVE_GNOME)
+USE_GNOME= yes
+.endif
-.include <bsd.port.mk>
+pre-patch:
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
+ 's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g'
+
+.include <bsd.port.post.mk>
diff --git a/audio/extace/files/patch-ab b/audio/extace/files/patch-ab
new file mode 100644
index 000000000000..c72137e89ac4
--- /dev/null
+++ b/audio/extace/files/patch-ab
@@ -0,0 +1,29 @@
+--- extace/Makefile.in.orig Fri Jun 2 23:30:29 2000
++++ extace/Makefile.in Fri Jun 2 23:32:26 2000
+@@ -108,7 +108,9 @@
+
+ EXTRA_DIST = extace.desktop README NEWS TODO
+
++.ifdef HAVE_GNOME
+ Multimedia_DATA = extace.desktop
++.endif
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_HEADER = ../config.h
+ CONFIG_CLEAN_FILES =
+@@ -237,7 +239,6 @@
+
+ install-MultimediaDATA: $(Multimedia_DATA)
+ @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(Multimediadir)
+ @list='$(Multimedia_DATA)'; for p in $$list; do \
+ if test -f $(srcdir)/$$p; then \
+ echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(Multimediadir)/$$p"; \
+@@ -340,7 +341,7 @@
+ install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
+ installdirs:
+- $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(Multimediadir)
++ $(mkinstalldirs) $(DESTDIR)$(bindir)
+
+
+ mostlyclean-generic:
diff --git a/audio/extace/pkg-plist b/audio/extace/pkg-plist
index 073ecc938785..4ce717d85627 100644
--- a/audio/extace/pkg-plist
+++ b/audio/extace/pkg-plist
@@ -1,5 +1,2 @@
bin/extace
-share/gnome/apps/Multimedia/extace.desktop
-@unexec rmdir %D/share/gnome/apps/Multimedia 2>/dev/null || true
-@unexec rmdir %D/share/gnome/apps 2>/dev/null || true
-@unexec rmdir %D/share/gnome 2>/dev/null || true
+%%GNOME:%%share/gnome/apps/Multimedia/extace.desktop