talimat 866 B

1234567891011121314151617181920212223242526272829303132
  1. # Description: O'Caml kütüphane yöneticisi
  2. # URL: http://projects.camlcity.org/projects/findlib.html
  3. # Packager: milisarge
  4. # Depends on: ocaml camlp4 xorg-glu xorg-libxi xorg-libxmu
  5. name=ocaml-lablgl
  6. _name=lablgl
  7. version=1.05
  8. release=1
  9. source=(https://forge.ocamlcore.org/frs/download.php/1254/lablgl-$version.tar.gz)
  10. build() {
  11. cd ${_name}-$version
  12. sed 17d Makefile.config.linux.mdk > Makefile.config
  13. make lib
  14. make libopt
  15. make install BINDIR="$PKG/usr/bin/" \
  16. LIBDIR="$PKG/usr/lib/ocaml/" \
  17. DDLDIR="$PKG/usr/lib/ocaml/stublibs/" \
  18. INSTALLDIR="$PKG/usr/lib/ocaml/lablGL/"
  19. install -Dm644 src/lablgl.cmxa "$PKG"/usr/lib/ocaml/lablgl.cmxa
  20. # stublibs kütüphanelerini doğru konumlamak için
  21. mv "$PKG/usr/lib/ocaml/stublibs" /tmp/temp.so
  22. mkdir -p "$PKG/usr/lib/ocaml/stublibs"
  23. mv /tmp/temp.so "$PKG/usr/lib/ocaml/stublibs/dlllablgl.so"
  24. }