[csw-devel] SF.net SVN: gar:[15282] csw/mgar/pkg/libmpfr/branches/libmpfr1
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Mon Aug 8 03:01:43 CEST 2011
Revision: 15282
http://gar.svn.sourceforge.net/gar/?rev=15282&view=rev
Author: wahwah
Date: 2011-08-08 01:01:43 +0000 (Mon, 08 Aug 2011)
Log Message:
-----------
pkg/libmpfr/branches/libmpfr1: Legacy version
Modified Paths:
--------------
csw/mgar/pkg/libmpfr/branches/libmpfr1/Makefile
csw/mgar/pkg/libmpfr/branches/libmpfr1/checksums
Modified: csw/mgar/pkg/libmpfr/branches/libmpfr1/Makefile
===================================================================
--- csw/mgar/pkg/libmpfr/branches/libmpfr1/Makefile 2011-08-07 20:48:06 UTC (rev 15281)
+++ csw/mgar/pkg/libmpfr/branches/libmpfr1/Makefile 2011-08-08 01:01:43 UTC (rev 15282)
@@ -5,54 +5,75 @@
CATEGORIES = lib
GARTYPE = v2
-DESCRIPTION = GNU Multiple Precision floating-point arithmetic library
+DESCRIPTION = Legacy MPFR version
define BLURB
The MPFR library is a C library for multiple-precision floating-point
computations with correct rounding.
endef
MASTER_SITES = http://www.mpfr.org/mpfr-$(VERSION)/
+
+# For the license file.
DISTFILES = $(NAME)-$(VERSION).tar.bz2
-PACKAGES = CSWlibmpfr
-CATALOGNAME_CSWlibmpfr = libmpfr
-SPKG_DESC_CSWlibmpfr = $(DESCRIPTION)
-SPKG_SOURCEURL_CSWlibmpfr = http://www.mpfr.org/
+VENDOR_URL = http://www.mpfr.org/
-RUNTIME_DEP_PKGS_CSWlibmpfr =
-#PATCHFILES = patches
-
BUILD64 = 1
STRIP_LIBTOOL = 1
CONFIGURE_ARGS = $(DIRPATHS)
-# It's necessary to include architecture-specific headers from gmp.
-EXTRA_INC += $(includedir)/$(ISA)
+PACKAGES = CSWlibmpfr
+CATALOGNAME_CSWlibmpfr = libmpfr
+PKGFILES_CSWlibmpfr += $(call baseisadirs,$(libdir),libmpfr\.so\.1(\.\d+)*)
+SPKG_DESC_CSWlibmpfr += $(DESCRIPTION), libmpfr.so.1
+RUNTIME_DEP_PKGS_CSWlibmpfr += CSWlibgmp
-# With the default -xO3, there are failing unit tests.
-OPT_FLAGS_SOS = -xO2
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS =
+TEST_SCRIPTS =
+INSTALL_SCRIPTS =
-EXTRA_INC += $(includedir)/$(ISA)
+# For merging purposes
+EXTRA_BUILD_ISAS_sparc = sparcv8plus sparcv8plus+vis
+EXTRA_BUILD_ISAS_i386 = pentium
-PACKAGES =
-PACKAGES += CSWlibmpfr1
-CATALOGNAME_CSWlibmpfr1 = libmpfr1
-PKGFILES_CSWlibmpfr1 += $(call baseisadirs,$(libdir),libmpfr\.so\.1(\.\d+)*)
-SPKG_DESC_CSWlibmpfr1 += $(DESCRIPTION), libmpfr.so.1
-# This could be a problem, because there are binaries already linking against
-# libmpfr.so.1 and libgmp.so.3 (not .so.10) at the same time.
-RUNTIME_DEP_PKGS_CSWlibmpfr1 += CSWlibgmp10
+# It's a legacy package, there's no gain in moving files to libmpfr1.
+CHECKPKG_OVERRIDES_CSWlibmpfr += shared-lib-pkgname-mismatch
-PACKAGES += CSWlibmpfr-dev
-SPKG_DESC_CSWlibmpfr-dev = MPFR development files
-RUNTIME_DEP_PKGS_CSWlibmpfr-dev += CSWlibmpfr1
+# It's a legacy library, we aren't recompiling it.
+CHECKPKG_OVERRIDES_CSWlibmpfr += bad-rpath-entry|/opt/csw/lib/sparcv8plus+vis|opt/csw/lib/sparcv8plus+vis/libmpfr.so.1.1.1
-# Obsoleting the CSWlibmpfr package
-OBSOLETED_BY_CSWlibmpfr-dev = CSWlibmpfr
-OBSOLETED_BY_CSWlibmpfr1 = CSWlibmpfr
+include gar/category.mk
-# It's only documentation.
-CHECKPKG_OVERRIDES_CSWlibmpfr-dev += file-with-bad-content|/usr/local|root/opt/csw/share/info/mpfr.info
+# Check the binary files into subversion.
-include gar/category.mk
+# A oneliner to extract the files. Make sure to run it on current10x too,
+# because current9x may not have the amd64 files.
+# oldlib=libmpfr.so.1.1.1
+# for i in $(isalist); do f=/opt/csw/lib/$i/$oldlib; \
+# if [ -r ${f} ]; then gcp -v $f \
+# ~/src/opencsw/pkg/libmpfr/branches/libmpfr1/files/$oldlib-$i; fi; done
+OLDLIB_FILE = libmpfr.so.1.1.1
+OLDLIB_SONAME = libmpfr.so.1
+
+post-merge:
+ ginstall -m 755 -d $(PKGROOT)$(libdir)
+ if [ $(GARCH) = i386 ]; then \
+ ginstall -m 755 $(FILEDIR)/$(OLDLIB_FILE)-i386 $(PKGROOT)$(libdir)/$(OLDLIB_FILE); \
+ gln -s $(OLDLIB_FILE) $(PKGROOT)$(libdir)/$(OLDLIB_SONAME); \
+ for arch in pentium amd64 ; do \
+ ginstall -m 755 -d $(PKGROOT)$(libdir)/$$arch; \
+ ginstall -m 755 $(FILEDIR)/$(OLDLIB_FILE)-$$arch $(PKGROOT)$(libdir)/$$arch/$(OLDLIB_FILE); \
+ gln -s $(OLDLIB_FILE) $(PKGROOT)$(libdir)/$$arch/$(OLDLIB_SONAME); \
+ done; \
+ elif [ $(GARCH) = sparc ]; then \
+ ginstall -m 755 $(FILEDIR)/$(OLDLIB_FILE)-sparc $(PKGROOT)$(libdir)/$(OLDLIB_FILE); \
+ gln -s $(OLDLIB_FILE) $(PKGROOT)$(libdir)/$(OLDLIB_SONAME); \
+ for arch in sparcv8 sparcv8plus sparcv8plus+vis sparcv9 ; do \
+ ginstall -m 755 -d $(PKGROOT)$(libdir)/$$arch; \
+ ginstall -m 755 $(FILEDIR)/$(OLDLIB_FILE)-$$arch $(PKGROOT)$(libdir)/$$arch/$(OLDLIB_FILE); \
+ gln -s $(OLDLIB_FILE) $(PKGROOT)$(libdir)/$$arch/$(OLDLIB_SONAME); \
+ done; \
+ fi
+ @$(MAKECOOKIE)
Modified: csw/mgar/pkg/libmpfr/branches/libmpfr1/checksums
===================================================================
--- csw/mgar/pkg/libmpfr/branches/libmpfr1/checksums 2011-08-07 20:48:06 UTC (rev 15281)
+++ csw/mgar/pkg/libmpfr/branches/libmpfr1/checksums 2011-08-08 01:01:43 UTC (rev 15282)
@@ -1 +1 @@
-bfbecb2eacb6d48432ead5cfc3f7390a mpfr-3.0.1.tar.bz2
+8352b619e04dcc73411a38b39dd855f6 mpfr-2.3.1.tar.bz2
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list