2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: O'Caml sdl kütüphanesi
|
2017-04-14 02:08:02 +02:00
|
|
|
|
# URL: https://sourceforge.net/projects/ocamlsdl/
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: ocaml ocaml-findlib ocaml-lablgl sdl sdl-ttf sdl-image sdl-mixer
|
2017-04-14 02:08:02 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=ocaml-ocamlsdl
|
|
|
|
|
surum=0.9.1
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(http://downloads.sourceforge.net/project/ocamlsdl/OCamlSDL/${name#ocaml-}-${surum}/${name#ocaml-}-${surum}.tar.gz)
|
2017-04-14 02:08:02 +02:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd "${SRC}/${name#ocaml-}-${surum}"
|
2017-04-14 02:08:02 +02:00
|
|
|
|
./configure
|
|
|
|
|
make
|
|
|
|
|
export OCAMLFIND_DESTDIR="${PKG}$(ocamlfind printconf destdir)"
|
|
|
|
|
mkdir -p "$PKG/usr/lib/ocaml/stublibs"
|
|
|
|
|
mkdir -p "$PKG/usr/lib/ocaml/site-lib/sdl"
|
|
|
|
|
make install
|
|
|
|
|
mv "$PKG/usr/lib/ocaml/site-lib/sdl" "$PKG/usr/lib/ocaml/"
|
|
|
|
|
|
|
|
|
|
cp src/dllsdlloaderstub.so "$PKG/usr/lib/ocaml/stublibs/"
|
|
|
|
|
cp src/dllsdlmixerstub.so "$PKG/usr/lib/ocaml/stublibs/"
|
|
|
|
|
cp src/dllsdlstub.so "$PKG/usr/lib/ocaml/stublibs/"
|
|
|
|
|
cp src/dllsdlttfstub.so "$PKG/usr/lib/ocaml/stublibs/"
|
|
|
|
|
}
|