From 11a002bfb78abebb4b73eeffd14f2ed8c12a7b91 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 2 Jan 2016 17:38:33 +0100 Subject: [PATCH] New package: libfirm-1.22.0 --- common/shlibs | 1 + srcpkgs/libfirm-devel | 1 + srcpkgs/libfirm/template | 42 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 120000 srcpkgs/libfirm-devel create mode 100644 srcpkgs/libfirm/template diff --git a/common/shlibs b/common/shlibs index 3acf5243ab..27303f1515 100644 --- a/common/shlibs +++ b/common/shlibs @@ -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 diff --git a/srcpkgs/libfirm-devel b/srcpkgs/libfirm-devel new file mode 120000 index 0000000000..4d4918fa0e --- /dev/null +++ b/srcpkgs/libfirm-devel @@ -0,0 +1 @@ +libfirm \ No newline at end of file diff --git a/srcpkgs/libfirm/template b/srcpkgs/libfirm/template new file mode 100644 index 0000000000..a82b115c4e --- /dev/null +++ b/srcpkgs/libfirm/template @@ -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 " +license="LGPL-2.1" +homepage="http://libfirm.org/" +distfiles="https://github.com/MatzeB/${pkgname}/archive/${pkgname}-${version}.tar.gz" +checksum=2e681db62610a41394f1aa3a62583acff8a67cea138354be6b3d2d8d390665c3 + +do_configure() { + cat <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 + } +}