summaryrefslogtreecommitdiffstats
path: root/src/ocaml-lablgl.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/ocaml-lablgl.mk')
-rw-r--r--src/ocaml-lablgl.mk78
1 files changed, 39 insertions, 39 deletions
diff --git a/src/ocaml-lablgl.mk b/src/ocaml-lablgl.mk
index 2de59ad..239a16f 100644
--- a/src/ocaml-lablgl.mk
+++ b/src/ocaml-lablgl.mk
@@ -1,54 +1,54 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
-PKG := ocaml-lablgl
-$(PKG)_IGNORE :=
+PKG := ocaml-lablgl
+$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 996f0aba788f5fa1531587fb06d667b94237cc92
-$(PKG)_SUBDIR := lablGL
-$(PKG)_FILE := lablgl-$($(PKG)_VERSION).tar.gz
-$(PKG)_URL := http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/$($(PKG)_FILE)
-$(PKG)_DEPS := ocaml-findlib gtkglarea
+$(PKG)_SUBDIR := lablGL
+$(PKG)_FILE := lablgl-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/$($(PKG)_FILE)
+$(PKG)_DEPS := ocaml-findlib gtkglarea
define $(PKG)_UPDATE
- wget -q -O- 'http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgl.html' | \
- $(SED) -n 's,.*lablgl-\([^>]*\)\.tar.*,\1,ip' | \
- head -1
+ wget -q -O- 'http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgl.html' | \
+ $(SED) -n 's,.*lablgl-\([^>]*\)\.tar.*,\1,ip' | \
+ head -1
endef
define $(PKG)_BUILD
- (echo 'CAMLC = $(TARGET)-ocamlc'; \
- echo 'CAMLOPT = $(TARGET)-ocamlopt'; \
- echo 'BINDIR = $(PREFIX)/$(TARGET)/bin'; \
- echo '#XINCLUDES = -I$(PREFIX)/$(TARGET)/X11R6/include'; \
- echo '#XLIBS = -lXext -lXmu -lX11'; \
- echo '#TKINCLUDES = -I(PREFIX)/$(TARGET)/include'; \
- echo 'GLINCLUDES = -DHAS_GLEXT_H -DGL_GLEXT_PROTOTYPES -DGLU_VERSION_1_3'; \
- echo 'GLLIBS = -lglu32 -lopengl32'; \
- echo 'GLUTLIBS = $(shell $(PREFIX)/bin/$(TARGET)-pkg-config --libs glut)'; \
- echo 'RANLIB = $(TARGET)-ranlib'; \
- echo 'TOOLCHAIN = unix'; \
- echo 'XB ='; \
- echo 'XE ='; \
- echo 'XS ='; \
- echo '# NB: The next two lines have a space after them.'; \
- echo 'MKLIB = $(TARGET)-ar rcs '; \
- echo 'MKDLL = $(TARGET)-ocamlmklib -o '; \
- echo 'LIBDIR = $(PREFIX)/$(TARGET)/lib/ocaml'; \
- echo 'DLLDIR = $(PREFIX)/$(TARGET)/lib/ocaml/stublibs'; \
- echo 'INSTALLDIR = $(PREFIX)/$(TARGET)/lib/ocaml/lablGL'; \
- echo '#TOGLDIR=Togl'; \
- echo '#COPTS = $RPM_OPT_FLAGS'; \
- echo 'OCAMLDLL ='; \
- echo 'LIBRARIAN = $(TARGET)-ocamlmklib'; \
+ (echo 'CAMLC = $(TARGET)-ocamlc'; \
+ echo 'CAMLOPT = $(TARGET)-ocamlopt'; \
+ echo 'BINDIR = $(PREFIX)/$(TARGET)/bin'; \
+ echo '#XINCLUDES = -I$(PREFIX)/$(TARGET)/X11R6/include'; \
+ echo '#XLIBS = -lXext -lXmu -lX11'; \
+ echo '#TKINCLUDES = -I(PREFIX)/$(TARGET)/include'; \
+ echo 'GLINCLUDES = -DHAS_GLEXT_H -DGL_GLEXT_PROTOTYPES -DGLU_VERSION_1_3'; \
+ echo 'GLLIBS = -lglu32 -lopengl32'; \
+ echo 'GLUTLIBS = $(shell $(PREFIX)/bin/$(TARGET)-pkg-config --libs glut)'; \
+ echo 'RANLIB = $(TARGET)-ranlib'; \
+ echo 'TOOLCHAIN = unix'; \
+ echo 'XB ='; \
+ echo 'XE ='; \
+ echo 'XS ='; \
+ echo '# NB: The next two lines have a space after them.'; \
+ echo 'MKLIB = $(TARGET)-ar rcs '; \
+ echo 'MKDLL = $(TARGET)-ocamlmklib -o '; \
+ echo 'LIBDIR = $(PREFIX)/$(TARGET)/lib/ocaml'; \
+ echo 'DLLDIR = $(PREFIX)/$(TARGET)/lib/ocaml/stublibs'; \
+ echo 'INSTALLDIR = $(PREFIX)/$(TARGET)/lib/ocaml/lablGL'; \
+ echo '#TOGLDIR=Togl'; \
+ echo '#COPTS = $RPM_OPT_FLAGS'; \
+ echo 'OCAMLDLL ='; \
+ echo 'LIBRARIAN = $(TARGET)-ocamlmklib'; \
echo 'VAR2DEF=$(TARGET)-ocamlrun $$(SRCDIR)/var2def'; \
echo 'VAR2SWITCH=$(TARGET)-ocamlrun $$(SRCDIR)/var2switch') \
- > $(1)/Makefile.config
+ > $(1)/Makefile.config
cd '$(1)' && sed -i 's/ocamlc/$(TARGET)-ocamlc/g' src/Makefile
cd '$(1)' && sed -i 's/camlp4o/$(TARGET)-camlp4o/g' src/Makefile
- $(MAKE) -C '$(1)' -j '$(JOBS)' lib libopt install
- (echo 'version="$($(PKG)_VERSION)"'; \
- echo 'directory="+lablGL"'; \
+ $(MAKE) -C '$(1)' -j '$(JOBS)' lib libopt install
+ (echo 'version="$($(PKG)_VERSION)"'; \
+ echo 'directory="+lablGL"'; \
echo 'archive(byte) = "lablgl.cma"'; \
- echo 'archive(native) = "lablgl.cmxa"') \
- > $(PREFIX)/$(TARGET)/lib/ocaml/lablGL/META
+ echo 'archive(native) = "lablgl.cmxa"') \
+ > $(PREFIX)/$(TARGET)/lib/ocaml/lablGL/META
endef