2015-08-05 13:03:17 +00:00
|
|
|
# Template file for 'mclinker'
|
|
|
|
pkgname=mclinker
|
2015-09-19 07:31:48 +00:00
|
|
|
version=2.10.0
|
2015-08-05 13:03:17 +00:00
|
|
|
revision=1
|
|
|
|
_version="${version%.*}" _version="${_version//.}"
|
|
|
|
wrksrc="$pkgname-release_${_version}"
|
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="automake libtool flex llvm"
|
2015-09-19 07:31:48 +00:00
|
|
|
makedepends="zlib-devel libffi-devel libedit-devel ncurses-devel llvm"
|
2015-08-05 13:03:17 +00:00
|
|
|
short_desc="LLVM Linker for Mobile Computing"
|
|
|
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
|
|
|
license="BSD"
|
|
|
|
homepage="https://github.com/$pkgname/$pkgname"
|
|
|
|
distfiles="$homepage/archive/release_${_version}.tar.gz"
|
2015-09-19 07:31:48 +00:00
|
|
|
checksum=b2364bb985630c0b4744d735ba0fc69d41854f947e493c61f7efb0f308143e4d
|
2015-08-05 13:03:17 +00:00
|
|
|
patch_args="-Np1"
|
|
|
|
nocross=yes
|
|
|
|
|
|
|
|
pre_configure() {
|
2015-09-19 07:31:48 +00:00
|
|
|
sed -i 's|llvm/Option/OptParser.td|/usr/include/llvm/Option/OptParser.td|g' tools/mcld/Options.td # HACK: hardcode header location
|
2015-08-05 13:03:17 +00:00
|
|
|
sed -i '/unittests/d' configure.ac
|
|
|
|
sed -i 's/unittests//' Makefile.am
|
|
|
|
sed -i '/unittests/d' Makefile.am
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
|
|
|
mclinker-devel_package() {
|
|
|
|
short_desc+=" - devel files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
}
|
|
|
|
}
|