0
0
Fork 0
haikuports/haiku-libs/libprefs/libprefs-1.2.5.recipe

66 lines
1.6 KiB
Bash

SUMMARY="Shared library to take care of your preferences"
DESCRIPTION="libprefs is a shared library that will take care of preferences \
for your application. You just call the library functions as documented, and \
your preferences will magically be saved wherever is the right place to put \
them. It is also a set of two regular (static) libraries that will allow your \
application to run without libprefs being available, but will utilize it if it \
is."
HOMEPAGE="http://ftp.icm.edu.pl/pub/beos/contrib/libraries/"
COPYRIGHT="1998 Jon Watte"
LICENSE="Public Domain"
REVISION="5"
SOURCE_URI="http://ftp.icm.edu.pl/pub/beos/contrib/libraries/libprefs125.zip"
CHECKSUM_SHA256="39532c9c6c69f915a6d99fde4fd827a5bdb676ee0cf00558b6956fc91db9a737"
SOURCE_DIR="libprefs125"
PATCHES="libprefs-1.2.5.patchset"
ARCHITECTURES="all !x86"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libprefs$secondaryArchSuffix = $portVersion
lib:libprefs$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libprefs$secondaryArchSuffix
devel:libprefs$secondaryArchSuffix
"
REQUIRES_devel="
libprefs$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:gcc
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
g++ -shared -fPIC -o libprefs.so -DPREF_SHARED_LIBRARY=1 \
src/libprefs.cpp -lroot -lbe
}
INSTALL()
{
mkdir -p $libDir
mkdir -p $includeDir
#cp bigprefs.x86.a $libDir/bigprefs.x86.a
cp libprefs.so $libDir
cp src/*.h $includeDir
prepareInstalledDevelLib \
libprefs
packageEntries devel \
$developDir
}