4ca0e60800
-D_THREAD_SAFE --> ${PTHREAD_CFLAGS} Note: my first intention was to test this out on bento/beta, but per ade's requiest I opted to do it quickly.
40 lines
941 B
Makefile
40 lines
941 B
Makefile
# New ports collection makefile for: soundtracker
|
|
# Date created: 28 November 1999
|
|
# Whom: kzentner
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= soundtracker
|
|
PORTVERSION= 0.6.2
|
|
CATEGORIES= audio gnome
|
|
MASTER_SITES= ftp://ftp.soundtracker.org/pub/soundtracker/v0.6/
|
|
|
|
MAINTAINER= kzentner@u.washington.edu
|
|
|
|
USE_X_PREFIX= yes
|
|
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
|
|
.endif
|
|
|
|
pre-patch:
|
|
@${PERL} -pi -e 's^-l(pthread|c_r)^${PTHREAD_LIBS}^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.post.mk>
|