2011-12-21 20:12:28 +00:00
|
|
|
# Template file for 'newlisp'
|
|
|
|
pkgname=newlisp
|
2014-02-04 04:50:42 +00:00
|
|
|
version=10.5.4
|
2014-02-27 13:54:19 +00:00
|
|
|
revision=2
|
2013-03-24 09:21:58 +00:00
|
|
|
hostmakedepends="which"
|
2014-02-27 13:54:19 +00:00
|
|
|
makedepends="readline-devel>=6.3 libffi-devel"
|
2011-12-21 20:12:28 +00:00
|
|
|
short_desc="Lisp-like, general-purpose scripting language"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-3, zlib, $pkgname"
|
2012-06-04 14:57:56 +00:00
|
|
|
homepage="http://www.newlisp.org"
|
|
|
|
distfiles="$homepage/downloads/$pkgname-$version.tgz"
|
2014-02-04 04:50:42 +00:00
|
|
|
checksum=e4561e03c89e7c89a30dfa7daf12091085a474e96b0fbbb4ee62454463175eb0
|
2011-12-21 20:12:28 +00:00
|
|
|
|
|
|
|
do_build() {
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2014-02-04 04:50:42 +00:00
|
|
|
export CFLAGS+=" -DNEWLISP64"
|
2013-03-21 00:17:43 +00:00
|
|
|
fi
|
2013-03-21 00:06:54 +00:00
|
|
|
make -f makefile_linuxLP64_utf8_ffi ${makejobs}
|
2011-12-21 20:12:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vmkdir usr/bin
|
|
|
|
vmkdir usr/share/man/man1
|
2013-05-22 09:18:54 +00:00
|
|
|
vmkdir usr/share/licenses/$pkgname
|
2011-12-21 20:12:28 +00:00
|
|
|
make bindir=$DESTDIR/usr/bin datadir=$DESTDIR/usr/share \
|
|
|
|
mandir=$DESTDIR/usr/share/man install
|
2013-05-22 08:42:50 +00:00
|
|
|
mv $DESTDIR/usr/share/doc/$pkgname/COPYING \
|
|
|
|
$DESTDIR/usr/share/licenses/$pkgname
|
2013-03-21 00:17:43 +00:00
|
|
|
|
|
|
|
# Create newlisp symlink;
|
|
|
|
ln -sfr ${DESTDIR}/usr/bin/newlisp-${version} ${DESTDIR}/usr/bin/newlisp
|
2011-12-21 20:12:28 +00:00
|
|
|
}
|