From ce7d7fd0f0a40368d9dddcbf972063f6ff4e04b9 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Wed, 26 Sep 2012 21:42:20 +0400 Subject: Example: GMP 5 --- examples/gmp/Makefile | 28 ++++++++++++++++++++++++++++ examples/gmp/gmp.p5m | 30 ++++++++++++++++++++++++++++++ examples/gmp/gmpxx.p5m | 20 ++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 examples/gmp/Makefile create mode 100644 examples/gmp/gmp.p5m create mode 100644 examples/gmp/gmpxx.p5m diff --git a/examples/gmp/Makefile b/examples/gmp/Makefile new file mode 100644 index 0000000..3539793 --- /dev/null +++ b/examples/gmp/Makefile @@ -0,0 +1,28 @@ +include /usr/share/cibs/rules/ips.mk +include /usr/share/cibs/rules/archive.mk +include /usr/share/cibs/rules/autotools.mk +include /usr/share/cibs/rules/32.mk +include /usr/share/cibs/rules/64.mk + +summary := GNU library for arbitrary precision arithmetic +license := LGPLv3 +license-file := COPYING.LIB + +build-depends += \ + pkg:/developer/macro/gnu-m4 + +configure-options += --enable-cxx + +# http://gmplib.org/manual/ABI-and-ISA.html +configure-options += ABI=$(bits) + +name := gmp +home := http://www.gnu.org/software/$(name)/ +version := 5.0.5 +archive := $(name)-$(version).tar.bz2 +download := http://ftp.gnu.org/gnu/$(name)/$(archive) +checksum := \ + md5:041487d25e9c230b0c42b106361055fe \ + sha1:12a662456033e21aed3e318aef4177f4000afe3b \ + sha256:1f588aaccc41bb9aed946f9fe38521c26d8b290d003c5df807f65690f2aadec9 \ + size:2052144 diff --git a/examples/gmp/gmp.p5m b/examples/gmp/gmp.p5m new file mode 100644 index 0000000..5af61cc --- /dev/null +++ b/examples/gmp/gmp.p5m @@ -0,0 +1,30 @@ +set name=pkg.fmri value=pkg:/library/gmp@$(ips_version) +set name=pkg.summary value="$(summary)" +set name=info.upstream-url value="$(home)" +set name=info.source_url value="$(download)" + +license $(license-file) license=$(license) + +dir path=usr +dir path=usr/include +dir path=usr/lib +dir path=usr/lib/$(MACH64) +dir path=usr/share +dir path=usr/share/info +file path=usr/include/gmp.h +file path=usr/lib/$(MACH64)/libgmp.so.10.0.5 +file path=usr/lib/libgmp.so.10.0.5 +file path=usr/share/info/gmp.info +file path=usr/share/info/gmp.info-1 +file path=usr/share/info/gmp.info-2 +link path=usr/lib/$(MACH64)/libgmp.so target=libgmp.so.10.0.5 +link path=usr/lib/$(MACH64)/libgmp.so.10 target=libgmp.so.10.0.5 +link path=usr/lib/libgmp.so target=libgmp.so.10.0.5 +link path=usr/lib/libgmp.so.10 target=libgmp.so.10.0.5 + +# GMP 5.0 is upwardly source and binary compatible with 4.x, +# and 3.x versions, except for applications that use +# the semi-documented mpn_bdivmod function. +link path=usr/lib/$(MACH64)/libgmp.so.3 target=libgmp.so.10 +link path=usr/lib/libgmp.so.3 target=libgmp.so.10 + diff --git a/examples/gmp/gmpxx.p5m b/examples/gmp/gmpxx.p5m new file mode 100644 index 0000000..1785c90 --- /dev/null +++ b/examples/gmp/gmpxx.p5m @@ -0,0 +1,20 @@ +set name=pkg.fmri value=pkg:/library/gmpxx@$(ips_version) +set name=pkg.summary value="$(summary), C++ library" +set name=info.upstream-url value="$(home)" +set name=info.source_url value="$(download)" + +license $(license-file) license=$(license) + +depend fmri=pkg:/library/gmp@$(ips_version) type=incorporate + +dir path=usr +dir path=usr/include +dir path=usr/lib +dir path=usr/lib/$(MACH64) +file path=usr/include/gmpxx.h +file path=usr/lib/$(MACH64)/libgmpxx.so.4.2.5 +file path=usr/lib/libgmpxx.so.4.2.5 +link path=usr/lib/$(MACH64)/libgmpxx.so target=libgmpxx.so.4.2.5 +link path=usr/lib/$(MACH64)/libgmpxx.so.4 target=libgmpxx.so.4.2.5 +link path=usr/lib/libgmpxx.so target=libgmpxx.so.4.2.5 +link path=usr/lib/libgmpxx.so.4 target=libgmpxx.so.4.2.5 -- cgit v1.2.3