aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/audacious-plugins/Makefile
blob: 8ea4090e6a9d048508aed77d8dbc0f1b5d4a2936 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# New ports collection makefile for:    audacious
# Date created:         2006-01-01
# Whom:             Zastupov Stepan [RedChrom] <redchrom@mail.ru>
#
# $FreeBSD$
#

PORTNAME=   audacious
PORTVERSION=    1.0.0
CATEGORIES= multimedia audio
MASTER_SITES=   http://audacious-media-player.org/release/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= novel
DISTNAME=   audacious-${PORTVERSION}
EXTRACT_SUFX=.tgz

MAINTAINER= redchrom@gmail.com
COMMENT=    A media player based on BMP and XMMS

LIB_DEPENDS=    sndfile:${PORTSDIR}/audio/libsndfile \
        musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz \
        curl.3:${PORTSDIR}/ftp/curl

USE_GNOME=  gtk20 libglade2
USE_GETTEXT=    yes
USE_X_PREFIX=   yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
INSTALLS_SHLIB= yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib -lstdc++" \
        INPUT_PLUGINS="${INPUT_PLUGINS}" \
        OUTPUT_PLUGINS="${OUTPUT_PLUGINS}" \
        VISUALIZATION_PLUGINS="${VISUALIZATION_PLUGINS}"
CONFIGURE_ARGS= --disable-jack --disable-flc --disable-adplug \
    --disable-lirc --disable-alsa --disable-amidiplug --disable-arts

MAN1=       audacious.1

PORTDOCS=   README AUTHORS ChangeLog NEWS

INPUT_PLUGINS=  cdaudio mpg123 wav tonegen wma console \
        sexypsf aac timidity
OUTPUT_PLUGINS= OSS disk_writer
VISUALIZATION_PLUGINS=  blur_scope

OPTIONS=    VORBIS  "Enable Ogg Vorbis input" on \
        MODPLUG "Enable modplug input" off \
        SID "Enable sid input" off \
        MPC "Enable mpc input" off \
        ESOUND  "Enable Esound output"  off \
        ID3V2   "Enable id3v2 editing" off \
        SIMD    "Build with x86 SIMD(3DNow!/MMX) instructions support" on \
        SDL "Enable SDL support" off \
        GNOME   "Build with gnomevfs/gconf support" off

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN="Does not build"
.endif

.if !defined(WITHOUT_VORBIS)
LIB_DEPENDS+=   vorbis.3:${PORTSDIR}/audio/libvorbis
INPUT_PLUGINS+= vorbis
PLIST_SUB+= VORBISPLUGIN=""
.else
CONFIGURE_ARGS+=    --disable-vorbis
PLIST_SUB+= VORBISPLUGIN="@comment "
.endif

.if !defined(WITHOUT_MODPLUG)
INPUT_PLUGINS+= modplug
PLIST_SUB+= MODPLUG=""
LIB_DEPENDS+=   modplug.0:${PORTSDIR}/audio/libmodplug
.else
PLIST_SUB+= MODPLUG="@comment "
CONFIGURE_ARGS+=    --disable-modplug
.endif

.if !defined(WITHOUT_SID)
INPUT_PLUGINS+= sid
PLIST_SUB+= SIDPLUGIN=""
LIB_DEPENDS+=   sidplay.1:${PORTSDIR}/audio/libsidplay
.else
PLIST_SUB+= SIDPLUGIN="@comment "
CONFIGURE_ARGS+=    --disable-sid
.endif

.if !defined(WITHOUT_MPC)
INPUT_PLUGINS+= musepack
PLIST_SUB+= MPCPLUGIN=""
LIB_DEPENDS+=   mpcdec.4:${PORTSDIR}/audio/libmpcdec \
    tag.5:${PORTSDIR}/audio/taglib
.else
PLIST_SUB+= MPCPLUGIN="@comment "
CONFIGURE_ARGS+=    --disable-musepack
.endif

.if defined(WITH_ESOUND)
USE_GNOME+= esound
OUTPUT_PLUGINS+=    esd
PLIST_SUB+= ESDPLUGIN=""
.if defined(PKGNAMESUFFIX)
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-esound
.else
PKGNAMESUFFIX=  -esound
.endif
.else
CONFIGURE_ARGS+=    --disable-esd
PLIST_SUB+= ESDPLUGIN="@comment "
.endif

.if defined(WITH_ID3V2)
LIB_DEPENDS+=   id3-3.8.3:${PORTSDIR}/audio/id3lib
.endif

.if ${ARCH} != "i386"
WITHOUT_SIMD=   yes
.endif

.if !defined(WITHOUT_SIMD) && ${OSVERSION} >= 400021
CONFIGURE_ARGS+=    --enable-simd
.endif

.if defined(WITH_SDL)
USE_SDL=    sdl
.endif

.if defined(WITH_GNOME)
USE_GNOME+= gconf2 gnomevfs2
CONFIGURE_ARGS+=    --enable-gnome-vfs --enable-gconf
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|(LIBDIR)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
        ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's,-pthread,${PTHREAD_LIBS},g' \
        ${WRKSRC}/configure

post-install:
    @${CAT} ${PKGMESSAGE}
.if defined(WITH_GNOME)
    @${ECHO_MSG} ""
    @${ECHO_MSG} "You have installed audacious with gconf support."
    @${ECHO_MSG} "ALL PRESETS will be storing in the gconf database."
    @${ECHO_MSG} ""
.endif
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in README AUTHORS ChangeLog NEWS
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>