From f990ee994e929eb4371258c6d2fcd239133972d5 Mon Sep 17 00:00:00 2001 From: miqlas Date: Sat, 22 Oct 2016 17:17:25 +0200 Subject: [PATCH] imlib2 recipe. (#801) --- media-libs/imlib2/imlib2-1.4.9.recipe | 120 ++++++++++++++++++++++++++ media-libs/imlib2/licenses/IMLIB2 | 31 +++++++ 2 files changed, 151 insertions(+) create mode 100644 media-libs/imlib2/imlib2-1.4.9.recipe create mode 100644 media-libs/imlib2/licenses/IMLIB2 diff --git a/media-libs/imlib2/imlib2-1.4.9.recipe b/media-libs/imlib2/imlib2-1.4.9.recipe new file mode 100644 index 000000000..40dc032cb --- /dev/null +++ b/media-libs/imlib2/imlib2-1.4.9.recipe @@ -0,0 +1,120 @@ +SUMMARY="An advanced replacement library for libraries like libXpm" +DESCRIPTION="A library that does image file loading and saving as well as \ +rendering, manipulation, arbitrary polygon support, etc. + +It does ALL of these operations FAST. Imlib2 also tries to be highly \ +intelligent about doing them, so writing naive programs can be done easily, \ +without sacrificing speed. + +This is a complete rewrite over the Imlib 1.x series. The architecture is more \ +modular, simple, and flexible. See index.html in the doc/ directory for more \ +information." +HOMEPAGE="https://www.enlightenment.org/" +COPYRIGHT="2002 Project Enlightenment" +LICENSE="IMLIB2" +SOURCE_URI="http://downloads.sourceforge.net/enlightenment/imlib2-$portVersion.tar.bz2" +CHECKSUM_SHA256="7d2864972801823ce44ca8d5584a67a88f0e54e2bf47fa8cf4a514317b4f0021" +REVISION="1" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + imlib2$secondaryArchSuffix = $portVersion compat >= 1 + lib:libimlib2$secondaryArchSuffix = 1.4.9 compat >= 1 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libbz2$secondaryArchSuffix + lib:libfreetype$secondaryArchSuffix + lib:libgif$secondaryArchSuffix + lib:libid3tag$secondaryArchSuffix + lib:libjpeg$secondaryArchSuffix + lib:libpng$secondaryArchSuffix + lib:libtiff$secondaryArchSuffix >= 5 + lib:libz$secondaryArchSuffix + " + +PROVIDES_devel=" + imlib2${secondaryArchSuffix}_devel = $portVersion compat >= 1 + devel:libimlib2$secondaryArchSuffix = 1.4.9 compat >= 1 + cmd:imlib2_config$secondaryArchSuffix = $portVersion + cmd:imlib2_conv$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + imlib2$secondaryArchSuffix == $portVersion base + haiku${secondaryArchSuffix}_devel + devel:libbz2$secondaryArchSuffix + devel:libfreetype$secondaryArchSuffix + devel:libgif$secondaryArchSuffix + devel:libid3tag$secondaryArchSuffix + devel:libjpeg$secondaryArchSuffix + devel:libpng$secondaryArchSuffix + devel:libtiff$secondaryArchSuffix >= 5 + devel:libz$secondaryArchSuffix + haiku$secondaryArchSuffix + lib:libbz2$secondaryArchSuffix + lib:libfreetype$secondaryArchSuffix + lib:libgif$secondaryArchSuffix + lib:libid3tag$secondaryArchSuffix + lib:libjpeg$secondaryArchSuffix + lib:libpng$secondaryArchSuffix + lib:libtiff$secondaryArchSuffix >= 5 + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libbz2$secondaryArchSuffix + devel:libfreetype$secondaryArchSuffix + devel:libgif$secondaryArchSuffix + devel:libid3tag$secondaryArchSuffix + devel:libjpeg$secondaryArchSuffix + devel:libpng$secondaryArchSuffix + devel:libtiff$secondaryArchSuffix >= 5 + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + cmd:ranlib$secondaryArchSuffix + " + +BUILD() +{ + libtoolize --force --copy --install + aclocal + autoconf + automake --add-missing + runConfigure ./configure --without-x + make $jobArgs +} + +INSTALL() +{ + make install + + # remove libtool files + rm $libDir/*.la + rm $libDir/imlib2/filters/*.la + rm $libDir/imlib2/loaders/*.la + + prepareInstalledDevelLib libImlib2 + fixPkgconfig + + # devel package + packageEntries devel \ + $binDir \ + $developDir +} + +TEST() +{ + make check +} diff --git a/media-libs/imlib2/licenses/IMLIB2 b/media-libs/imlib2/licenses/IMLIB2 new file mode 100644 index 000000000..149cbb42b --- /dev/null +++ b/media-libs/imlib2/licenses/IMLIB2 @@ -0,0 +1,31 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies of the Software and its Copyright notices. In addition publicly +documented acknowledgment must be given that this software has been used if no +source code of this software is made available publicly. Making the source +available publicly means including the source for this software with the +distribution, or a method to get this software via some reasonable mechanism +(electronic transfer via a network or media) as well as making an offer to +supply the source on request. This Copyright notice serves as an offer to +supply the source on on request as well. Instead of this, supplying +acknowledgments of use of this software in either Copyright notices, Manuals, +Publicity and Marketing documents or any documentation provided with any +product containing this software. This License does not apply to any software +that links to the libraries provided by this software (statically or +dynamically), but only to the software provided. + +Please see the COPYING-PLAIN for a plain-english explanation of this notice +and its intent. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file