2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: O'Caml kütüphane yöneticisi
|
2017-04-13 22:15:01 +02:00
|
|
|
|
# URL: http://projects.camlcity.org/projects/findlib.html
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: ocaml camlp4 xorg-glu xorg-libxi xorg-libxmu
|
2017-04-13 22:15:01 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +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)
|
2017-04-13 22:15:01 +02:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd ${_name}-$surum
|
2017-04-13 22:15:01 +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"
|
|
|
|
|
|
|
|
|
|
}
|