blob: 1e01fa613e03048c423288c4829fb9ffd7a9f4c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
_realname=ghdl
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=ci
pkgrel=1
pkgdesc="GHDL: the open-source analyzer, compiler, simulator and (experimental) synthesizer for VHDL (mcode backend) (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
license=('GPL2+')
url='https://github.com/ghdl'
provides=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}-mcode")
depends=(
"${MINGW_PACKAGE_PREFIX}-gcc-ada"
"${MINGW_PACKAGE_PREFIX}-zlib"
)
makedepends=(
"${MINGW_PACKAGE_PREFIX}-gcc"
)
build() {
mkdir "${srcdir}/builddir"
cd "${srcdir}/builddir"
../../../../configure \
--prefix=${MINGW_PREFIX} \
LDFLAGS="-static -Wl,--stack=8388608" \
--enable-werror \
--enable-libghdl \
--enable-synth
make GNATMAKE="gnatmake -j$(nproc)"
}
package() {
cd "${srcdir}/builddir"
mkdir -p "${pkgdir}${MINGW_PREFIX}/lib"
make DESTDIR="${pkgdir}" install
}
|