mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-16 20:13:52 +02:00
newlisp: only build with NEWLISP64 on 64bit archs; create bin symlink.
This commit is contained in:
parent
de44e34f55
commit
de4a8ecd82
2 changed files with 8 additions and 2 deletions
|
@ -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
|
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 -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
|
||||||
+CC ?= gcc
|
+CC ?= gcc
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'newlisp'
|
# Template file for 'newlisp'
|
||||||
pkgname=newlisp
|
pkgname=newlisp
|
||||||
version=10.4.5
|
version=10.4.5
|
||||||
revision=1
|
revision=2
|
||||||
makedepends="which readline-devel libffi-devel"
|
makedepends="which readline-devel libffi-devel"
|
||||||
crossmakedepends="readline-devel libffi-devel"
|
crossmakedepends="readline-devel libffi-devel"
|
||||||
short_desc="Lisp-like, general-purpose scripting language"
|
short_desc="Lisp-like, general-purpose scripting language"
|
||||||
|
@ -19,6 +19,9 @@ long_desc="
|
||||||
support for distributed and parallel processing, and Bayesian statistics."
|
support for distributed and parallel processing, and Bayesian statistics."
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
||||||
|
export CFLAGS="$CFLAGS -DNEWLISP64"
|
||||||
|
fi
|
||||||
make -f makefile_linuxLP64_utf8_ffi ${makejobs}
|
make -f makefile_linuxLP64_utf8_ffi ${makejobs}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,4 +32,7 @@ do_install() {
|
||||||
mandir=$DESTDIR/usr/share/man install
|
mandir=$DESTDIR/usr/share/man install
|
||||||
vmove usr/share/doc/$pkgname/COPYING \
|
vmove usr/share/doc/$pkgname/COPYING \
|
||||||
usr/share/licenses/$pkgname
|
usr/share/licenses/$pkgname
|
||||||
|
|
||||||
|
# Create newlisp symlink;
|
||||||
|
ln -sfr ${DESTDIR}/usr/bin/newlisp-${version} ${DESTDIR}/usr/bin/newlisp
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue