Christoph Reiter e40c90814f Makedepend on gcc/make where needed
This means we no longer need msys2-devel
2021-12-13 22:19:56 +01:00

40 lines
1.1 KiB
Bash

# Maintainer: Alexey Pavlov <Alexpux@gmail.com>
# Contributor: Ray Donnelly <mingw.android@gmail.com>
pkgname=doxygen
pkgver=1.9.2
pkgrel=1
pkgdesc="A documentation system for C++, C, Java, IDL and PHP"
arch=('i686' 'x86_64')
url="http://www.doxygen.org/"
options=('strip' 'staticlibs')
license=('GPL')
depends=("gcc-libs" "libsqlite" "libiconv")
makedepends=("cmake" "flex" "python" "libsqlite-devel" "libiconv-devel" 'gcc')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/doxygen/doxygen/archive/Release_${pkgver//./_}.tar.gz)
#noextract=("${pkgname}-${pkgver}.tar.gz")
sha256sums=('40f429241027ea60f978f730229d22e971786172fdb4dc74db6406e7f6c034b3')
build() {
local extra_config=Release
if check_option "debug" "y"; then
extra_config=Debug
fi
mkdir -p build-${CHOST} && cd build-${CHOST}
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=${extra_config} \
-Dbuild_wizard=OFF \
-Dbuild_search=OFF \
-Duse_sqlite3=ON \
-Duse_libclang=OFF \
../${pkgname}-Release_${pkgver//./_}
make
}
package() {
cd ${srcdir}/build-${CHOST}
make DESTDIR="${pkgdir}" install
}