mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
77 lines
2.2 KiB
Bash
77 lines
2.2 KiB
Bash
SUMMARY="Converts Doxygen documentation to a Dash or Zeal docset"
|
|
DESCRIPTION="doxygen2docset is a command line tool which processes the output from Doxygen and \
|
|
produces a 'docset' package capable of being viewed with applications like 'Zeal'"
|
|
HOMEPAGE="https://github.com/chinmaygarde/doxygen2docset"
|
|
COPYRIGHT="2019 Chinmay Garde"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
srcGitRev="b676170902cea732a97f9a8238c9631ad006e37c"
|
|
SOURCE_URI="https://github.com/chinmaygarde/doxygen2docset/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="ed3a5da49edd52018dfc77bec9550b1928ff6227e9c68ac92eb2ee6b79de21fb"
|
|
SOURCE_DIR="doxygen2docset-$srcGitRev"
|
|
PATCHES="doxygen2docset-$portVersion.patchset"
|
|
|
|
srcGitRev2="cc366710bbf40a9816d47c35802d06dbaccb8792"
|
|
SOURCE_URI_2="https://github.com/google/googletest/archive/$srcGitRev2.tar.gz"
|
|
CHECKSUM_SHA256_2="ee17e6b417e6bff132e82f47f6721b6fd071bcf55ddfc59fee4c0df507e4890e"
|
|
SOURCE_DIR_2="googletest-$srcGitRev2"
|
|
|
|
srcGitRev3="ff61650517cc32d524689366f977716e73d4f924"
|
|
SOURCE_URI_3="https://github.com/leethomason/tinyxml2/archive/$srcGitRev3.tar.gz"
|
|
CHECKSUM_SHA256_3="1337c1a03d76cd9ffa85dd56537c87036b3349066756e6b424b5eaa7faa02709"
|
|
SOURCE_DIR_3="tinyxml2-$srcGitRev3"
|
|
|
|
srcGitRev4="aa91b27b02c0c80c482e24348a457ed7c3c088e0"
|
|
SOURCE_URI_4="https://github.com/google/gumbo-parser/archive/$srcGitRev4.tar.gz"
|
|
CHECKSUM_SHA256_4="f2d899ad9f96da1461710148dc1dc84c8519d9ec342d70bdb7a2c1f61dba3678"
|
|
SOURCE_DIR_4="gumbo-parser-$srcGitRev4"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
doxygen2docset$secondaryArchSuffix = $portVersion
|
|
cmd:doxygen2docset = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
pushd third_party
|
|
rm -rf googletest tinyxml2 gumbo/gumbo
|
|
ln -sf $sourceDir2 googletest
|
|
ln -sf $sourceDir3 tinyxml2
|
|
pushd gumbo
|
|
ln -sf $sourceDir4 gumbo
|
|
popd
|
|
popd
|
|
|
|
cmake -B build -S . \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix \
|
|
-DCMAKE_CXX_FLAGS="-D\"MAP_FILE=0\"" \
|
|
-DBUILD_GMOCK=OFF \
|
|
-DBUILD_TESTING=OFF \
|
|
-DBUILD_TESTS=OFF \
|
|
-DINSTALL_GTEST=OFF
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
}
|