From ee299f0b2f8070a53fb0cf1af488954611a4323a Mon Sep 17 00:00:00 2001 From: milisarge Date: Fri, 14 Apr 2017 03:08:02 +0300 Subject: [PATCH] ocaml-ocamlsdl.paketlendi --- talimatname/genel/ocaml-ocamlsdl/talimat | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 talimatname/genel/ocaml-ocamlsdl/talimat diff --git a/talimatname/genel/ocaml-ocamlsdl/talimat b/talimatname/genel/ocaml-ocamlsdl/talimat new file mode 100644 index 000000000..0665b21d0 --- /dev/null +++ b/talimatname/genel/ocaml-ocamlsdl/talimat @@ -0,0 +1,25 @@ +# Description: O'Caml sdl kütüphanesi +# URL: https://sourceforge.net/projects/ocamlsdl/ +# Packager: milisarge +# Depends on: ocaml ocaml-findlib ocaml-lablgl sdl sdl-ttf sdl-image sdl-mixer + +name=ocaml-ocamlsdl +version=0.9.1 +release=1 +source=(http://downloads.sourceforge.net/project/ocamlsdl/OCamlSDL/${name#ocaml-}-${version}/${name#ocaml-}-${version}.tar.gz) + +build() { + cd "${SRC}/${name#ocaml-}-${version}" + ./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/" +}