Skip to content

Commit

Permalink
lablgtk : add lablgl support
Browse files Browse the repository at this point in the history
  • Loading branch information
william3 committed Aug 21, 2013
1 parent 154fa0f commit 43e48bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions packages/lablgtk.2.16.0/files/lablgldir.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -Naur lablgtk-2.16.0.orig/configure lablgtk-2.16.0/configure
--- lablgtk-2.16.0.orig/configure 2012-08-23 12:37:48.000000000 +0200
+++ lablgtk-2.16.0/configure 2013-08-21 11:16:50.707187151 +0200
@@ -4066,7 +4066,7 @@
cat > conftest.ml << EOF
open Raw
EOF
- if $CAMLC -c -I "${LABLGLDIR:=+lablGL}" conftest.ml > /dev/null 2>&1 ; then
+ if $CAMLC -c -I "$LABLGLDIR" conftest.ml > /dev/null 2>&1 ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LABLGLDIR" >&5
$as_echo "$LABLGLDIR" >&6; }
else
5 changes: 3 additions & 2 deletions packages/lablgtk.2.16.0/opam
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ opam-version: "1"
maintainer: "contact@ocamlpro.com"
homepage: "http://lablgtk.forge.ocamlcore.org/"
build: [
["./configure" "--prefix" "%{prefix}%"]
["./configure" "--prefix" "%{prefix}%" "LABLGLDIR=%{lib}%/lablgl"]
[make "world"]
[make "install"]
]
remove: [
["ocamlfind" "remove" "lablgtk2"]
]
patches: ["lablgldir.patch"]
depends: ["ocamlfind"]
depopts: ["conf-gtksourceview"]
depopts: ["conf-gtksourceview" "lablgl"]

0 comments on commit 43e48bf

Please sign in to comment.