diff options
author | wennmach <wennmach@pkgsrc.org> | 2006-11-21 13:44:14 +0000 |
---|---|---|
committer | wennmach <wennmach@pkgsrc.org> | 2006-11-21 13:44:14 +0000 |
commit | 7fd37797b84e32e373b2a31890aa4cafe4570bb0 (patch) | |
tree | 0f5e4e0d7e9a3b71897e414c8dd5c7d8949c4795 | |
parent | 1aa61ce7d647d6ca70905cb706a4c2c4a4c0534a (diff) | |
download | pkgsrc-7fd37797b84e32e373b2a31890aa4cafe4570bb0.tar.gz |
Initial import of g95, a Fortran 95 compiler from g95.org.
G95 is a stable, production Fortran 95 compiler available for multiple
CPU architectures and operating systems. Innovations and optimizations
continue to be worked on. Parts of the F2003 standard have been
implemented in g95.
-rw-r--r-- | lang/g95/DESCR | 4 | ||||
-rw-r--r-- | lang/g95/Makefile | 46 | ||||
-rw-r--r-- | lang/g95/PLIST | 10 | ||||
-rw-r--r-- | lang/g95/distinfo | 10 | ||||
-rw-r--r-- | lang/g95/patches/patch-aa | 31 | ||||
-rw-r--r-- | lang/g95/patches/patch-ab | 34 |
6 files changed, 135 insertions, 0 deletions
diff --git a/lang/g95/DESCR b/lang/g95/DESCR new file mode 100644 index 00000000000..c7c5deb3861 --- /dev/null +++ b/lang/g95/DESCR @@ -0,0 +1,4 @@ +G95 is a stable, production Fortran 95 compiler available for multiple +CPU architectures and operating systems. Innovations and optimizations +continue to be worked on. Parts of the F2003 standard have been +implemented in g95. diff --git a/lang/g95/Makefile b/lang/g95/Makefile new file mode 100644 index 00000000000..9c046e8245e --- /dev/null +++ b/lang/g95/Makefile @@ -0,0 +1,46 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/11/21 13:44:14 wennmach Exp $ + +DISTNAME= g95_source +VERSION= 0.91 +PKGNAME= g95-${VERSION} +PKGREVISION= 1 +CATEGORIES= lang +EXTRACT_SUFX.g95_source= .tgz +DISTFILES= ${DISTNAME}${EXTRACT_SUFX.g95_source} +DISTFILES+= gcc-core-4.0.3.tar.gz +SITES.g95_source.tgz= http://ftp.g95.org/ +SITES.gcc-core-4.0.3.tar.gz= ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.0.3/ + +MAINTAINER= wennmach@NetBSD.org +HOMEPAGE= http://www.g95.org/ +COMMENT= Fortran 95 compiler from g95.org + +GNU_CONFIGURE= YES +USE_TOOLS+= gmake gzcat tar +WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} +PLIST_SUBST+= MACHINE_GNU_PLATFORM=${MACHINE_GNU_PLATFORM:Q} + +GCC_DIR= ${WRKDIR}/gcc-4.0.3 +GCC_G95_DIR= ${GCC_DIR}/g95 +GCC_CONFIGURE_SCRIPT= ../configure +GCC_CONFIGURE_ARGS= ${CONFIGURE_ARGS} +GCC_CONFIGURE_ARGS+= --enable-languages=c + +CONFIGURE_ARGS+= --with-gcc-dir=${GCC_DIR} + +post-extract: + ${MKDIR} ${GCC_G95_DIR} + (cd ${WRKSRC}; ${GZCAT} libf95.a-${VERSION}.tar.gz | ${TAR} xpf -) + +pre-configure: + (cd ${GCC_G95_DIR}; ${GCC_CONFIGURE_SCRIPT} ${GCC_CONFIGURE_ARGS} && ${GMAKE}) + +post-build: + (cd ${WRKSRC}/libf95.a-${VERSION}; ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} && ${GMAKE}) + +post-install: + (cd ${WRKSRC}/libf95.a-${VERSION}; ${GMAKE} install) + (cd ${PREFIX}/bin; ${LN} -sf ${MACHINE_GNU_PLATFORM:Q}-g95 g95) + (cd ${PREFIX}/bin; ${LN} -sf ${MACHINE_GNU_PLATFORM:Q}-g95 f95) + +.include "../../mk/bsd.pkg.mk" diff --git a/lang/g95/PLIST b/lang/g95/PLIST new file mode 100644 index 00000000000..238d0161213 --- /dev/null +++ b/lang/g95/PLIST @@ -0,0 +1,10 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/11/21 13:44:14 wennmach Exp $ +bin/g95 +bin/f95 +bin/${MACHINE_GNU_PLATFORM}-g95 +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/f951 +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/libgcc.a +lib/gcc-lib/${MACHINE_GNU_PLATFORM}/4.0.3/libf95.a +share/doc/g95/INSTALL +share/doc/g95/G95Manual.pdf +@dirrm share/doc/g95 diff --git a/lang/g95/distinfo b/lang/g95/distinfo new file mode 100644 index 00000000000..49df0868751 --- /dev/null +++ b/lang/g95/distinfo @@ -0,0 +1,10 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/11/21 13:44:14 wennmach Exp $ + +SHA1 (g95_source.tgz) = 89cc9246837b1709f41abc5cbc312538f598c1a0 +RMD160 (g95_source.tgz) = ac5bb3168fe7038966def09863951b059f71d48a +Size (g95_source.tgz) = 1314899 bytes +SHA1 (gcc-core-4.0.3.tar.gz) = 2694281fa05ae0e39cd871fcc52745e35a2dfefc +RMD160 (gcc-core-4.0.3.tar.gz) = fd960201a888537ad84e71b72b6b1170ad94eaa0 +Size (gcc-core-4.0.3.tar.gz) = 20137297 bytes +SHA1 (patch-aa) = 4e2c95a34b940025c47ad7e5b9d22bb522674ec8 +SHA1 (patch-ab) = 304c526fb94b000b05adf9ce7bbe7a073dc0c6fa diff --git a/lang/g95/patches/patch-aa b/lang/g95/patches/patch-aa new file mode 100644 index 00000000000..6a180d98431 --- /dev/null +++ b/lang/g95/patches/patch-aa @@ -0,0 +1,31 @@ +$NetBSD: patch-aa,v 1.1.1.1 2006/11/21 13:44:17 wennmach Exp $ + +Install documentation into the appropriate directory. + +--- configure.orig 2006-11-21 09:24:55.000000000 +0100 ++++ configure 2006-11-21 09:32:41.000000000 +0100 +@@ -308,7 +308,7 @@ + # include <unistd.h> + #endif" + +-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ALLOCA GCC_DIR DEST_LIBDIR PREFIX EXTRA_OPTS PARTS LDADD0 GCC_TRUE GCC_FALSE GCC41_TRUE GCC41_FALSE TARGET_SYSTEM_ROOT DEFAULT_TARGET_VERSION DEFAULT_TARGET_MACHINE G95_SPEC G95_CFLAGS COMMON_LDFLAGS G95_WORD LINK_SPEC STARTFILE_PREFIX_2 LIBOBJS LTLIBOBJS' ++ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ALLOCA GCC_DIR DEST_LIBDIR DEST_DOCDIR PREFIX EXTRA_OPTS PARTS LDADD0 GCC_TRUE GCC_FALSE GCC41_TRUE GCC41_FALSE TARGET_SYSTEM_ROOT DEFAULT_TARGET_VERSION DEFAULT_TARGET_MACHINE G95_SPEC G95_CFLAGS COMMON_LDFLAGS G95_WORD LINK_SPEC STARTFILE_PREFIX_2 LIBOBJS LTLIBOBJS' + ac_subst_files='' + + # Initialize some variables set by options. +@@ -3994,6 +3994,7 @@ + echo "${ECHO_T}$gcc_version" >&6 + + DEST_LIBDIR=$prefix/lib/gcc-lib/$host/$gcc_version ++ DEST_DOCDIR=$prefix/share/doc/g95 + SAVE_DIR=`pwd` + PREFIX=$prefix + +@@ -6356,6 +6357,7 @@ + s,@ALLOCA@,$ALLOCA,;t t + s,@GCC_DIR@,$GCC_DIR,;t t + s,@DEST_LIBDIR@,$DEST_LIBDIR,;t t ++s,@DEST_DOCDIR@,$DEST_DOCDIR,;t t + s,@PREFIX@,$PREFIX,;t t + s,@EXTRA_OPTS@,$EXTRA_OPTS,;t t + s,@PARTS@,$PARTS,;t t diff --git a/lang/g95/patches/patch-ab b/lang/g95/patches/patch-ab new file mode 100644 index 00000000000..0d96a540e11 --- /dev/null +++ b/lang/g95/patches/patch-ab @@ -0,0 +1,34 @@ +$NetBSD: patch-ab,v 1.1.1.1 2006/11/21 13:44:18 wennmach Exp $ + +Install documentation into the appropriate directory. + +--- Makefile.in.orig 2006-11-09 17:41:39.000000000 +0100 ++++ Makefile.in 2006-11-21 11:04:19.000000000 +0100 +@@ -57,6 +57,7 @@ + DEFS = @DEFS@ + DEPDIR = @DEPDIR@ + DEST_LIBDIR = @DEST_LIBDIR@ ++DEST_DOCDIR = @DEST_DOCDIR@ + ECHO_C = @ECHO_C@ + ECHO_N = @ECHO_N@ + ECHO_T = @ECHO_T@ +@@ -399,7 +400,7 @@ + binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) + install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) +- $(mkinstalldirs) $(DESTDIR)$(bindir) ++ $(mkinstalldirs) $(DESTDIR)$(bindir) @DEST_DOCDIR@ + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ +@@ -2760,8 +2761,8 @@ + ranlib @DEST_LIBDIR@/libgcc_eh.a ; \ + ranlib @DEST_LIBDIR@/libgcc.a ; \ + fi +- cp INSTALL @DEST_LIBDIR@/../../../.. +- cp G95Manual.pdf @DEST_LIBDIR@/../../../.. ++ $(INSTALL_DATA) INSTALL @DEST_DOCDIR@ ++ $(INSTALL_DATA) G95Manual.pdf @DEST_DOCDIR@ + if test -n "`ls @GCC_DIR@/g95/gcc/libgcc_s.*`" ; then \ + (cd @GCC_DIR@/g95/gcc; tar cf - libgcc_s.*) | \ + (cd @DEST_LIBDIR@; tar xf -) ; \ |