New package: libfirm-1.22.0

This commit is contained in:
Christian Neukirchen 2016-01-02 17:38:33 +01:00
parent 2f1534e0d2
commit 11a002bfb7
3 changed files with 44 additions and 0 deletions

View File

@ -2312,3 +2312,4 @@ libosmgpsmap-1.0.so.1 libosmgpsmap-1.1.0_1
libflickcurl.so.0 flickcurl-1.26_1
libpsiconv.so.6 psiconv-0.9.9_1
libshout.so.3 libshout-2.4.1_1
libfirm.so.1.22 libfirm-1.22.0_1

1
srcpkgs/libfirm-devel Symbolic link
View File

@ -0,0 +1 @@
libfirm

42
srcpkgs/libfirm/template Normal file
View File

@ -0,0 +1,42 @@
# 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
}
}