Files
haikuports/media-libs/fblend/fblend-0.4.recipe
2016-08-13 11:11:47 -04:00

54 lines
1.1 KiB
Bash

SUMMARY="Color blenders for Allegro"
DESCRIPTION="FBlend is a series of super-fast color blenders for Allegro."
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()
{
dos2unix *
dos2unix src/*
dos2unix src/x86/*
dos2unix lib/*
dos2unix lib/unix/*
dos2unix include/*
dos2unix make/*
sh fix.sh unix
make $jobArgs
}
INSTALL()
{
mkdir -p $developDir/lib
mkdir -p $includeDir
cp -a lib/unix/libfblend.a $developDir/lib
cp -R include/fblend.h $includeDir
}