mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
added extra/ecl
This commit is contained in:
parent
1cd72f79bf
commit
859f210317
2 changed files with 66 additions and 0 deletions
54
extra/ecl/PKGBUILD
Normal file
54
extra/ecl/PKGBUILD
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
# $Id$
|
||||||
|
# Contributor: John Proctor <jproctor@prium.net>
|
||||||
|
# Maintainer: juergen <juergen@archlinux.org>
|
||||||
|
|
||||||
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
|
# - use system libffi (included version is old and breaks on v5)
|
||||||
|
# - specify libffi include path in CPPFLAGS
|
||||||
|
|
||||||
|
pkgname=ecl
|
||||||
|
pkgver=13.5.1
|
||||||
|
pkgrel=2
|
||||||
|
pkgdesc="Embeddable Common Lisp"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="http://sourceforge.net/projects/ecls/"
|
||||||
|
license=('LGPL')
|
||||||
|
depends=('bash' 'gmp' 'libffi')
|
||||||
|
makedepends=('texinfo')
|
||||||
|
provides=('common-lisp' 'cl-asdf')
|
||||||
|
options=('!makeflags')
|
||||||
|
source=(http://downloads.sourceforge.net/project/ecls/ecls/13.5/ecl-${pkgver}.tgz
|
||||||
|
add_cas_emulation_for_armel.patch)
|
||||||
|
md5sums=('f6bb59d9383c51fc94e1c7ca5cf1c586'
|
||||||
|
'16a7c651f2f06fb6718e8704a42f8049')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd $srcdir/$pkgname-$pkgver
|
||||||
|
|
||||||
|
[[ $CARCH == 'arm' ]] && patch -p1 -i ../add_cas_emulation_for_armel.patch
|
||||||
|
sed -i 's|-Wl,--rpath,~A|-Wl,--rpath,/usr/lib/ecl|' src/configure
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $srcdir/$pkgname-$pkgver
|
||||||
|
|
||||||
|
CPPFLAGS+=" -I/usr/lib/libffi-3.0.13/include"
|
||||||
|
./configure \
|
||||||
|
--build=$CHOST \
|
||||||
|
--prefix=/usr \
|
||||||
|
--with-tcp \
|
||||||
|
--with-clos-streams \
|
||||||
|
--enable-shared \
|
||||||
|
--enable-boehm=included \
|
||||||
|
--with-system-gmp \
|
||||||
|
--without-x \
|
||||||
|
--enable-threads \
|
||||||
|
--without-clx \
|
||||||
|
--with-dffi=system
|
||||||
|
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
make -C $srcdir/$pkgname-$pkgver DESTDIR=$pkgdir install
|
||||||
|
}
|
12
extra/ecl/add_cas_emulation_for_armel.patch
Normal file
12
extra/ecl/add_cas_emulation_for_armel.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff --git a/src/h/internal.h b/src/h/internal.h
|
||||||
|
index 50fb8a9..595d0a2 100755
|
||||||
|
--- a/src/h/internal.h
|
||||||
|
+++ b/src/h/internal.h
|
||||||
|
@@ -422,6 +422,7 @@ extern void cl_write_object(cl_object x, cl_object stream);
|
||||||
|
#endif /* ECL_THREADS */
|
||||||
|
|
||||||
|
#ifdef ECL_THREADS
|
||||||
|
+# define AO_REQUIRE_CAS
|
||||||
|
# ifdef ECL_LIBATOMIC_OPS_H
|
||||||
|
# include <ecl/atomic_ops.h>
|
||||||
|
# else
|
Loading…
Reference in a new issue