43 lines
1.0 KiB
Bash
43 lines
1.0 KiB
Bash
|
# Template file for 'libfirm'
|
||
|
pkgname=libfirm
|
||
|
version=1.22.0
|
||
|
revision=1
|
||
|
wrksrc="${pkgname}-${pkgname}-${version}"
|
||
|
build_style=gnu-makefile
|
||
|
hostmakedepends="perl python"
|
||
|
short_desc="Graph based SSA intermediate code representation"
|
||
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||
|
license="LGPL-2.1"
|
||
|
homepage="http://libfirm.org/"
|
||
|
distfiles="https://github.com/MatzeB/${pkgname}/archive/${pkgname}-${version}.tar.gz"
|
||
|
checksum=2e681db62610a41394f1aa3a62583acff8a67cea138354be6b3d2d8d390665c3
|
||
|
|
||
|
do_configure() {
|
||
|
cat <<EOF >config.mak
|
||
|
variant = release
|
||
|
CFLAGS_release = $CFLAGS
|
||
|
LINKFLAGS_release = $LDFLAGS -Wl,-soname=${pkgname}.so.${version%.*}
|
||
|
V = 1
|
||
|
CC = $CC
|
||
|
EOF
|
||
|
}
|
||
|
|
||
|
do_build() {
|
||
|
make ${makejobs}
|
||
|
}
|
||
|
|
||
|
post_install() {
|
||
|
vinstall build/release/libfirm.so 644 usr/lib libfirm.so.${version%.*}
|
||
|
ln -s libfirm.so.${version%.*} ${DESTDIR}/usr/lib/libfirm.so
|
||
|
}
|
||
|
|
||
|
libfirm-devel_package() {
|
||
|
short_desc+=" - development files"
|
||
|
depends="${sourcepkg}>=${version}_${revision}"
|
||
|
pkg_install() {
|
||
|
vmove usr/include
|
||
|
vmove usr/lib/*.so
|
||
|
vmove usr/lib/*.a
|
||
|
}
|
||
|
}
|