diff options
Diffstat (limited to 'audio/soundtracker')
-rw-r--r-- | audio/soundtracker/Makefile | 44 |
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> |