mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +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.
61 lines
1.4 KiB
Bash
61 lines
1.4 KiB
Bash
SUMMARY="An HTTP protocol handler"
|
|
DESCRIPTION="libHTTP is a helper library used by RobinHood to simplify \
|
|
HTTP and other protocols. It is a legacy library and shouldn't be used in new \
|
|
code anymore."
|
|
HOMEPAGE="https://github.com/HaikuArchives/libHTTP"
|
|
COPYRIGHT="1999 Joe Kloss
|
|
2015 Puck Meerburg"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/HaikuArchives/libHTTP/archive/4a94696b445d88bc48c070ca3e9276e2e942059a.tar.gz"
|
|
CHECKSUM_SHA256="34185c19a76d4c35730795e1b5c115bee749508f3fd2bded25bba69a7ad68c62"
|
|
SOURCE_DIR="libHTTP-4a94696b445d88bc48c070ca3e9276e2e942059a"
|
|
|
|
ARCHITECTURES="?all x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libhttp$secondaryArchSuffix = $portVersion
|
|
lib:libHTTP$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libhttp${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libHTTP$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
haiku${secondaryArchSuffix}_devel
|
|
libhttp$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
makefile_engine
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make $jobArgs OBJ_DIR=objects
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $libDir
|
|
mkdir -p $includeDir/libHTTP
|
|
|
|
cp -a objects/libHTTP.so $libDir
|
|
cp -R headers/* $includeDir/libHTTP
|
|
|
|
prepareInstalledDevelLibs \
|
|
libHTTP
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|