aboutsummaryrefslogtreecommitdiffstats
path: root/audio/soundtracker/Makefile
blob: 7f484515bee7e9ca09e6b8249feadf34215ce2c4 (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
39
40
41
42
# New ports collection makefile for:   soundtracker
# Date created:        28 November 1999
# Whom:                kzentner
#
# $FreeBSD$
#

PORTNAME=   soundtracker
PORTVERSION=    0.6.6
CATEGORIES= audio gnome
MASTER_SITES=   http://www.soundtracker.org/dl/%SUBDIR%/
MASTER_SITE_SUBDIR= v${PORTVERSION:R}

MAINTAINER= ports@FreeBSD.org

USE_X_PREFIX=   yes
USE_GNOMENG=    yes
WANT_GNOME= yes
USE_GNOME=  esound gdkpixbuf
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

.include <bsd.port.pre.mk>

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

post-patch:
    @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
        's| install-exec-local||g'

.include <bsd.port.post.mk>