aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mono
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-06-15 22:33:57 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-06-16 01:23:16 +0200
commit6f5e78ec9fd84caa7275ea74a6954cdf57ceb899 (patch)
tree922f2c015fd3d5a756504ce7fe323d76b31e27ea /testing/mono
parentbdf089313be86997bc70ff9e9497f7ac10e5959f (diff)
downloadaports-6f5e78ec9fd84caa7275ea74a6954cdf57ceb899.tar.bz2
aports-6f5e78ec9fd84caa7275ea74a6954cdf57ceb899.tar.xz
testing/mono: minor improvements/fixes based on Fedora pkg
Diffstat (limited to 'testing/mono')
-rw-r--r--testing/mono/APKBUILD21
1 files changed, 18 insertions, 3 deletions
diff --git a/testing/mono/APKBUILD b/testing/mono/APKBUILD
index 89b9add927..16b8bec58a 100644
--- a/testing/mono/APKBUILD
+++ b/testing/mono/APKBUILD
@@ -17,6 +17,10 @@ builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare
+ cd "$builddir"
+
+ # Remove hardcoded lib directory from the config.
+ sed -i 's|$mono_libdir/||g' data/config.in
# We need to do this so it don't get killed in the build proces when
# MPROTECT and RANDMMAP is enable.
@@ -27,10 +31,13 @@ prepare() {
build() {
cd "$builddir"
- # set the minimum arch for x86 to prevent atomic linker errors
+ # Based on Fedora and SUSE package.
+ export CFLAGS="$CFLAGS -fno-strict-aliasing"
+
+ # Set the minimum arch for x86 to prevent atomic linker errors.
[ "$CARCH" = "x86" ] && export CFLAGS="$CFLAGS -march=i586 -mtune=generic"
- # autogen to fix supplied configure linker issues with make install
+ # Run autogen to fix supplied configure linker issues with make install.
./autogen.sh \
--build=$CBUILD \
--host=$CHOST \
@@ -39,6 +46,7 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
+ --disable-rpath \
--disable-boehm \
--enable-parallel-mark \
--with-mcs-docs=no \
@@ -51,7 +59,14 @@ package() {
make -j1 DESTDIR="$pkgdir" install
- paxmark mr "$pkgdir"/usr/bin/mono-sgen
+ cd "$pkgdir"
+
+ # Remove .la files.
+ rm ./usr/lib/*.la
+
+ # Remove Windows-only stuff.
+ rm -r ./$_monodir/*/Mono.Security.Win32*
+ rm ./usr/lib/libMonoSupportW.*
}
sha512sums="de2a8a3580b8236bafdc7e6967d68da08bf2dc775bce5166aba6134c1b986ae7fc56b97743d5122de14bf8fe074d3508c07324735616439dea0913633ee817da mono-5.0.1.1.tar.bz2"