Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=7e4f78c02dd00de9c99147c9958b22997d5eef0e

commit 7e4f78c02dd00de9c99147c9958b22997d5eef0e
Author: Elentir <elen...@mailoo.org>
Date:   Thu Apr 22 22:46:48 2010 +0200

mlgmpidl-1.1-1-i686

* new package

diff --git a/source/lib-extra/mlgmpidl/FrugalBuild 
b/source/lib-extra/mlgmpidl/FrugalBuild
new file mode 100644
index 0000000..015984b
--- /dev/null
+++ b/source/lib-extra/mlgmpidl/FrugalBuild
@@ -0,0 +1,26 @@
+# Compiling Time: 0.11 SBU
+# Maintainer: Elentir <elen...@mailoo.org>
+
+pkgname=mlgmpidl
+pkgver=1.1
+rel_id=20228
+pkgrel=1
+pkgdesc="A package offering an interface to the GMP and MPFR libraries for 
OCaml"
+url="http://simgrid.gforge.inria.fr/";
+depends=('camlidl>=1.05-3' 'mpfr')
+groups=('lib-extra')
+archs=('i686' 'x86_64')
+_F_cd_path=$pkgname
+up2date="Flasttar http://gforge.inria.fr/frs/?group_id=860";
+source=("http://gforge.inria.fr/frs/download.php/$rel_id/$pkgname-$pkgver.tar.gz";
 \
+       add-destdir-to-makefile.patch)
+sha1sums=('ef26eaa215ccedbfc20c00614f702a06d3a70420' \
+          'cc4c0376f20d4456006a19c1bfd7d233b1e2676d')
+
+build() {
+       Fcd
+       mv Makefile.config.model Makefile.config || Fdie
+       Fsed "MLGMPIDL_PREFIX = " "MLGMPIDL_PREFIX = /usr" Makefile.config
+       Fbuild
+       Frm usr/bin
+}
diff --git a/source/lib-extra/mlgmpidl/add-destdir-to-makefile.patch 
b/source/lib-extra/mlgmpidl/add-destdir-to-makefile.patch
new file mode 100644
index 0000000..cc89641
--- /dev/null
+++ b/source/lib-extra/mlgmpidl/add-destdir-to-makefile.patch
@@ -0,0 +1,19 @@
+--- Makefile   2009-04-02 14:08:23.000000000 +0200
++++ Makefile   2010-04-14 22:31:16.283306486 +0200
+@@ -89,11 +89,11 @@
+       -ccopt "-L." bigarray.cma gmp.cma
+
+ install:
+-      mkdir -p $(PREFIX)/include $(PREFIX)/lib $(PREFIX)/bin
+-      cp -f $(MLLIB_TOINSTALL) $(MLLIB_TOINSTALLx) $(PREFIX)/lib
+-      cp -f $(CCINC_TOINSTALL) $(PREFIX)/include
+-      for i in $(CCLIB_TOINSTALL); do if test -f $$i; then cp -f $$i 
$(PREFIX)/lib; fi; done
+-      for i in $(CCBIN_TOINSTALL); do if test -f $$i; then cp -f $$i 
$(PREFIX)/bin; fi; done
++      mkdir -p $(DESTDIR)$(PREFIX)/include $(DESTDIR)$(PREFIX)/lib 
$(DESTDIR)$(PREFIX)/bin
++      install -m 644 $(MLLIB_TOINSTALL) $(MLLIB_TOINSTALLx) 
$(DESTDIR)$(PREFIX)/lib
++      install -m 644 $(CCINC_TOINSTALL) $(DESTDIR)$(PREFIX)/include
++      for i in $(CCLIB_TOINSTALL); do if test -f $$i; then install -m 644 $$i 
$(DESTDIR)$(PREFIX)/lib; fi; done
++      for i in $(CCBIN_TOINSTALL); do if test -f $$i; then install -m 644 $$i 
$(DESTDIR)$(PREFIX)/bin; fi; done
+
+ #---------------------------------------
+ # Misc rules
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to