talimat 930 B

1234567891011121314151617181920212223242526
  1. # Description: O'Caml sdl kütüphanesi
  2. # URL: https://sourceforge.net/projects/ocamlsdl/
  3. # Packager: milisarge
  4. # Depends on: ocaml ocaml-findlib ocaml-lablgl sdl sdl-ttf sdl-image sdl-mixer
  5. name=ocaml-ocamlsdl
  6. version=0.9.1
  7. release=1
  8. source=(http://downloads.sourceforge.net/project/ocamlsdl/OCamlSDL/${name#ocaml-}-${version}/${name#ocaml-}-${version}.tar.gz)
  9. build() {
  10. cd "${SRC}/${name#ocaml-}-${version}"
  11. ./configure
  12. make
  13. export OCAMLFIND_DESTDIR="${PKG}$(ocamlfind printconf destdir)"
  14. mkdir -p "$PKG/usr/lib/ocaml/stublibs"
  15. mkdir -p "$PKG/usr/lib/ocaml/site-lib/sdl"
  16. make install
  17. mv "$PKG/usr/lib/ocaml/site-lib/sdl" "$PKG/usr/lib/ocaml/"
  18. cp src/dllsdlloaderstub.so "$PKG/usr/lib/ocaml/stublibs/"
  19. cp src/dllsdlmixerstub.so "$PKG/usr/lib/ocaml/stublibs/"
  20. cp src/dllsdlstub.so "$PKG/usr/lib/ocaml/stublibs/"
  21. cp src/dllsdlttfstub.so "$PKG/usr/lib/ocaml/stublibs/"
  22. }