diff --git a/net-libs/libhttp/libhttp-0.9.mod.recipe b/net-libs/libhttp/libhttp-0.9.mod.recipe new file mode 100644 index 000000000..c2e6d6ce4 --- /dev/null +++ b/net-libs/libhttp/libhttp-0.9.mod.recipe @@ -0,0 +1,61 @@ +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" +SRC_URI="https://github.com/HaikuArchives/libHTTP/archive/4a94696b445d88bc48c070ca3e9276e2e942059a.tar.gz" +CHECKSUM_SHA256="34185c19a76d4c35730795e1b5c115bee749508f3fd2bded25bba69a7ad68c62" +SOURCE_DIR="libHTTP-4a94696b445d88bc48c070ca3e9276e2e942059a" +REVISION="1" +LICENSE="GNU GPL v2" +COPYRIGHT="1999 Joe Kloss +2015 Puck Meerburg" + +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + libhttp$secondaryArchSuffix = $portVersion + lib:libHTTP$secondaryArchSuffix = $portVersion + " +PROVIDES_devel=" + libhttp${secondaryArchSuffix}_devel = $portVersion + devel:libHTTP$secondaryArchSuffix = $portVersion + " + +REQUIRES=" + haiku$secondaryArchSuffix + " +REQUIRES_devel=" + haiku${secondaryArchSuffix}_devel + libhttp$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + makefile_engine + cmd:make + cmd:gcc$secondaryArchSuffix + cmd:mkdepend + " + +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 +}