diff options
author | Armando Di Cianno <fafhrd@gentoo.org> | 2004-09-22 22:17:04 +0000 |
---|---|---|
committer | Armando Di Cianno <fafhrd@gentoo.org> | 2004-09-22 22:17:04 +0000 |
commit | 84ffc4e257dbfd3557199bb560e24236ea6573fa (patch) | |
tree | cc8cf5338df263aeb6b9f36919502f6275a78d31 /app-pda/iripdb | |
parent | ppc stable profile update (Manifest recommit) (diff) | |
download | gentoo-2-84ffc4e257dbfd3557199bb560e24236ea6573fa.tar.gz gentoo-2-84ffc4e257dbfd3557199bb560e24236ea6573fa.tar.bz2 gentoo-2-84ffc4e257dbfd3557199bb560e24236ea6573fa.zip |
Respecting CC and CFLAGS now.
Diffstat (limited to 'app-pda/iripdb')
-rw-r--r-- | app-pda/iripdb/ChangeLog | 5 | ||||
-rw-r--r-- | app-pda/iripdb/iripdb-0.1.1.ebuild | 30 |
2 files changed, 29 insertions, 6 deletions
diff --git a/app-pda/iripdb/ChangeLog b/app-pda/iripdb/ChangeLog index d9a9db812fae..9e051b15ea4d 100644 --- a/app-pda/iripdb/ChangeLog +++ b/app-pda/iripdb/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-pda/iripdb # Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-pda/iripdb/ChangeLog,v 1.1 2004/09/22 18:08:50 fafhrd Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-pda/iripdb/ChangeLog,v 1.2 2004/09/22 22:17:04 fafhrd Exp $ + + 22 Sep 2004; Armando Di Cianno <fafhrd@gentoo.org> iripdb-0.1.1.ebuild: + Using CC instead of gcc; respecting CFLAGS. *iripdb-0.1.1 (22 Sep 2004) diff --git a/app-pda/iripdb/iripdb-0.1.1.ebuild b/app-pda/iripdb/iripdb-0.1.1.ebuild index d52bde068ecc..f171e0eb8910 100644 --- a/app-pda/iripdb/iripdb-0.1.1.ebuild +++ b/app-pda/iripdb/iripdb-0.1.1.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-pda/iripdb/iripdb-0.1.1.ebuild,v 1.1 2004/09/22 18:08:50 fafhrd Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-pda/iripdb/iripdb-0.1.1.ebuild,v 1.2 2004/09/22 22:17:04 fafhrd Exp $ S=${WORKDIR}/iRipDB-${PV} -inherit eutils +inherit eutils flag-o-matic DESCRIPTION="iRipDB allows generating the DB files necessary for the iRiver iHP-1xx series of MP3/Ogg HD Player on Linux and Windows." HOMEPAGE="http://www.marevalo.net/iRipDB" @@ -20,10 +20,30 @@ DEPEND="virtual/libc =media-libs/libvorbis-1.0.1* =sys-libs/zlib-1.2.1*" +pkg_setup() { + if test_version_info 3.3 + then + einfo "Using gcc 3.3*" + # gcc 3.3 doesn't support certain 3.4.1 options, + # as well as having less specific -march options + replace-flags -march=pentium-m -march=pentium3 + filter-flags -march=k8 + filter-flags -march=athlon64 + filter-flags -march=opteron + strip-unsupported-flags + elif test_version_info 3.4 + then + einfo "Using gcc 3.4*" + fi +} + src_compile() { - gcc -c -o main.o main.c - gcc -c -o vcedit.o vcedit.c - gcc -o iripdb main.o vcedit.o -L/usr/lib -lz -lm -lid3 -lvorbis -logg -lstdc++ + echo "${CC} ${CFLAGS} -c -o main.o main.c" + ${CC} ${CFLAGS} -c -o main.o main.c + echo "${CC} ${CFLAGS} -c -o vcedit.o vcedit.c" + ${CC} ${CFLAGS} -c -o vcedit.o vcedit.c + echo "${CC} ${CFLAGS} -o iripdb main.o vcedit.o -lz -lm -lid3 -lvorbis -logg -lstdc++" + ${CC} ${CFLAGS} -o iripdb main.o vcedit.o -lz -lm -lid3 -lvorbis -logg -lstdc++ } src_install() { |