From b41dcf9b71bdc1f2fb49c81bffeb5d66463feeb7 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sat, 13 Aug 2016 17:11:47 +0200 Subject: [PATCH] fblend 0.4 recipe, working (#764) --- media-libs/fblend/fblend-0.4.recipe | 52 ++++++++++++++++++++--------- 1 file changed, 37 insertions(+), 15 deletions(-) diff --git a/media-libs/fblend/fblend-0.4.recipe b/media-libs/fblend/fblend-0.4.recipe index a29e208c9..33069b341 100644 --- a/media-libs/fblend/fblend-0.4.recipe +++ b/media-libs/fblend/fblend-0.4.recipe @@ -1,31 +1,53 @@ +SUMMARY="Color blenders for Allegro" DESCRIPTION="FBlend is a series of super-fast color blenders for Allegro." -HOMEPAGE="http://sourceforge.net/projects/fblend/" -SOURCE_URI="http://sourceforge.net/projects/fblend/files/FBlend%20beta/fblend-0.5-beta01/fblend-0.5-beta01.zip/download" -REVISION="1" -STATUS_HAIKU="broken" -DEPEND="media-libs/allegro >= 4.4 - app-text/dos2unix >= 1.0" -CHECKSUM_MD5="e252ae521e099793fe6caa0fb7d048f3" +HOMEPAGE="https://sourceforge.net/projects/fblend/" +COPYRIGHT="2001-2002 Robert J Ohannessian" +LICENSE="BSD (3-clause)" +REVISION="2" +SOURCE_URI="https://downloads.sf.net/fblend/fblend-$portVersion.zip" +CHECKSUM_SHA256="8243fd6be592fc95d0669ff8ebf9ace4ec010ec65461e232cc36f2cf84b3bb13" +SOURCE_DIR="fblend" + +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + fblend$secondaryArchSuffix = $portVersion + devel:libfblend$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:liballeg$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:liballeg$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:dos2unix + cmd:make + cmd:gcc$secondaryArchSuffix + " + BUILD() { - cd fblend dos2unix * dos2unix src/* - dos2unix src/misc/* dos2unix src/x86/* dos2unix lib/* dos2unix lib/unix/* dos2unix include/* dos2unix make/* sh fix.sh unix - make + make $jobArgs } INSTALL() { - cd fblend - make install INSTALL_DIR=/boot/common -} + mkdir -p $developDir/lib + mkdir -p $includeDir -LICENSE="BSD (3-clause)" -COPYRIGHT="2001-2002 Robert J Ohannessian" + cp -a lib/unix/libfblend.a $developDir/lib + cp -R include/fblend.h $includeDir +}