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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (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.12: +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-r6.ebuild,v 1.12 2005/01/06 09:38:25 eradicator Exp $
4
5 IUSE="mmx 3dnow esd nas oss"
6
7 inherit eutils
8
9 PATCH_VER=1.1
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="alpha amd64 hppa ia64 mips ppc ppc64 sparc x86"
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 sed -i "s:${PV}-mh4:${PVR}:" version.h
43 }
44
45 src_compile() {
46 mkdir gentoo-bin
47
48 # The last one in $styles is the default
49 local styles
50
51 use nas && styles="${styles} -nas"
52 use oss && styles="${styles} -generic"
53
54 case $ARCH in
55 ppc64)
56 use esd && styles="${styles} -ppc64-esd"
57 use oss && styles="${styles} -ppc64"
58
59 [ -z "${styles}" ] && styles="-ppc64"
60 ;;
61 ppc)
62 use esd && styles="${styles} -ppc-esd"
63 use oss && styles="${styles} -ppc"
64
65 [ -z "${styles}" ] && styles="-ppc"
66 ;;
67 x86)
68 use esd && styles="${styles} -esd"
69 use esd && use 3dnow && styles="${styles} -3dnow-esd"
70 use oss && styles="${styles} -i486"
71 use oss && use mmx && styles="${styles} -mmx"
72 use oss && use 3dnow && styles="${styles} -3dnow"
73 # use alsa && styles="${styles} -alsa"
74 # use alsa && use 3dnow && styles="${styles} -3dnow-alsa"
75
76 [ -z "${styles}" ] && styles="-generic"
77 ;;
78 sparc*)
79 use esd && styles="${styles} -sparc-esd"
80 styles="${styles} -sparc"
81 ;;
82 amd64)
83 use esd && styles="${styles} -x86_64-esd"
84 use oss && styles="${styles} -x86_64"
85 # use alsa && styles="${styles} -x86_64-alsa"
86
87 [ -z "${styles}" ] && styles="-x86_64"
88 ;;
89 alpha)
90 use esd && styles="${styles} -alpha-esd"
91 use oss && styles="${styles} -alpha"
92 # use alsa && styles="${styles} -alpha-alsa"
93
94 [ -z "${styles}" ] && styles="-generic"
95 ;;
96 mips|hppa|ia64)
97 # use alsa && styles="${styles} -mips-alsa"
98
99 [ -z "${styles}" ] && styles="-generic"
100 ;;
101 *)
102 eerror "No support has been added for your architecture."
103 exit 1
104 ;;
105 esac
106
107 for style in ${styles};
108 do
109 make clean linux${style} CFLAGS="${CFLAGS}" || die
110 mv mpg123 gentoo-bin/mpg123${style}
111 [ -L "gentoo-bin/mpg123" ] && rm gentoo-bin/mpg123
112 ln -s mpg123${style} gentoo-bin/mpg123
113 done
114 }
115
116 src_install() {
117 dodir /usr
118 cp -dR gentoo-bin ${D}/usr/bin
119 doman mpg123.1
120 dodoc BENCHMARKING BUGS CHANGES COPYING JUKEBOX README* TODO
121 }

  ViewVC Help
Powered by ViewVC 1.1.20