diff options
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/soil/Manifest | 2 | ||||
-rw-r--r-- | media-libs/soil/soil-20080707.ebuild | 49 |
2 files changed, 51 insertions, 0 deletions
diff --git a/media-libs/soil/Manifest b/media-libs/soil/Manifest new file mode 100644 index 0000000..99791d9 --- /dev/null +++ b/media-libs/soil/Manifest @@ -0,0 +1,2 @@ +DIST soil.zip 474967 SHA256 a2305b8d64f6d636e36d669bbdb0ca5445d1345c754b3d61d3f037dad2e5f701 SHA512 a575a84aa65b7556320779d635561341f5cf156418d0462473e5d1eb082829be3bcb30600b4887af75aeddd3715de16bdb3ca1668ebaa93eea62bacf22b79548 WHIRLPOOL 9d872dfc13e20649838ef341c4e2fa1ecca3fbf689c1e044109ef5f1b5162f85243e8d3e460f9efddc0ed5449a4143b9d13b3b6da8ac95ff842bdf15bd5eae51 +EBUILD soil-20080707.ebuild 1175 SHA256 aeb21d77170b6477782ff543da156ed0905b716f37b59117c87268ac64423f9d SHA512 41191526c4e35cc1a15a76d69c85d78ceef7d35b1c42c4af846afb7015f9cda2775ceb6daad6452cbde4a4f63533a3d4331feeaf038d5506b45a119beb9a9ae1 WHIRLPOOL e458103ada2886858967adc03372d8cb3f9c12119214fc92d7adab4d1e9347a654776127e745c93169328a8ff0e52ac4fd5d4ef8323a502064ed8be049593f51 diff --git a/media-libs/soil/soil-20080707.ebuild b/media-libs/soil/soil-20080707.ebuild new file mode 100644 index 0000000..40cf122 --- /dev/null +++ b/media-libs/soil/soil-20080707.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +DESCRIPTION="SOIL is a tiny C library used primarily for uploading textures into OpenGL." +HOMEPAGE="http://www.lonesock.net/soil.html" +SRC_URI="http://www.lonesock.net/files/soil.zip" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="x86 amd64" +IUSE="" + +DEPEND="app-arch/unzip sys-apps/sed virtual/opengl" +RDEPEND="virtual/opengl" + +src_unpack() { + mkdir ${WORKDIR}/${PN} + unzip ${DISTDIR}/${A} -d ${WORKDIR}/${PN} || die "Unpack failed" +} + +src_compile() { + cd ${WORKDIR}/${PN}/Simple\ OpenGL\ Image\ Library/projects/makefile + sed -e 's/\/usr\/local/${D}usr/' makefile > temp + mv temp makefile + mkdir obj + emake || die "make failed" +} + +src_install() { + cd ${WORKDIR}/${PN}/Simple\ OpenGL\ Image\ Library/projects/makefile + mkdir ${D}usr + mkdir ${D}usr/lib + mkdir ${D}usr/include + emake install || die "einstall failed" +} + +pkg_postinst() { + mkdir /usr/include/SOIL + ln -s /usr/include/SOIL.h /usr/include/SOIL/SOIL.h + einfo "/usr/include/SOIL.h header file was linked to" + einfo "/usr/include/SOIL/SOIL.h." +} + +pkg_postrm() { + rm -rf /usr/include/SOIL +} |