Contents of /trunk/deprecated/xmms/xmms-1.2.10-r11.smage2
Parent Directory | Revision Log
Revision 2772 -
(show annotations)
(download)
Fri Jul 10 08:28:42 2009 UTC (15 years, 3 months ago) by niro
File size: 4166 byte(s)
Fri Jul 10 08:28:42 2009 UTC (15 years, 3 months ago) by niro
File size: 4166 byte(s)
-moved to 'deprecated'
1 | # $Header: /magellan-cvs/smage/xmms/xmms-1.2.10-r11.smage2,v 1.1 2008/02/13 20:21:38 niro Exp $ |
2 | |
3 | PNAME="xmms" |
4 | PVER="1.2.10" |
5 | PBUILD="r11" |
6 | |
7 | PCATEGORIE="media-sound" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="X Multi Media System." |
11 | HOMEPAGE="http://www.xmms.org/" |
12 | |
13 | DEPEND=">= virtual/x11 |
14 | >= dev-libs/glib1-1.2.10 |
15 | >= x11-libs/gtk1+-1.2.10 |
16 | >= media-libs/libmikmod-3.1.10 |
17 | >= dev-libs/libxml2-2.6.6 |
18 | >= media-libs/alsa-lib-0.9.0 |
19 | >= media-libs/libvorbis-1.0 |
20 | >= sys-dev/gettext-0.12.1 |
21 | >= app-arch/unzip-5.50" |
22 | |
23 | SDEPEND=">= media-sound/esound-0.2.35 |
24 | >= dev-util/pkgconfig-0.14 |
25 | >= dev-util/intltool-0.29 |
26 | >= sys-dev/automake-1.8 |
27 | >= sys-dev/autoconf-2.57" |
28 | |
29 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
30 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
31 | |
32 | M4FIXES="${PNAME}-${PVER}-gentoo-m4-1.1.tar.bz2" |
33 | |
34 | sminclude mtools multilib |
35 | |
36 | SRC_URI=( |
37 | mirror://${PNAME}/${SRCFILE} |
38 | mirror://${PNAME}/${M4FIXES} |
39 | mirror://${PNAME}/${PNAME}-${PVER}-id3v2edit.patch |
40 | mirror://${PNAME}/${PNAME}-${PVER}-jump.patch |
41 | mirror://${PNAME}/${PNAME}-${PVER}-sigterm.patch |
42 | mirror://${PNAME}/${PNAME}-${PVER}-fhs-skinsdir.patch |
43 | mirror://${PNAME}/${PNAME}-${PVER}-diskwriter-audio.patch |
44 | mirror://${PNAME}/${PNAME}-${PVER}-sid-songpos.patch |
45 | mirror://${PNAME}/${PNAME}-${PVER}-alsa-as-default.patch |
46 | mirror://${PNAME}/${PNAME}-${PVER}-gcc4.patch |
47 | mirror://${PNAME}/${PNAME}-${PVER}-m4-underquoted-2.patch |
48 | ) |
49 | |
50 | src_prepare() |
51 | { |
52 | munpack ${SRCFILE} || die |
53 | oldmunpack ${M4FIXES} || die |
54 | |
55 | # fix ansi C fubar so that it compiles with less-forgiving gcc2 |
56 | mpatch ${PNAME}-${PVER}-id3v2edit.patch || die |
57 | |
58 | # patch to allow external programmes to have the "jump to" dialog box |
59 | mpatch ${PNAME}-${PVER}-jump.patch || die |
60 | |
61 | # save playlist, etc on SIGTERM and SIGINT, bug #13604. |
62 | mpatch ${PNAME}-${PVER}-sigterm.patch || die |
63 | |
64 | # add /usr/local/share/xmms/Skins to the search path for skins |
65 | mpatch ${PNAME}-${PVER}-fhs-skinsdir.patch || die |
66 | |
67 | # this patch passes audio output through the output plugin |
68 | # before recording via the diskwriter plugin |
69 | # http://forum.xmms.org/viewtopic.php?t=500&sid=c286e1c01fb924a2f81f519969f33764 |
70 | mpatch ${PNAME}-${PVER}-diskwriter-audio.patch || die |
71 | |
72 | # this patch changes the search-bar's behaviour when playing |
73 | # sid tunes using xmms-sid plugin. it enables you to select the |
74 | # different tunes that are sometimes included in a single .sid file |
75 | mpatch ${PNAME}-${PVER}-sid-songpos.patch || die |
76 | |
77 | # this patch changes the default audio plugin. it enables alsa as default |
78 | mpatch ${PNAME}-${PVER}-alsa-as-default.patch || die |
79 | |
80 | # fixes gcc4 issues with the ir plugin |
81 | mpatch ${PNAME}-${PVER}-gcc4.patch || die |
82 | |
83 | # fixes m4 warnings |
84 | mpatch ${PNAME}-${PVER}-m4-underquoted-2.patch || die |
85 | |
86 | local abi |
87 | for abi in ${MULTILIB_ABIS} |
88 | do |
89 | if [ ! -f ${SRCDIR}-${abi}/config.rpath ] |
90 | then |
91 | touch ${SRCDIR}-${abi}/config.rpath || die |
92 | chmod +x ${SRCDIR}-${abi}/config.rpath || die |
93 | fi |
94 | |
95 | # update makefiles |
96 | export WANT_AUTOCONF=2.5 |
97 | export WANT_AUTOMAKE=1.7 |
98 | |
99 | for x in . libxmms |
100 | do |
101 | cd ${SRCDIR}-${abi}/${x} |
102 | rm -f acinclude.m4 || die |
103 | libtoolize --force --copy || die |
104 | [ ! -f ltmain.sh ] && ln -s ../ltmain.sh |
105 | aclocal -I ${BUILDDIR}/m4 || die |
106 | autoheader || die |
107 | automake --gnu --add-missing --include-deps \ |
108 | --force-missing --copy || die |
109 | autoconf || die |
110 | done |
111 | done |
112 | } |
113 | |
114 | src_compile() |
115 | { |
116 | mconfigure \ |
117 | --with-dev-dsp=/dev/sound/dsp \ |
118 | --with-dev-mixer=/dev/sound/mixer \ |
119 | --enable-vorbis \ |
120 | --enable-oggtest \ |
121 | --enable-vorbistest \ |
122 | --enable-esd \ |
123 | --enable-esdtest \ |
124 | --enable-mikmod \ |
125 | --enable-mikmodtest \ |
126 | --with-libmikmod \ |
127 | --enable-opengl \ |
128 | --enable-nls \ |
129 | --enable-simd \ |
130 | || die |
131 | |
132 | mmake || die |
133 | } |
134 | |
135 | src_install() |
136 | { |
137 | # needed directories |
138 | minstalldir /usr/share/xmms/Skins || die |
139 | minstalldir /usr/share/pixmaps/mini || die |
140 | minstalldir /etc/X11/wmconfig || die |
141 | |
142 | mmake DESTDIR=${BINDIR} install || die |
143 | |
144 | # install icons |
145 | minstallpixmap xmms/xmms_logo.xpm xmms.xpm || die |
146 | minstallpixmap xmms/xmms_logo.xpm || die |
147 | minstallfile xmms/xmms_mini.xpm /usr/share/pixmaps/mini || die |
148 | |
149 | # wmmaker config |
150 | minstallfile xmms/xmms.wmconfig /etc/X11/wmconfig/xmms || die |
151 | |
152 | # docs |
153 | minstalldocs ABOUT-NLS AUTHORS COPYING NEWS ChangeLog README FAQ TODO || die |
154 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |