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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Oct 30 23:31:17 2004 UTC (14 years, 11 months ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Removing insecure versions.

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

  ViewVC Help
Powered by ViewVC 1.1.20