blob: ee501d08702f0bf37cb731e2147951359d8f3324 (
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
157
158
159
160
161
162
163
164
165
166
167
168
169
|
# Created by: Espen Skoglund <esk@ira.uka.de>
# $FreeBSD$
PORTNAME= xmms
PORTVERSION= 1.2.11
PORTREVISION= 18
CATEGORIES+= multimedia audio ipv6
MASTER_SITES= http://www.xmms.org/files/1.2.x/ \
http://legacy.xmms2.org/ \
LOCAL/beech
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER?= c.petrik.sosa@gmail.com
COMMENT?= X Multimedia System -- An audio player with Winamp GUI
USE_BZIP2= yes
USE_GL= gl
USE_GNOME= desktopfileutils gtk12
USE_GMAKE= yes
USES= pathfix gettext iconv
USE_LDCONFIG= yes
USE_AUTOTOOLS= automake autoconf libtool
AUTOTOOLSFILES= aclocal.m4
AUTOMAKE_ARGS= --add-missing
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" \
INPUT_PLUGINS="${INPUT_PLUGINS}" \
OUTPUT_PLUGINS="${OUTPUT_PLUGINS}" \
VISUALIZATION_PLUGINS="${VISUALIZATION_PLUGINS}"
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS= --enable-static=no
MAN1= wmxmms.1 xmms.1
SUB_FILES= pkg-message xmms.desktop
CONFLICTS= ru-xmms-[0-9]*
INPUT_PLUGINS= cdaudio mpg123 tonegen wav
OUTPUT_PLUGINS= OSS disk_writer
VISUALIZATION_PLUGINS= blur_scope sanalyzer
OPTIONS_DEFINE= IPV6 MIKMOD SIMD SPEC VFILEINFO VORBIS RUSXMMS_PATCHES
OPTIONS_DEFAULT= IPV6 MIKMOD SIMD VORBIS
OPTIONS_EXCLUDE_amd64= SIMD
SPEC_DESC= Visualization opengl_spectrum
VFILEINFO_DESC= Enable Extended Vorbis Fileinfo
RUSXMMS_PATCHES_DESC= Custom IDv3 patches
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if ${PORT_OPTIONS:MRUSXMMS_PATCHES}
ENC_PATCHLEVEL= 41
DISTFILES+= RusXMMS2-csa${ENC_PATCHLEVEL}${EXTRACT_SUFX}:enc
MASTER_SITES+= SF/rusxmms/rusxmms2/csa41%20%28${PORTVERSION}%29:enc
MASTER_SITE_SUBDIR+= rusxmms/:enc
LIB_DEPENDS+= rcc:${PORTSDIR}/devel/librcc
LIB_DEPENDS+= rcd:${PORTSDIR}/devel/librcd
.endif
.if ${PORT_OPTIONS:MVFILEINFO}
CFLAGS+= -DALL_VORBIS_TAGS
.endif
.if ${PORT_OPTIONS:MMIKMOD}
LIB_DEPENDS+= mikmod:${PORTSDIR}/audio/libmikmod
INPUT_PLUGINS+= mikmod
PLIST_SUB+= MIKMODPLUGIN:=""
.else
CONFIGURE_ARGS+= --disable-mikmod
PLIST_SUB+= MIKMODPLUGIN:="@comment "
.endif
.if ${PORT_OPTIONS:MVORBIS}
LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis
INPUT_PLUGINS+= vorbis
PLIST_SUB+= VORBISPLUGIN:=""
.else
CONFIGURE_ARGS+= --disable-vorbis
PLIST_SUB+= VORBISPLUGIN:="@comment "
.endif
.if ${HAVE_GNOME:Mesound}!=""
USE_GNOME+= esound
OUTPUT_PLUGINS+= esd
PLIST_SUB+= ESDPLUGIN:=""
.else
CONFIGURE_ARGS+= --disable-esd
PLIST_SUB+= ESDPLUGIN:="@comment "
.endif
.if ${PORT_OPTIONS:MSIMD}
CONFIGURE_ARGS+= --enable-simd
.else
.if ${ARCH} == "i386"
BROKEN= must use option SIMD on ${ARCH} see pr ports/63456
.endif
.endif
.if ${PORT_OPTIONS:MSPEC}
PLIST_SUB+= SPEC=""
VISUALIZATION_PLUGINS+= opengl_spectrum
.else
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Visualization_Makefile.am
PLIST_SUB+= SPEC="@comment "
.endif
post-extract:
.if ! ${PORT_OPTIONS:MSIMD}
(cd ${WRKSRC}/Input/mpg123 && ${MV} decode_i586.s decode_i586.S && \
cd ${WRKSRC}/Visualization/blur_scope && ${MV} blur_8.s blur_8.S);
${REINPLACE_CMD} -e 's:\.s :.S :g' -e 's:\.s$$:.S:g' \
-e 's:^\.s\.:.S.:g' ${WRKSRC}/Input/mpg123/Makefile.in
${REINPLACE_CMD} -e 's:\.s :.S :g' -e 's:\.s$$:.S:g' \
-e 's:^\.s\.:.S.:g' ${WRKSRC}/Visualization/blur_scope/Makefile.in
.endif
pre-extract:
.if ${HAVE_GNOME:Mesound}!=""
@${ECHO_MSG} ""
@${ECHO_MSG} "You can disable support for esound by defining"
@${ECHO_MSG} "WITHOUT_GNOME=esound."
@${ECHO_MSG} ""
.endif
.if ! ${PORT_OPTIONS:MRUSXMMS_PATCHES}
@${ECHO_MSG} ""
@${ECHO_MSG} "You can enable support for ID3v2 tags and CP1251"
@${ECHO_MSG} "encoding by setting the RUSXMMS_PATCHES option."
@${ECHO_MSG} ""
.endif
post-patch:
.if ${PORT_OPTIONS:MRUSXMMS_PATCHES}
. for src in source/rcc.c source/rcc.h source/rcc_langs.h
@${INSTALL_DATA} ${WRKDIR}/RusXMMS2/${src} ${WRKSRC}/libxmms
. endfor
@${CAT} ${WRKDIR}/RusXMMS2/3rdparty/mpg123/*.patch | ${PATCH} -s -p1 -d ${WRKSRC}
. for diff in xmms-ds-rusxmms.patch xmms-ds-rusxmms-charset.patch \
xmms-ds-playlist.patch xmms-ds-shade.patch xmms-ds-textbox.patch
@${PATCH} -s -p1 -d ${WRKSRC} < ${WRKDIR}/RusXMMS2/patches/${diff}
. endfor
. for diff in xmms-ds-mpg123.patch xmms-ds-mpg123-editor.patch \
xmms-ds-mpg123-editor-keys.patch xmms-ds-vorbis-editor.patch \
xmms-ds-vorbis-editor-keys.patch
@${PATCH} -s -p1 -d ${WRKSRC} < ${WRKDIR}/RusXMMS2/patches/plugins/${diff}
. endfor
.endif
# If there is no esound installed, the autotools won't find a required macro
.if ${HAVE_GNOME:Mesound}==""
${REINPLACE_CMD} -e '/AM_PATH_ESD/,/have_esd=no/d' ${WRKSRC}/configure.in
.endif
post-configure:
@${FIND} ${WRKSRC} -name Makefile | \
${XARGS} ${REINPLACE_CMD} -e 's|MKDIR_P|mkdir_p|g'
post-install:
@${INSTALL} -d ${PREFIX}/share/xmms/Skins
@${INSTALL} -d ${PREFIX}/share/applications
@${INSTALL_DATA} ${WRKDIR}/xmms.desktop ${PREFIX}/share/applications/
-update-desktop-database
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|