blob: b0e68d8d842d5583ac957aa484eaa7ed58b33d1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Contributor: Taylor Venable <taylor@metasyntax.net>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
_pkgname='bigloo'
pkgname="${_pkgname}-devel"
epoch=18
_pkgver='4.3a'
_pkgsuffix='alpha19Aug16'
pkgver="${_pkgver}"."${_pkgsuffix}"
pkgrel=1
pkgdesc="Fast scheme compiler"
arch=('i686' 'x86_64')
url="http://www-sop.inria.fr/mimosa/fp/Bigloo/"
license=('GPL' 'LGPL')
depends=('openssl' 'sqlite3' 'avahi' 'libunistring' 'gmp' 'libpulse' 'libuv' 'gstreamer0.10-base' 'mpg123' 'flac' 'libuv')
makedepends=('zip' 'emacs')
optdepends=('emacs: for bee'
'java-environment: for compiling into jvm')
provides=('bigloo=$pkgver')
conflicts=('bigloo')
options=('!makeflags' 'libtool' 'staticlibs' '!strip')
source=("ftp://ftp-sop.inria.fr/indes/fp/Bigloo/${_pkgname}${_pkgver}-${_pkgsuffix}.tar.gz" "satisfy-ldconfig.sh")
md5sums=('17a5abb31d28da4500e0f883f1705e26'
'c253eb5651c81204f6c16b89c3c2cb6a')
prepare() {
cd "${srcdir}/${_pkgname}${_pkgver}"
sed -ri 's/ ?-Wl,-rpath=[^"]+"/"/' configure
}
build() {
cd "${srcdir}/${_pkgname}${_pkgver}"
CFLAGS+=" -fPIC" ./configure --prefix=/usr \
--enable-ssl \
--enable-sqlite \
--enable-alsa \
--enable-gstreamer \
--enable-libuv \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--docdir=/usr/share/doc/bigloo \
--strip=no \
--sharedcompiler=yes
make build compile-bee
}
check() {
cd "${srcdir}/${_pkgname}${_pkgver}"
make test
}
package() {
cd "${srcdir}/${_pkgname}${_pkgver}"
make DESTDIR="${pkgdir}" install install-bee
make -C manuals DESTDIR="${pkgdir}" install-bee
chmod 644 "${pkgdir}/usr/lib/${_pkgname}/${_pkgver}"/*.a
# Slake ldconfig's thirst for symlinks.
find "${pkgdir}/usr/lib/${_pkgname}/${_pkgver}" -type f -name '*_es-*.so' \
-exec "${srcdir}/satisfy-ldconfig.sh" '{}' \;
sed -e "s|^BOOTDIR=.*|BOOTDIR=/usr|g" \
-e "s|^BOOTBINDIR=.*|BOOTBINDIR=/usr/bin|g" \
-e "s|^BOOTLIBDIR=.*|BOOTLIBDIR=/usr/lib/bigloo/${pkgver}|g" \
-e "s|^BGLBUILDBINDIR=.*|BGLBUILDBINDIR=/usr/bin|g" \
-e "s|^BGLBUILDLIBDIR=.*|BGLBUILDLIBDIR=/usr/lib/bigloo/${pkgver}|g" \
-e "s|^\(BIGLOO=.*\)\.sh|\1|" \
-e "s|^\(BGL.*=.*\)\.sh|\1|" \
-i ${pkgdir}/usr/lib/bigloo/${_pkgver}/Makefile.config
}
|