diff --git a/media-libs/liblqr/liblqr-0.4.2.recipe b/media-libs/liblqr/liblqr-0.4.2.recipe new file mode 100644 index 000000000..8718aad70 --- /dev/null +++ b/media-libs/liblqr/liblqr-0.4.2.recipe @@ -0,0 +1,86 @@ +SUMMARY="An easy to use C/C++ seam carving library" +DESCRIPTION="The library takes images in plain array format as input and converts them \ +to a multi-size representation. + +Following is a list of features: + +* Easy to use and fully documented API +* Supports color depths from 8 bits per channel to 64 bits per channel +* Support for different color models: grayscale, RGB, CMY and their variants, and even custom ones +* Areas in the image can be marked for preservation or discard, or for additional seam rigidity +* Once the image has been fully processed, the scaling can be done in real-time. In fact, the \ +information can be saved and read out later without any further processing +* The resizing is done with a single function which automatically performs all the necessary \ +operations; it can also work in successive steps without wasting computational time +* Possibility to tune the carving operation by letting the seams be less connected, or more rigid, \ +or both (the rigidity can be modulated on a local basis) +* Can export and import the visibility map (the seams) +* Other images can be attached and undergo the same carving process as the parent image +* The automatic feature detection algorithm can be tuned by selecting among different \ +energy functions, and easily defining cusom ones +* Reports progress through a customizable interface +* A signalling system permits to handle errors cleanly +* Portable to all major OS's" +HOMEPAGE="http://liblqr.wikidot.com/" +COPYRIGHT="Carlo Baldassi" +LICENSE="GNU LGPL v3" +REVISION="1" +SOURCE_URI="http://liblqr.wikidot.com/local--files/en:download-page/liblqr-1-$portVersion.tar.bz2" +CHECKSUM_SHA256="173a822efd207d72cda7d7f4e951c5000f31b10209366ff7f0f5972f7f9ff137" +SOURCE_DIR="liblqr-1-$portVersion" + +ARCHITECTURES="x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + liblqr$secondaryArchSuffix = $portVersion + lib:liblqr_1$secondaryArchSuffix = 0.3.2 compat >= 0 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + " + +PROVIDES_devel=" + liblqr${secondaryArchSuffix}_devel = $portVersion + devel:liblqr_1$secondaryArchSuffix = 0.3.2 compat >= 0 + " +REQUIRES_devel=" + liblqr$secondaryArchSuffix == $portVersion + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libglib_2.0$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + rm $libDir/liblqr-1.la + + prepareInstalledDevelLibs liblqr-1 + fixPkgconfig + + #devel Package + packageEntries devel \ + $developDir +}