aboutsummaryrefslogtreecommitdiffstats
path: root/audio/soundtracker/Makefile
blob: 58eac98eff150b5856d56fca1ca7d50dbe9bf702 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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_GNOMENG=    yes
WANT_GNOME= yes
USE_GNOME=  gtk12
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib"

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mgnomelibs}!=""
USE_GNOME=  gnomelibs esound gnomeprefix gnomehack
CONFIGURE_ARGS+=--enable-gnome
PKGNAMESUFFIX=  -gnome
.else
CONFIGURE_ARGS+=--disable-gnome
.endif

post-patch:
    @${REINPLACE_CMD} -e 's^-l(pthread|c_r)^${PTHREAD_LIBS}^g ; \
         s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure

.include <bsd.port.post.mk>