mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
* robinhood: enable for 64 bits. Build without dependencies. Also, addded the docs, and a small patch so you can actually open them from RHConsole's "Help" menu. * libhttp: drop recipe. Only user on-tree, RobinHood, now includes it. (HaikuArchive/libHTTP even says: "DO NOT USE FOR NEW PROJECTS").
83 lines
2.4 KiB
Bash
83 lines
2.4 KiB
Bash
SUMMARY="A Haiku-native HTTP/1.1 server"
|
|
DESCRIPTION="RobinHood is a native web server containing many features like \
|
|
authentication, virtual hosts, virtual folders, CGI, SSI, Ranges, and much more\
|
|
!"
|
|
HOMEPAGE="https://haikuarchives.github.io/RobinHood/"
|
|
COPYRIGHT="1999-2001 The Robin Hood Development Team
|
|
2015 Puck Meerburg"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
srcGitRev="1eca72d80d79414a7988ab17259030c64172577f"
|
|
SOURCE_URI="https://github.com/HaikuArchives/RobinHood/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="599ed4c777ffd849ae169a514e7a52f78e85ca73a92355fbceb8ddeffca92406"
|
|
SOURCE_DIR="RobinHood-$srcGitRev"
|
|
srcGitRev2="4a94696b445d88bc48c070ca3e9276e2e942059a"
|
|
SOURCE_URI_2="https://github.com/HaikuArchives/libHTTP/archive/$srcGitRev2.tar.gz"
|
|
CHECKSUM_SHA256_2="34185c19a76d4c35730795e1b5c115bee749508f3fd2bded25bba69a7ad68c62"
|
|
SOURCE_DIR_2="libHTTP-$srcGitRev2"
|
|
SOURCE_URI_3="https://github.com/HaikuArchives/RobinHood/archive/refs/heads/gh-pages.zip"
|
|
CHECKSUM_SHA256_3="904d9f6b737c1788d1866086d5387f8c7f2f2c39f46146cab79a781c14375385"
|
|
SOURCE_DIR_3="RobinHood-gh-pages"
|
|
|
|
PATCHES="robinhood-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
PROVIDES="
|
|
robinhood = $portVersion
|
|
app:RHConsole = $portVersion
|
|
app:RobinHoudini = $portVersion
|
|
cmd:rhdaemon = $portVersion
|
|
cmd:rhlog = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
makefile_engine
|
|
cmd:gcc
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
# setup local copy of libHTTP, and build it as a static library.
|
|
cp -r $sourceDir2/* $sourceDir/source/libHTTP
|
|
sed -i -E 's,NAME = libHTTP.so,NAME = libHTTP,' $sourceDir/source/libHTTP/Makefile
|
|
sed -i -E 's,TYPE = SHARED,TYPE = STATIC,' $sourceDir/source/libHTTP/Makefile
|
|
# Setting it to FALSE still builds in debug mode :-/
|
|
sed -i -E 's,DEBUGGER := TRUE,DEBUGGER := ,' $sourceDir/source/libHTTP/Makefile
|
|
|
|
cd source
|
|
make $jobArgs
|
|
cd ../RobinHoudini
|
|
make $jobArgs OBJ_DIR=objects
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd source
|
|
make install
|
|
|
|
cd server
|
|
mkdir -p $binDir $appsDir $addOnsDir $docDir
|
|
cp rhdaemon $binDir
|
|
cp RHLog $binDir/rhlog
|
|
cp RHConsole $appsDir
|
|
cp -r robin_hood_modules $addOnsDir
|
|
addAppDeskbarSymlink $appsDir/RHConsole Robin\ Hood
|
|
|
|
cd ../../RobinHoudini
|
|
cp objects/RHoudini $appsDir/RobinHoudini
|
|
|
|
cp -r $sourceDir3/* $docDir
|
|
|
|
mkdir -p $dataDir/deskbar/menu/Desktop\ applets
|
|
symlinkRelative -s $appsDir/RobinHoudini \
|
|
$dataDir/deskbar/menu/Desktop\ applets/Robin\ Houdini
|
|
}
|