/[gentoo-x86]/media-sound/mpg123/mpg123-0.59s-r7.ebuild
Gentoo

Contents of /media-sound/mpg123/mpg123-0.59s-r7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Jan 7 07:58:00 2005 UTC (14 years, 9 months ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Removing some older insecure versions.

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-0.59s-r7.ebuild,v 1.4 2005/01/06 09:38:25 eradicator Exp $
4
5 inherit eutils
6
7 PATCH_VER=1.2
8 S="${WORKDIR}/${PN}"
9
10 DESCRIPTION="Real Time mp3 player"
11 HOMEPAGE="http://www.mpg123.de/"
12 SRC_URI="http://www.mpg123.de/mpg123/${PN}-pre${PV}.tar.gz
13 http://dev.gentoo.org/~eradicator/${PN}/${P}-gentoo-${PATCH_VER}.tar.bz2"
14
15 LICENSE="as-is"
16 SLOT="0"
17 KEYWORDS="~alpha amd64 hppa ia64 ~mips ~ppc ppc64 ~sparc ~x86"
18 IUSE="mmx 3dnow esd nas oss"
19
20 RDEPEND="virtual/libc
21 esd? ( media-sound/esound )
22 nas? ( media-libs/nas )"
23
24 # alsa-1 b0rks and it's not a simple fix
25 # alsa? ( media-libs/alsa-lib )"
26
27 DEPEND="${RDEPEND}
28 >=sys-apps/sed-4"
29
30 PROVIDE="virtual/mpg123"
31
32 PATCHDIR="${WORKDIR}/patches"
33
34 src_unpack() {
35 unpack ${A}
36
37 cd ${S}
38 EPATCH_SUFFIX="patch"
39 epatch ${PATCHDIR}
40
41 sed -i "s:${PV}-mh4:${PVR}:" version.h
42 }
43
44 src_compile() {
45 mkdir gentoo-bin
46
47 # The last one in $styles is the default
48 local styles
49
50 use nas && styles="${styles} -nas"
51 use oss && styles="${styles} -generic"
52
53 case $ARCH in
54 ppc64)
55 use esd && styles="${styles} -ppc64-esd"
56 use oss && styles="${styles} -ppc64"
57
58 [ -z "${styles}" ] && styles="-ppc64"
59 ;;
60 ppc)
61 use esd && styles="${styles} -ppc-esd"
62 use oss && styles="${styles} -ppc"
63
64 [ -z "${styles}" ] && styles="-ppc"
65 ;;
66 x86)
67 use esd && styles="${styles} -esd"
68 use esd && use 3dnow && styles="${styles} -3dnow-esd"
69 use oss && styles="${styles} -i486"
70 use oss && use mmx && styles="${styles} -mmx"
71 use oss && use 3dnow && styles="${styles} -3dnow"
72 # use alsa && styles="${styles} -alsa"
73 # use alsa && use 3dnow && styles="${styles} -3dnow-alsa"
74
75 [ -z "${styles}" ] && styles="-generic"
76 ;;
77 sparc*)
78 use esd && styles="${styles} -sparc-esd"
79 styles="${styles} -sparc -generic"
80 ;;
81 amd64)
82 use esd && styles="${styles} -x86_64-esd"
83 use oss && styles="${styles} -x86_64"
84 # use alsa && styles="${styles} -x86_64-alsa"
85
86 [ -z "${styles}" ] && styles="-x86_64"
87 ;;
88 alpha)
89 use esd && styles="${styles} -alpha-esd"
90 use oss && styles="${styles} -alpha"
91 # use alsa && styles="${styles} -alpha-alsa"
92
93 [ -z "${styles}" ] && styles="-generic"
94 ;;
95 mips|hppa|ia64)
96 # use alsa && styles="${styles} -mips-alsa"
97
98 [ -z "${styles}" ] && styles="-generic"
99 ;;
100 *)
101 eerror "No support has been added for your architecture."
102 exit 1
103 ;;
104 esac
105
106 for style in ${styles};
107 do
108 make clean linux${style} CFLAGS="${CFLAGS}" || die
109 mv mpg123 gentoo-bin/mpg123${style}
110 [ -L "gentoo-bin/mpg123" ] && rm gentoo-bin/mpg123
111 ln -s mpg123${style} gentoo-bin/mpg123
112 done
113 }
114
115 src_install() {
116 dodir /usr
117 cp -dR gentoo-bin ${D}/usr/bin
118 doman mpg123.1
119 dodoc BENCHMARKING BUGS CHANGES COPYING JUKEBOX README* TODO
120 }

  ViewVC Help
Powered by ViewVC 1.1.20