[csw-devel] SF.net SVN: gar:[13208] csw/mgar/pkg/libffi/trunk/Makefile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Feb 6 01:41:24 CET 2011


Revision: 13208
          http://gar.svn.sourceforge.net/gar/?rev=13208&view=rev
Author:   wahwah
Date:     2011-02-06 00:41:24 +0000 (Sun, 06 Feb 2011)

Log Message:
-----------
libffi: Update to 3.0.9

Also:
- Removes a conflict with CSWgcc3javart (libffi.so)
- Moves libffi.so.5 to a specific package
- Adds a patch which allows to compile _ctypes in Python

Modified Paths:
--------------
    csw/mgar/pkg/libffi/trunk/Makefile

Property Changed:
----------------
    csw/mgar/pkg/libffi/trunk/Makefile

Modified: csw/mgar/pkg/libffi/trunk/Makefile
===================================================================
--- csw/mgar/pkg/libffi/trunk/Makefile	2011-02-05 19:40:44 UTC (rev 13207)
+++ csw/mgar/pkg/libffi/trunk/Makefile	2011-02-06 00:41:24 UTC (rev 13208)
@@ -1,3 +1,5 @@
+# $Id$
+
 NAME = libffi
 VERSION = 3.0.9
 CATEGORIES = lib
@@ -26,20 +28,33 @@
 # originally for icc, but at least get the stuff to compile
 PATCHFILES += ffi64.c.patch
 
-PACKAGES = CSWlibffi CSWlibffidevel
+PACKAGES += CSWlibffi
 CATALOGNAME_CSWlibffi = libffi
-CATALOGNAME_CSWlibffidevel = libffi_devel
-SPKG_DESC_CSWlibffi = $(DESCRIPTION)
-SPKG_DESC_CSWlibffidevel = $(DESCRIPTION) - developer package
+SPKG_DESC_CSWlibffi = Empty transitional package
+ARCHALL_CSWlibffi = 1
+# Backward compatibility ensured via a dependency
+RUNTIME_DEP_PKGS_CSWlibffi += CSWlibffi5
+CHECKPKG_OVERRIDES_CSWlibffi += surplus-dependency|CSWlibffi5
 
-PKGFILES_CSWlibffidevel += $(PKGFILES_DEVEL)
-PKGFILES_CSWlibffidevel += $(libdir)/.*/include/.*
+PACKAGES += CSWlibffi-dev
+CATALOGNAME_CSWlibffi-dev = libffi_dev
+SPKG_DESC_CSWlibffi-dev = $(DESCRIPTION) - developer package
+RUNTIME_DEP_PKGS_CSWlibffi-dev += CSWlibffi5
+PKGFILES_CSWlibffi-dev += $(PKGFILES_DEVEL)
+PKGFILES_CSWlibffi-dev += $(libdir)/(.*/)?ffi/libffi\.so
+PKGFILES_CSWlibffi-dev += $(libdir)/.*/include/.*
+PKGFILES_CSWlibffi-dev += $(datadir)/.*
 
-LICENSE = LICENSE
+# An empty stub to let checkpkg know about the rename
+PACKAGES += CSWlibffidevel
+SPKG_DESC_CSWlibffidevel = A stub package, do not release
+PKGFILES_CSWlibffidevel = NOFILES
 
-RUNTIME_DEP_PKGS_CSWlibffidevel += CSWlibffi
+PACKAGES += CSWlibffi5
+SPKG_DESC_CSWlibffi5 = $(DESCRIPTION) - libffi.so.5
+PKGFILES_CSWlibffi5 += .*/libffi\.so\.5.*
 
-CHECKPKG_OVERRIDES_CSWlibffidevel += surplus-dependency|CSWlibffi
+LICENSE = LICENSE
 
 UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz
 
@@ -67,3 +82,9 @@
 		aclocal; \
 		automake)
 	$(MAKECOOKIE)
+
+post-install-modulated:
+	rm $(DESTDIR)$(libdir)/libffi.so
+	ginstall -m 755 -d $(DESTDIR)$(libdir)/ffi
+	ln -s ../libffi.so.5.0.10 $(DESTDIR)$(libdir)/ffi/libffi.so
+	@$(MAKECOOKIE)


Property changes on: csw/mgar/pkg/libffi/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id


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