mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
74 lines
1.6 KiB
Bash
74 lines
1.6 KiB
Bash
SUMMARY="A simple GUI framework for SDL"
|
|
DESCRIPTION="
|
|
GUIlib is a very simple GUI library for SDL. It provides some general widgets \
|
|
like button, scrollbar, and image.
|
|
"
|
|
HOMEPAGE="http://www.libsdl.org/projects/GUIlib/"
|
|
COPYRIGHT="Public Domain"
|
|
LICENSE="Public Domain"
|
|
REVISION="1"
|
|
SOURCE_URI="http://www.libsdl.org/projects/GUIlib/src/GUIlib-1.2.1.tar.gz"
|
|
CHECKSUM_SHA256="3b383e537238048f4712395a38b9e3c65475d1dc93413e557f1b0a39c88f68df"
|
|
SOURCE_DIR="GUIlib-$portVersion"
|
|
|
|
ARCHITECTURES="?all x86_gcc2 x86"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
guilib$secondaryArchSuffix = $portVersion compat >= 1.2
|
|
lib:libGUI$secondaryArchSuffix = 1.2_0.0.1 compat >= 1.2_0
|
|
lib:libGUI_1.2$secondaryArchSuffix = 0.0.1 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libsdl$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
guilib${secondaryArchSuffix}_devel = $portVersion compat >= 1.2
|
|
devel:libGUI$secondaryArchSuffix = 1.2_0.0.1 compat >= 1.2_0
|
|
devel:libGUI_1.2$secondaryArchSuffix = 0.0.1 compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
guilib$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libsdl$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtool
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
rm -f aclocal.m4
|
|
rm -f acinclude.m4
|
|
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.in
|
|
libtoolize -fci
|
|
aclocal --install -I m4
|
|
./autogen.sh
|
|
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libGUI \
|
|
libGUI-1.2
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|