mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-20 18:50:08 +02:00
52 lines
1.4 KiB
Bash
52 lines
1.4 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="ftp://ftp.icm.edu.pl/vol/rzm1/beos/contrib/libraries"
|
|
COPYRIGHT="1998 Jon Watte"
|
|
LICENSE="Public Domain"
|
|
REVISION="1"
|
|
SOURCE_URI="ftp://ftp.icm.edu.pl/vol/rzm1/beos/contrib/libraries/libprefs125.zip"
|
|
CHECKSUM_SHA256="39532c9c6c69f915a6d99fde4fd827a5bdb676ee0cf00558b6956fc91db9a737"
|
|
SOURCE_DIR="libprefs125"
|
|
PATCHES="libprefs-1.2.5.patch"
|
|
|
|
ARCHITECTURES="x86_gcc2 !x86 !x86_64"
|
|
SECONDARY_ACRHITECTURES="x86_gcc2 !x86"
|
|
|
|
PROVIDES="
|
|
libprefs$secondaryArchSuffix = $portVersion
|
|
lib:libprefs$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:gcc
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
g++ -shared -fPIC -o libprefs.so 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
|
|
}
|