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

33 lines
871 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
2018-08-01 10:15:04 +02:00
# Grup: kütüphane
2018-06-09 00:06:58 +02:00
isim=ocaml-lablgl
_isim=lablgl
surum=1.05
devir=1
kaynak=(https://forge.ocamlcore.org/frs/download.php/1254/lablgl-$surum.tar.gz)
derle() {
2018-08-01 10:15:04 +02:00
cd ${_isim}-$surum
2018-06-09 00:06:58 +02:00
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"
}