summaryrefslogtreecommitdiffstats
path: root/audio/soundtracker
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 /audio/soundtracker
parent68dad4980b984b6c03859651af5eefb37c1c9d90 (diff)
downloadFreeBSD-ports-05b7017f031a0b7ec77897d1ff4479959829076e.zip
FreeBSD-ports-05b7017f031a0b7ec77897d1ff4479959829076e.tar.gz
Implement WANT_GNOME.
Diffstat (limited to 'audio/soundtracker')
-rw-r--r--audio/soundtracker/Makefile44
1 files changed, 20 insertions, 24 deletions
diff --git a/audio/soundtracker/Makefile b/audio/soundtracker/Makefile
index c12fbb3..a69ce57 100644
--- a/audio/soundtracker/Makefile
+++ b/audio/soundtracker/Makefile
@@ -12,32 +12,28 @@ MASTER_SITES= ftp://ftp.soundtracker.org/pub/soundtracker/v0.5/
MAINTAINER= kzentner@u.washington.edu
-LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
-
-.if defined(USE_GNOME)
-LIB_DEPENDS+= gnome.4:${PORTSDIR}/x11/gnomelibs
-.endif
-
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-GNU_CONFIGURE= YES
-
-CONFIGURE_ENV= GTK_CONFIG="${GTK_CONFIG}"
-
USE_X_PREFIX= yes
-
-.if defined(USE_GNOME)
-CONFIGURE_ARGS+= --enable-gnome
-PLIST_SUB+= GNOME:=""
-PLIST= ${PKGDIR}/PLIST.gnome
+USE_GTK= yes
+USE_ESOUND= yes
+WANT_GNOME= yes
+GNU_CONFIGURE= yes
+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-gnome
.else
-CONFIGURE_ARGS+= --disable-gnome
-PLIST_SUB+= GNOME:="@comment "
+CONFIGURE_ARGS+=--disable-gnome
.endif
-CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
- LIBS="-L${LOCALBASE}/lib"
-
-post-install:
- @strip ${PREFIX}/bin/soundtracker
+pre-patch:
+ @${PERL} -pi -e 's^-l(pthread|c_r)^-pthread^g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
+ 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
+ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud