milis/talimatname/genel/o/ocaml-lablgl/talimat

32 lines
851 B
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: O'Caml kütüphane yöneticisi
# URL: http://projects.camlcity.org/projects/findlib.html
# Paketçi: milisarge
# Gerekler: ocaml camlp4 xorg-glu xorg-libxi xorg-libxmu
isim=ocaml-lablgl
_isim=lablgl
surum=1.05
devir=1
kaynak=(https://forge.ocamlcore.org/frs/download.php/1254/lablgl-$surum.tar.gz)
derle() {
cd ${_name}-$surum
sed 17d Makefile.config.linux.mdk > Makefile.config
make lib
make libopt
make install BINDIR="$PKG/usr/bin/" \
LIBDIR="$PKG/usr/lib/ocaml/" \
DDLDIR="$PKG/usr/lib/ocaml/stublibs/" \
INSTALLDIR="$PKG/usr/lib/ocaml/lablGL/"
install -Dm644 src/lablgl.cmxa "$PKG"/usr/lib/ocaml/lablgl.cmxa
# stublibs kütüphanelerini doğru konumlamak için
mv "$PKG/usr/lib/ocaml/stublibs" /tmp/temp.so
mkdir -p "$PKG/usr/lib/ocaml/stublibs"
mv /tmp/temp.so "$PKG/usr/lib/ocaml/stublibs/dlllablgl.so"
}