[csw-devel] SF.net SVN: gar:[15476] csw/mgar/pkg/gcc4/branches/compat-test/Makefile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Sep 1 00:28:28 CEST 2011


Revision: 15476
          http://gar.svn.sourceforge.net/gar/?rev=15476&view=rev
Author:   wahwah
Date:     2011-08-31 22:28:28 +0000 (Wed, 31 Aug 2011)
Log Message:
-----------
pkg/gcc4/branches/compat-test: a plan to add symlinks

Modified Paths:
--------------
    csw/mgar/pkg/gcc4/branches/compat-test/Makefile

Modified: csw/mgar/pkg/gcc4/branches/compat-test/Makefile
===================================================================
--- csw/mgar/pkg/gcc4/branches/compat-test/Makefile	2011-08-31 21:52:48 UTC (rev 15475)
+++ csw/mgar/pkg/gcc4/branches/compat-test/Makefile	2011-08-31 22:28:28 UTC (rev 15476)
@@ -5,6 +5,9 @@
 # amd64 compilation fails
 # potentially related bug:
 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39048
+#
+# This Makefile is only for testing purposes.  The idea is to write parts and
+# test parts of the Makefile without the weight of the full build.
 
 NAME      = gcc
 VERSION   = 4.6.1
@@ -19,12 +22,9 @@
 	for these languages (libstdc++, libgcj,...).
 endef
 
-DISTFILES    = $(DISTNAME).tar.bz2
-MASTER_SITES = $(GNU_MIRROR)/$(NAME)-$(VERSION)/
+DISTFILES    =
+MASTER_SITES =
 
-PACKAGING_PLATFORMS = solaris9-sparc solaris9-i386
-PACKAGING_PLATFORMS += solaris10-sparc solaris10-i386
-
 # GIT init takes a long time, disable for now, reenable if build works
 NOGITPATCH ?= 1
 
@@ -32,7 +32,7 @@
 VENDOR_URL = http://gcc.gnu.org
 
 ## Copyright File
-LICENSE = COPYING3
+# LICENSE = COPYING3
 
 # prefix = $(BUILD_PREFIX)/gcc4
 # libdir_install = $(BUILD_PREFIX)/lib
@@ -308,7 +308,8 @@
 PACKAGES += CSWgcc4g++
 CATALOGNAME_CSWgcc4g++ = gcc4g++
 SPKG_DESC_CSWgcc4g++ = GNU C++ Compiler
-PKGFILES_CSWgcc4g++  = $(bindir)/[cg]\+\+$(PROGRAM_SUFFIX)
+PKGFILES_CSWgcc4g++  = $(foreach F,$(CXX_BINARIES),$(bindir)/$(F)$(PROGRAM_SUFFIX))
+PKGFILES_CSWgcc4g++ += $(foreach F,$(CXX_BINARIES),$(prefix)/gcc4/bin/$(F))
 PKGFILES_CSWgcc4g++ += $(bindir)/\w+-\w+-solaris[\d\.]+-[cg]\+\+$(PROGRAM_SUFFIX)
 PKGFILES_CSWgcc4g++ += $(libexecdir)/.*cc1plus
 PKGFILES_CSWgcc4g++ += $(libdir)/.*libstdc.*a
@@ -338,7 +339,8 @@
 RUNTIME_DEP_PKGS_CSWgcc4gfortran += CSWlibgfortran3
 RUNTIME_DEP_PKGS_CSWgcc4gfortran += CSWlibmpc2
 RUNTIME_DEP_PKGS_CSWgcc4gfortran += CSWlibz1
-PKGFILES_CSWgcc4gfortran  = $(bindir)/gfortran$(PROGRAM_SUFFIX)
+PKGFILES_CSWgcc4gfortran += $(foreach F,$(FORTRAN_BINARIES),$(bindir)/$(F)$(PROGRAM_SUFFIX))
+PKGFILES_CSWgcc4gfortran += $(foreach F,$(FORTRAN_BINARIES),$(prefix)/gcc4/bin/$(F))
 PKGFILES_CSWgcc4gfortran += $(bindir)/\w+-\w+-solaris[\d\.]+-gfortran$(PROGRAM_SUFFIX)
 PKGFILES_CSWgcc4gfortran += $(libdir)/.*libgfortran.*a
 PKGFILES_CSWgcc4gfortran += $(libexecdir)/.*f951
@@ -363,25 +365,8 @@
 RUNTIME_DEP_PKGS_CSWgcc4java += CSWlibmpc2
 RUNTIME_DEP_PKGS_CSWgcc4java += CSWlibz1
 
-PKGFILES_CSWgcc4java  = $(bindir)/.*gcj.*$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*jv-scan$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*jv-convert$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*jcf-dump$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*grmi.*$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*grepjar$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*gjnih$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*gij$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*fastjar$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*gjar.*$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*gjavah$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*gorbd$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*addr2name.awk$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*gappletviewer$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*gkeytool$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*gserialver$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*gtnameserv$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*gnative2ascii$(PROGRAM_SUFFIX)
-PKGFILES_CSWgcc4java += $(bindir)/.*gc-analyze$(PROGRAM_SUFFIX)
+PKGFILES_CSWgcc4java  = $(foreach F,$(JAVA_BINARIES),$(bindir)/$(F)$(PROGRAM_SUFFIX))
+PKGFILES_CSWgcc4java += $(foreach F,$(JAVA_BINARIES),$(prefix)/gcc4/bin/$(F))
 PKGFILES_CSWgcc4java += $(mandir)/.*/gcj.*
 PKGFILES_CSWgcc4java += $(mandir)/.*/gij.*
 PKGFILES_CSWgcc4java += $(mandir)/.*/jv.*
@@ -476,8 +461,36 @@
 
 PACKAGES += $(PACKAGES_$(GARCH))
 
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS =
+INSTALL_SCRIPTS = custom
+
+CORE_BINARIES = cpp gcc gcov
+CXX_BINARIES = g\+\+ c\+\+
+FORTRAN_BINARIES = gfortran
+JAVA_BINARIES  = gappletviewer gc-analyze gcj-dbtool gcjh gjar gjarsigner gjavah
+JAVA_BINARIES += gkeytool gnative2ascii gorbd grmic grmid grmregistry
+JAVA_BINARIES += gserialver gtnameserv jcf-dump jv-convert rebuild-gcj-db
+
 include files/scripts.mk
 include gar/category.mk
 
+install-custom:
+	ginstall -d -m 755 $(DESTDIR)$(bindir)
+	for b in $(CORE_BINARIES) $(CXX_BINARIES) \
+		$(FORTRAN_BINARIES) $(JAVA_BINARIES); do \
+		touch $(DESTDIR)$(bindir)/$${b}$(PROGRAM_SUFFIX); \
+	done
+	@$(MAKECOOKIE)
+
+post-install-modulated:
+	ginstall -d -m 755 $(DESTDIR)/opt/csw/gcc4/bin
+	for b in $(CORE_BINARIES) $(CXX_BINARIES) \
+		$(FORTRAN_BINARIES) $(JAVA_BINARIES); do \
+		gln -v -s ../../bin/$${b}$(PROGRAM_SUFFIX) \
+		$(DESTDIR)$(prefix)/gcc4/bin/$${b}; \
+	done
+	@$(MAKECOOKIE)
+
 # We need GNU find as find
 PATH := /opt/csw/gnu:$(PATH)

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