newlisp: only build with NEWLISP64 on 64bit archs; create bin symlink.
This commit is contained in:
parent
de44e34f55
commit
de4a8ecd82
|
@ -5,7 +5,7 @@
|
|||
nl-sock.o nl-import.o nl-xml.o nl-web.o nl-matrix.o nl-debug.o nl-utf8.o pcre.o
|
||||
|
||||
-CFLAGS = -fPIC -m64 -Wall -pedantic -Wno-uninitialized -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREADLINE -DSUPPORT_UTF8 -DNEWLISP64 -DLINUX -DFFI -I/usr/lib/x86_64-linux-gnu
|
||||
+CFLAGS += -fPIC -Wall -pedantic -Wno-uninitialized -Wno-strict-aliasing -Wno-long-long -c -DREADLINE -DSUPPORT_UTF8 -DNEWLISP64 -DLINUX -DFFI
|
||||
+CFLAGS += -fPIC -Wall -pedantic -Wno-uninitialized -Wno-strict-aliasing -Wno-long-long -c -DREADLINE -DSUPPORT_UTF8 -DLINUX -DFFI
|
||||
|
||||
-CC = gcc
|
||||
+CC ?= gcc
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'newlisp'
|
||||
pkgname=newlisp
|
||||
version=10.4.5
|
||||
revision=1
|
||||
revision=2
|
||||
makedepends="which readline-devel libffi-devel"
|
||||
crossmakedepends="readline-devel libffi-devel"
|
||||
short_desc="Lisp-like, general-purpose scripting language"
|
||||
|
@ -19,6 +19,9 @@ long_desc="
|
|||
support for distributed and parallel processing, and Bayesian statistics."
|
||||
|
||||
do_build() {
|
||||
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
||||
export CFLAGS="$CFLAGS -DNEWLISP64"
|
||||
fi
|
||||
make -f makefile_linuxLP64_utf8_ffi ${makejobs}
|
||||
}
|
||||
|
||||
|
@ -29,4 +32,7 @@ do_install() {
|
|||
mandir=$DESTDIR/usr/share/man install
|
||||
vmove usr/share/doc/$pkgname/COPYING \
|
||||
usr/share/licenses/$pkgname
|
||||
|
||||
# Create newlisp symlink;
|
||||
ln -sfr ${DESTDIR}/usr/bin/newlisp-${version} ${DESTDIR}/usr/bin/newlisp
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue