A stub code generator for ocaml and a dependency for a future FB ;)
Original 'Makefile' is very ugly and don't use '$prefix' variable so I
made a patch for add prefix support.
Can you have a look at it?
Thanks
Elentir
>From 60596176f8909258809fc9da2d4018a479c7abab Mon Sep 17 00:00:00 2001
From: Elentir <[email protected]>
Date: Sun, 18 Jan 2009 22:54:03 +0100
Subject: [PATCH] camlidl-1.05-1-i686
* new package
---
source/devel-extra/camlidl/FrugalBuild | 25 ++++++++++++++++
source/devel-extra/camlidl/camlidl.patch | 47 ++++++++++++++++++++++++++++++
2 files changed, 72 insertions(+), 0 deletions(-)
create mode 100644 source/devel-extra/camlidl/FrugalBuild
create mode 100644 source/devel-extra/camlidl/camlidl.patch
diff --git a/source/devel-extra/camlidl/FrugalBuild b/source/devel-extra/camlidl/FrugalBuild
new file mode 100644
index 0000000..b5b717e
--- /dev/null
+++ b/source/devel-extra/camlidl/FrugalBuild
@@ -0,0 +1,25 @@
+# Compiling Time: 0.01 SBU
+# Maintainer: -
+# Contributor: Elentir <[email protected]>
+
+pkgname=camlidl
+pkgver=1.05
+pkgrel=1
+pkgdesc="CamlIDL is a stub code generator and COM binding for Objective Caml"
+url="http://caml.inria.fr/camlidl/"
+source=("http://caml.inria.fr/distrib/bazar-ocaml/$pkgname-$pkgver.tar.gz" camlidl.patch)
+depends=('ocaml')
+groups=('devel-extra')
+archs=('i686')
+up2date="Flasttar http://caml.inria.fr/distrib/bazar-ocaml/"
+sha1sums=('2a0d5ba70fea8c1de1c5387f8b2058357b2177df' \
+ 'f7da38f83f6c77a1ac01d324aab169cdde224c68')
+
+build() {
+ Fpatchall
+ mv config/Makefile.unix config/Makefile || Fdie
+ Fmake
+ Fmkdir /usr/bin
+ Fmkdir /usr/lib/caml
+ Fmakeinstall
+}
diff --git a/source/devel-extra/camlidl/camlidl.patch b/source/devel-extra/camlidl/camlidl.patch
new file mode 100644
index 0000000..d6d3b33
--- /dev/null
+++ b/source/devel-extra/camlidl/camlidl.patch
@@ -0,0 +1,47 @@
+--- config/Makefile.unix 2002-04-22 13:50:46.000000000 +0200
++++ config/Makefile.unix 2009-01-18 16:26:48.000000000 +0100
+@@ -31,10 +31,13 @@
+ #RANLIB=:
+
+ # Location of the Objective Caml library in your installation
+-OCAMLLIB=/usr/local/lib/ocaml
++OCAMLLIB=/usr/lib/ocaml
++
++# Where to install library
++OCAMLLIBDIR= $(prefix)/lib
+
+ # Where to install the binaries
+-BINDIR=/usr/local/bin
++BINDIR=$(prefix)/bin
+
+ # The Objective Caml compilers (the defaults below should be OK)
+ OCAMLC=ocamlc -g
+
+--- lib/Makefile 2002-04-22 13:50:47.000000000 +0200
++++ lib/Makefile 2009-01-18 16:27:28.000000000 +0100
+@@ -29,8 +29,8 @@
+ $(OCAMLOPT) -a -o $(NATIVELIB) $(NATIVEOBJS)
+
+ install:
+- cp $(INTERFACES) $(BYTELIB) $(NATIVELIB) $(NATIVELIB:.cmxa=.$(LIBEXT)) $(OCAMLLIB)
+- cd $(OCAMLLIB); $(RANLIB) $(NATIVELIB:.cmxa=.$(LIBEXT))
++ cp $(INTERFACES) $(BYTELIB) $(NATIVELIB) $(NATIVELIB:.cmxa=.$(LIBEXT)) $(OCAMLLIBDIR)
++ cd $(OCAMLLIBDIR); $(RANLIB) $(NATIVELIB:.cmxa=.$(LIBEXT))
+
+ .SUFFIXES: .mli .ml .cmi .cmo .cmx
+
+--- runtime/Makefile.unix 2000-08-19 13:05:00.000000000 +0200
++++ runtime/Makefile.unix 2009-01-18 16:28:12.000000000 +0100
+@@ -22,9 +22,9 @@
+ $(RANLIB) $@
+
+ install:
+- cp camlidlruntime.h $(OCAMLLIB)/caml/camlidlruntime.h
+- cp libcamlidl.a $(OCAMLLIB)/libcamlidl.a
+- cd $(OCAMLLIB); $(RANLIB) libcamlidl.a
++ cp camlidlruntime.h $(OCAMLLIBDIR)/caml/camlidlruntime.h
++ cp libcamlidl.a $(OCAMLLIBDIR)/libcamlidl.a
++ cd $(OCAMLLIBDIR); $(RANLIB) libcamlidl.a
+
+ clean:
+ rm -f *.a *.o
--
1.6.1
_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel