[csw-devel] SF.net SVN: gar:[10963] csw/mgar/pkg/netcdf/trunk
gadavis at users.sourceforge.net
gadavis at users.sourceforge.net
Tue Sep 14 20:04:28 CEST 2010
Revision: 10963
http://gar.svn.sourceforge.net/gar/?rev=10963&view=rev
Author: gadavis
Date: 2010-09-14 18:04:28 +0000 (Tue, 14 Sep 2010)
Log Message:
-----------
Merge in changes from branch gar-fortran
Modified Paths:
--------------
csw/mgar/pkg/netcdf/trunk/Makefile
Property Changed:
----------------
csw/mgar/pkg/netcdf/trunk/
Property changes on: csw/mgar/pkg/netcdf/trunk
___________________________________________________________________
Added: svn:mergeinfo
+ /csw/mgar/pkg/netcdf/branches/gar-fortran:10929-10962
Modified: csw/mgar/pkg/netcdf/trunk/Makefile
===================================================================
--- csw/mgar/pkg/netcdf/trunk/Makefile 2010-09-14 15:59:47 UTC (rev 10962)
+++ csw/mgar/pkg/netcdf/trunk/Makefile 2010-09-14 18:04:28 UTC (rev 10963)
@@ -2,169 +2,23 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-## This file contains comments to guide you through various GAR settings.
-## Please remove unnecessary comments before committing your code to the code
-## repository. The comments to remove are marked with double hashes.
-## If you want to remove them all in-place, use:
-## gsed -i -e '/^##/d' Makefile
-##
-## For more information about GAR variables, please see:
-## https://sourceforge.net/apps/trac/gar/wiki/GAR%20Variable%20Reference
-##
GARNAME = netcdf
GARVERSION = 4.1.1
-##
-## The category that your software fits in. This is not a descriptive field, but
-## influences the build process. Depending on the CATEGORIES setting, different
-## Makefiles are included from gar/categories/ in your trunk directory, which
-## adjust the build settings for the respective category.
-##
-## Possible settings are:
-## apps, cpan, devel, gnome, java, kde, lang, lib, meta, net, python, server,
-## utils, x11, xfce, xorg, xtra
CATEGORIES = lib
-##
-## A one-line description of the package, which will appear in the pkginfo.
DESCRIPTION = machine-independent data formats for array-oriented scientific data
-##
-## A longer description of the package. This is only for descriptive purposes
-## inside the Makefile and is not used elsewhere.
-define BLURB
- NetCDF (network Common Data Form) is a set of software libraries and
- machine-independent data formats that support the creation, access,
- and sharing of array-oriented scientific data.
-endef
-##
-## Upstream URL that should show up in the VENDOR field as well as on
-## http://opencsw.org/packages/<packagename>.
SPKG_SOURCEURL = http://www.unidata.ucar.edu/software/netcdf/
-##
-## Whitespace-separated list of URLs to download the source package from.
-## There are presets: $(SF_MIRRORS), $(GNU_MIRRORS) and $(GOOGLE_MIRROR).
MASTER_SITES = http://www.unidata.ucar.edu/downloads/netcdf/ftp/
-##
-## SF_PROJ is required if you set $(MASTER_SITES) to $(SF_MIRRORS) and the
-## Sourceforge project name differs from $(GARNAME). Specifies the Sourceforge
-## project name of the software you wish to download.
-## SF_PROJ =
-##
-## A list of space separated patch filenames from files/ that are to be applied
-## to the extracted software before the ./configure stage. Patches need to be
-## included in the DISTFILES variable as well.
-## PATCHFILES =
-##
-## Whitespace-separated list of files which comprise this build. mGAR will look
-## for the files in the $(FILEDIR) (trunk/files) directory and on the
-## $(MASTER_SITES).
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
-##
-## We define upstream file regex so we can be notifed of new upstream software release
UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
-##
-## Catalog name is the name to be used with pkg{-get,util} -i <pkgname>.
-## It is different from the system package name, which by convention is CSWpkgname.
-## CATALOGNAME =
-##
-## Set to 1 to mark the package as architecture-independent.
-## ARCHALL = 0
-##
-## A list of files / patterns that should be excluded from the package. Amends
-## the default list of excluded filenames $(MERGE_EXCLUDE_DEFAULT), which
-## contains things like libtool .la files and files with a leading ~.
-## EXTRA_MERGE_EXCLUDE_FILES =
-##
-## A list of space separated package names that should be marked as
-## incompatible with the current package. This will go into the depend file.
-## When a user has one of the incompatible packages installed and installs
-## your package, he will be prompted that the incompatible package must be
-## removed. He will however not be prevented to install your package without
-## removing the conflicting package first.
-## INCOMPATIBLE_PKGS =
-##
-## The name of the license file that should be included in your package. Defaults
-## to COPYING. See http://sourceforge.net/apps/trac/gar/wiki/CopyRightfor details
-## on including and displaying licenses.
-## LICENSE =
-##
-## A list of space separated package names that should be produced from your
-## Makefile. This is used when a software has different components that can be
-## packaged and used individually (think runtime libraries, client tools, server
-## files, development headers). You don't need to set this when you just want to
-## produce one package.
-##
-## When you set this variable to include more than one package, you also need to
-## set PKGFILES_CSWpkgname for each package (except for the first one in your
-## $(PACKAGES) list) to define which files go into each package. The first
-## package from $(PACKAGES) one will hold all files that are not matched by
-## PKGFILES_ for other packages.
-## PACKAGES =
-##
-## If specified, GAR feeds the almost-final package prototype file to
-## $(PROTOTYPE_FILTER) and reads the final package prototype file from it.
-## $(PROTOTYPE_FILTER) is usually a sed/awk/perl one-liner, which was mostly used
-## to prepare the prototype file for use with cswclassutils (see
-## $(SPKG_CLASSES)). Now that there are convenience variables for cswclassutils,
-## you will rarely have to use this. A still valid use case would be to change
-## the file permissions of a file to be set-UID.
-## See http://wiki.opencsw.org/cswclassutils-package for common usage information
-## PROTOTYPE_FILTER =
-##
-## cswclassutils settings
-##
-## A list of action classes. Possible values are:
-## none cswpreserveconf cswcpsampleconf cswpycompile cswusergroup cswinitsmf
-## cswinetd cswetcservices
-## The class 'cswinitsmf' must be the last class listed. When you use cswclassutils,
-## you need to add CSWcswclassutils to RUNTIME_DEP_PKGS.
-## SPKG_CLASSES = none
-## Simplified settings for classes:
-## PRESERVECONF =
-## SAMPLECONF =
-## INITSMF =
-## USERGROUP =
-## ETCSERVICES = <file containing an entry for /etc/services>
-## INETDCONF = <file containing an inetd.conf formatted entry>
-## A list of runtime package dependencies in the form of CSWfoo.
-RUNTIME_DEP_PKGS = CSWcurlrt CSWhdf5rt
-##
-## A list of packages necessary to build this package
-BUILD_DEP_PKGS = $(RUNTIME_DEP_PKGS) CSWautoconf CSWautomake CSWtetex
-##
-## When using non-empty $(PACKAGES):
-## RUNTIME_DEP_PKGS_CSWpkgname =
-## SPKG_DESC_CSWpkgname =
-## PKGFILES_CSWpkgname =
-## CATALOGNAME_CSWpkgname =
-##
-## A list of space separated directories where objects should be stripped in
-## addition to the bin/ and sbin/ directories.
-## STRIP_DIRS =
-##
-## Define a custom target for the configure phase. When you set this, the target
-## that will be used instead of configure: target, is named
-## configure-$(CONFIGURE_SCRIPTS) and you will need to define it in your Makefile
-## after including gar/gar.include.mk. If you want to skip the configure phase
-## completely (for example when your software doesn't need to be compiled) assign
-## this variable an empty value. The procedure works for configure, build,
-## install and test steps.
-## CONFIGURE_SCRIPTS =
-## BUILD_SCRIPTS =
-## INSTALL_SCRIPTS =
-## TEST_SCRIPTS =
-##
-## Compilation settings
-##
-## The build directory.
-## WORKSRC = $(WORKDIR)/$(GARNAME)-$(GARVERSION)
-##
-## BUILD_ARGS is passed as an argument to gmake during the build phase. Use this
-## for example, if you need to override Makefile variables.
-##
+LICENSE = COPYRIGHT
+RUNTIME_DEP_PKGS = CSWcurlrt CSWhdf5rt CSWgcc3g77rt CSWzlib CSWgcc3corert \
+ CSWoldaprt CSWlibcares CSWlibidn CSWgcc3g++rt CSWosslrt
+
+BUILD_DEP_PKGS = $(RUNTIME_DEP_PKGS) CSWtetex CSWgcc3g77
## CFLAGS AND LDFLAGS are necessary due to problems with the fortran bindings when
## building 64-bit
-## BUILD_ARGS = CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
-##
-## Arguments passed to the ./configure script.
+BUILD_ARGS = CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" FFLAGS="$(FFLAGS)" FCFLAGS="$(FCFLAGS)"
+
CONFIGURE_ARGS = $(DIRPATHS) \
--enable-netcdf-4 \
--enable-dap \
@@ -178,35 +32,22 @@
--with-hdf5=/opt/csw \
--with-zlib=/opt/csw
-##
+## 64 bit build fails in fortran binding tests
## Disabling 64 bit builds until we can tweak GAR to handle Fortran & ARCH
BUILD64 = 0
-#CONFIGURE_ENV = CC=suncc CXX=sunCC F77=sunf77 FFLAGS="-dalign" FC=sunf95 \
-# FCFLAGS="-dalign"
-CONFIGURE_ENV = CC=cc CXX=CC F77=f77 FC=f95
-EXTRA_CFLAGS = -g
-EXTRA_CPPFLAGS = -DsunFortran -D__FUNCTION__=__func__ -D_FILE_OFFSET_BITS=64
-EXTRA_CXXFLAGS = -g
-## EXTRA_LDFLAGS =
-## EXTRA_INC =
-## EXTRA_LIB =
-## GARFLAVOR =
-## INSTALL_ARGS =
-OPT_FLAGS_SOS = -fast
-## OPT_FLAGS_GCC = -O2 -pipe
-##
-## The compiler to use. Defaults to SOS11, can be also: SOS12, GCC3, GCC4.
-## GARCOMPILER = SOS11
-##
-# Remove the following rules and uncomment the
-# include before building.
-#all: .DEFAULT
-#.DEFAULT:
-# @true
-include gar/category.mk
+## Needed for "Large file support" in NetCDF
+EXTRA_CPPFLAGS = -D_FILE_OFFSET_BITS=64
-pre-configure-modulated:
- @(cd $(WORKSRC); autoreconf)
- @$(MAKECOOKIE)
+## Can't use Sun Studio with shared libs:
+## * non-redistributable libs in /opt/SUNWspro prevent Sun Studio
+## Can't use GCC4
+## * C++ is way broken for 32-bit Sparc
+## During the 32-bit sparc build, the C++ bindings were barfing with an error
+## about undefined symbol __sync_fetch_and_add_4 in libnetcdf_c++
+## http://www.mail-archive.com/maintainers@lists.opencsw.org/msg06095.html
+## * Fortran to C bindings fail test on 64-bit sparc
+GARCOMPILER = GCC3
+DEBUG_PACKAGING = 1
+include gar/category.mk
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