diff options
author | Hoang Minh Thang <hoangminhthang@ktqd.org> | 2012-02-19 01:39:05 +0700 |
---|---|---|
committer | Hoang Minh Thang <hoangminhthang@ktqd.org> | 2012-02-19 01:39:05 +0700 |
commit | c5257d70c1a9504a68d96738ecf0f7d30caaed5e (patch) | |
tree | 731c484fb7e05c11ca8e8c44af64320a435679f4 | |
parent | tupi (diff) | |
download | gentoo-vn-c5257d70c1a9504a68d96738ecf0f7d30caaed5e.tar.gz gentoo-vn-c5257d70c1a9504a68d96738ecf0f7d30caaed5e.tar.bz2 gentoo-vn-c5257d70c1a9504a68d96738ecf0f7d30caaed5e.zip |
freeimage-lib ane gnormalize
-rw-r--r-- | media-libs/freeimage/Manifest | 4 | ||||
-rw-r--r-- | media-libs/freeimage/freeimage-3.15.1.ebuild | 75 | ||||
-rw-r--r-- | media-sound/gnormalize/Manifest | 2 | ||||
-rw-r--r-- | media-sound/gnormalize/gnormalize-0.63.ebuild | 70 |
4 files changed, 151 insertions, 0 deletions
diff --git a/media-libs/freeimage/Manifest b/media-libs/freeimage/Manifest new file mode 100644 index 0000000..126bf99 --- /dev/null +++ b/media-libs/freeimage/Manifest @@ -0,0 +1,4 @@ +DIST FreeImage3151.pdf 1004230 RMD160 b8d9715e5a249df7f05287f77052d8b7012a76d2 SHA1 8ad213d33e9b2218d386c9e19d3a299e8c7901ed SHA256 01397a103a64032754490553236470871cf4c225d7b0be67b4eee7e7d97817f3 +DIST FreeImage3151.zip 5068002 RMD160 3551e972617435772340655b3973810793b3a84d SHA1 02ae98007fc64d72a8f15ec3ff24c36ac745fbc8 SHA256 e0f0dd980b16ca2904e01896cd7a1f64a38ddf1896a91c5659de2816fd0bbaed +DIST freeimage-3.15.1-unbundling.patch.gz 16253 RMD160 67a6559f2ef11a4cea5143eee2c40e0fba006f16 SHA1 f1941f99c6e1d6902639b6b84906d2efd0829d13 SHA256 1c7d88e7b12c7bf6293d65c9431adb1849b9c3d87592c3247e41e47e21c7473f +EBUILD freeimage-3.15.1.ebuild 1960 RMD160 0f0d52219d34381b9ab5f343273ba33a82f08141 SHA1 36a812757c6f91d784dce7a743d8944ac273664a SHA256 58a691ab5dc07847bbe5ac08b3dc7b2f3a2ac11101b7a75e7c375a100c5497e7 diff --git a/media-libs/freeimage/freeimage-3.15.1.ebuild b/media-libs/freeimage/freeimage-3.15.1.ebuild new file mode 100644 index 0000000..77cef94 --- /dev/null +++ b/media-libs/freeimage/freeimage-3.15.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/freeimage/freeimage-3.15.1.ebuild,v 1.1 2012/02/12 13:55:19 tupone Exp $ + +EAPI=3 + +inherit toolchain-funcs eutils + +MY_PN=FreeImage +MY_PV=${PV//.} +MY_P=${MY_PN}${MY_PV} + +DESCRIPTION="Image library supporting many formats" +HOMEPAGE="http://freeimage.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip + mirror://sourceforge/${PN}/${MY_P}.pdf + mirror://gentoo/${P}-unbundling.patch.gz" + +LICENSE="|| ( GPL-2 FIPL-1.0 )" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="sys-libs/zlib + media-libs/libpng + media-libs/libmng + virtual/jpeg + media-libs/openjpeg + media-libs/tiff + media-libs/libraw + media-libs/openexr" +DEPEND="${RDEPEND} + app-arch/unzip" + +S="${WORKDIR}"/${MY_PN} + +src_prepare() { + cd Source + cp LibJPEG/{transupp.c,transupp.h,jinclude.h} . \ + || die "Failed copying jpeg utility files" + cp LibTIFF/{tiffiop,tif_dir}.h . \ + || die "Failed copying private libtiff files" + rm -rf LibPNG LibMNG LibOpenJPEG ZLib OpenEXR LibRawLite LibTIFF LibJPEG \ + || die "Removing bundled libraries" + edos2unix *.h *.c */*.cpp + cd .. + edos2unix Makefile.{gnu,fip} + epatch "${WORKDIR}"/${P}-unbundling.patch +} + +src_compile() { + emake -f Makefile.gnu \ + CXX="$(tc-getCXX) -fPIC" \ + CC="$(tc-getCC) -fPIC" \ + ${MY_PN} \ + || die "emake gnu failed" + emake -f Makefile.fip \ + CXX="$(tc-getCXX) -fPIC" \ + CC="$(tc-getCC) -fPIC" \ + ${MY_PN} \ + || die "emake fip failed" +} + +src_install() { + emake -f Makefile.gnu \ + install DESTDIR="${D}" INSTALLDIR="${D}"/usr/$(get_libdir) \ + || die "emake install failed" + emake -f Makefile.fip \ + install DESTDIR="${D}" INSTALLDIR="${D}"/usr/$(get_libdir) \ + || die "emake install failed" + dosym lib${PN}plus-${PV}.so /usr/$(get_libdir)/lib${PN}plus.so.3 + dosym lib${PN}plus.so.3 /usr/$(get_libdir)/lib${PN}plus.so + + dodoc Whatsnew.txt "${DISTDIR}"/${MY_P}.pdf +} diff --git a/media-sound/gnormalize/Manifest b/media-sound/gnormalize/Manifest new file mode 100644 index 0000000..941a4a8 --- /dev/null +++ b/media-sound/gnormalize/Manifest @@ -0,0 +1,2 @@ +DIST gnormalize-0.63.tar.gz 1586211 RMD160 06d2f1ebccfd1fd78ab50b9a9c2c6ffd5cc1cda0 SHA1 6ca2bb1c441c98dfdf5158943123facd8fa887a0 SHA256 80fd9aa2da8d7fcc88bd180be2adce1aed863bedba7d715144029bd95b61ccb6 +EBUILD gnormalize-0.63.ebuild 1708 RMD160 cac3de535a91808bdec04205fd77593984380690 SHA1 4a0892afbae083f068bec662d99fa0aef1f44381 SHA256 ef6a17bb7a1ec28f4a6e55eecc75d19c13fd33b57046795bf3f195947e4c5dcf diff --git a/media-sound/gnormalize/gnormalize-0.63.ebuild b/media-sound/gnormalize/gnormalize-0.63.ebuild new file mode 100644 index 0000000..d5c16f5 --- /dev/null +++ b/media-sound/gnormalize/gnormalize-0.63.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit eutils + +DESCRIPTION="Audio converter/ripper featuring normalization and metadata editing" +HOMEPAGE="http://gnormalize.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="aac cddb flac mp3 musepack normalize vorbis" + +RDEPEND=" + x11-libs/gtk+:2 + >=dev-perl/gtk2-perl-1.040 + aac? ( + media-libs/faac + media-libs/faad2 ) + cddb? ( + dev-perl/CDDB_get + media-sound/cdcd + || ( + media-sound/cdparanoia + virtual/cdrtools ) ) + flac? ( + media-libs/flac + !vorbis? ( media-sound/flac123 ) ) + mp3? ( + media-sound/lame + dev-perl/MP3-Info + || ( + media-sound/madplay + media-sound/mpg321 + media-sound/mpg123 ) ) + musepack? ( media-sound/musepack-tools ) + normalize? ( media-sound/wavegain ) + vorbis? ( media-sound/vorbis-tools )" +DEPEND="${RDEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + unpack ./${PN}.1.lzma +} + +src_install() { + dobin ${PN} || die "dobin failed" + + insinto /usr/share/${PN} + doins -r animations || die "doins failed" + + doicon icons/${PN}.png || die "doicon failed" + make_desktop_entry ${PN} ${PN} /usr/share/pixmaps/${PN}.png "AudioVideo;Audio;AudioVideoEditing" + + doman ${PN}.1 || die "doman failed" + dodoc README || die "dodoc failed" +} + +pkg_postinst() { + einfo "This package supports MAC (Monkey's Audio Codec) but due to licensing" + einfo "issues MAC cannot be included in Portage at this time. If you need MAC" + einfo "functionality, build and install the packages 'mac' and 'xmms-mac' from:" + einfo + einfo " http://sourceforge.net/project/showfiles.php?group_id=123827" +} |