123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- set -e
- program=libffcall
- version=2.4
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.gz
- fetch=https://ftp.gnu.org/pub/gnu/libffcall/$tarname
- description="
- Foreign function call libraries.
- GNU libffcall is a collection of four libraries which can be used to
- build foreign function call interfaces in embedded interpreters:
- * avcall
- Calling C functions with variable arguments.
- * vacall
- C functions accepting variable argument prototypes.
- * trampoline
- Closures as first-class C functions.
- * callback
- Closures with variable arguments as first-class C functions
- (a reentrant combination of vacall and trampoline).
- "
- homepage=https://www.gnu.org/software/libffcall/
- license=GPLv3+
- docs="COPYING ChangeLog DEPENDENCIES NEWS README VERSION"
- docsdir="${docdir}/${program}-${version}"
- jobs=1
- build()
- {
- unpack "${tardir}/$tarname"
-
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure \
- CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --docdir=$docsdir \
- --htmldir=${docsdir}/html \
- --enable-static=yes \
- --enable-shared=yes \
- --build="$(gcc -dumpmachine)"
- make -j${jobs}
- make -k check
- make -j${jobs} DESTDIR="$destdir" install
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}/$docsdir"
-
- mv "${destdir}/usr/share/html" "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|