aboutsummaryrefslogtreecommitdiff
path: root/lang/g95
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2007-01-30 01:03:17 +0000
committerMaho Nakata <maho@FreeBSD.org>2007-01-30 01:03:17 +0000
commit08d3d751e67d13654e73ab3fa79272a476926477 (patch)
tree77fc40028c9ce0c0c2edc73be0242c71febaf674 /lang/g95
parent25af89c5eff53b04f4e05a64ef170a9d65934274 (diff)
downloadports-08d3d751e67d13654e73ab3fa79272a476926477.tar.gz
ports-08d3d751e67d13654e73ab3fa79272a476926477.zip
Notes
Diffstat (limited to 'lang/g95')
-rw-r--r--lang/g95/Makefile71
-rw-r--r--lang/g95/distinfo6
-rw-r--r--lang/g95/files/patch-Makefile.in54
-rw-r--r--lang/g95/files/patch-configure27
-rw-r--r--lang/g95/pkg-descr8
-rw-r--r--lang/g95/pkg-plist22
6 files changed, 188 insertions, 0 deletions
diff --git a/lang/g95/Makefile b/lang/g95/Makefile
new file mode 100644
index 000000000000..a35d09fc090d
--- /dev/null
+++ b/lang/g95/Makefile
@@ -0,0 +1,71 @@
+# Ports collection makefile for: g95
+# Date created: 2007/01/29
+# Whom: SATO Hiroki, <hrs@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= g95
+PORTVERSION= ${G95VERSION}.${SNAPDATE}
+CATEGORIES= lang
+MASTER_SITES= http://ftp.g95.org/v0.9/:g95 \
+ ${MASTER_SITE_LOCAL}:g95 \
+ ${MASTER_SITE_GCC:S/$/:gcc/}
+MASTER_SITE_SUBDIR= releases/gcc-${GCC_VER}/:gcc \
+ maho/g95/:g95
+DISTFILES= ${PORTNAME}_source.tgz:g95 \
+ gcc-core-${GCC_VER}${EXTRACT_SUFX}:gcc
+DIST_SUBDIR= g95/${SNAPDATE}
+
+MAINTAINER= maho@FreeBSD.org
+COMMENT= Fortran 95 compiler from g95.org
+
+SNAPDATE= 20070129
+G95VERSION= 0.91
+WRKSRC= ${WRKDIR}/${PORTNAME}-${G95VERSION}
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-gcc-dir=${GCC_DIR}
+.if !defined(NOPORTDOCS)
+CONFIGURE_ENV= DOCSDIR=${DOCSDIR}
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
+.else
+CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
+.endif
+PLIST_SUB= TRIPLET=${CONFIGURE_TARGET:Q} \
+ GCC_VER=${GCC_VER}
+
+GCC_VER= 4.0.3
+GCC_DIR= ${WRKDIR}/gcc-${GCC_VER}
+GCC_G95_DIR= ${WRKDIR}/gcc-${GCC_VER}/g95
+GCC_CONFIGURE_SCRIPT= ../configure
+GCC_CONFIGURE_ARGS= ${CONFIGURE_ARGS} --enable-languages=c
+
+post-extract:
+ ${MKDIR} ${GCC_G95_DIR}
+ cd ${WRKSRC} && ${TAR} xzf libf95.a-${G95VERSION}.tar.gz
+
+pre-configure:
+ cd ${GCC_G95_DIR} && \
+ ${GCC_CONFIGURE_SCRIPT} ${GCC_CONFIGURE_ARGS} && \
+ ${MAKE_ENV} ${GMAKE}
+
+post-build:
+ cd ${WRKSRC}/libf95.a-${G95VERSION} && \
+ ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} &&\
+ ${MAKE_ENV} ${GMAKE}
+
+post-install:
+ cd ${WRKSRC}/libf95.a-${G95VERSION} && ${GMAKE} ${INSTALL_TARGET}
+ cd ${PREFIX}/bin && ${LN} -s -f ${CONFIGURE_TARGET:Q}-g95 g95
+ cd ${PREFIX}/bin && ${LN} -s -f ${CONFIGURE_TARGET:Q}-g95 f95
+ cd ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET:Q}/${GCC_VER} && \
+ ${RM} -f ./${CONFIGURE_TARGET:Q} && \
+ ${LN} -s -f . ./${CONFIGURE_TARGET:Q}
+
+.include <bsd.port.post.mk>
diff --git a/lang/g95/distinfo b/lang/g95/distinfo
new file mode 100644
index 000000000000..b5fd831660eb
--- /dev/null
+++ b/lang/g95/distinfo
@@ -0,0 +1,6 @@
+MD5 (g95/20070129/g95_source.tgz) = 94a7d1d00563be8e89aa165175e77256
+SHA256 (g95/20070129/g95_source.tgz) = b63ccbe9ae4c8f40f897c253792de7f440e47fdb14290e906b6c962b6c0c8e74
+SIZE (g95/20070129/g95_source.tgz) = 1319217
+MD5 (g95/20070129/gcc-core-4.0.3.tar.gz) = 090c507c9807e70b8404799a6fc570eb
+SHA256 (g95/20070129/gcc-core-4.0.3.tar.gz) = 5f320b2d271af1084ec298cbde2256c5e7e7f7019adc2c52d2ff8593ac64a65f
+SIZE (g95/20070129/gcc-core-4.0.3.tar.gz) = 20137297
diff --git a/lang/g95/files/patch-Makefile.in b/lang/g95/files/patch-Makefile.in
new file mode 100644
index 000000000000..0db04d2f116e
--- /dev/null
+++ b/lang/g95/files/patch-Makefile.in
@@ -0,0 +1,54 @@
+--- Makefile.in.orig Wed Jul 12 02:20:14 2006
++++ Makefile.in Sat Jan 20 20:42:53 2007
+@@ -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@
+@@ -167,16 +168,16 @@
+
+
+ @GCC_TRUE@g95_CFLAGS = -DTARGET_NAME=\"@host@\" \
+-@GCC_TRUE@ -DSTANDARD_EXEC_PREFIX=\"@DEST_LIBDIR@\" \
++@GCC_TRUE@ -DSTANDARD_EXEC_PREFIX=\"@DEST_LIBDIR@/\" \
+ @GCC_TRUE@ -DTARGET_SYSTEM_ROOT=\"@TARGET_SYSTEM_ROOT@\" \
+ @GCC_TRUE@ -DDEFAULT_TARGET_VERSION=\"@DEFAULT_TARGET_VERSION@\" \
+ @GCC_TRUE@ -DDEFAULT_TARGET_MACHINE=\"@DEFAULT_TARGET_MACHINE@\" \
+ @GCC_TRUE@ -DTOOLDIR_BASE_PREFIX=\"\" \
+ @GCC_TRUE@ -DSTANDARD_STARTFILE_PREFIX=\"\" \
+ @GCC_TRUE@ -DSTANDARD_STARTFILE_PREFIX_2=\"@STARTFILE_PREFIX_2@\" \
+-@GCC_TRUE@ -DSTANDARD_EXEC_PREFIX=\"@DEST_LIBDIR@\" \
+-@GCC_TRUE@ -DSTANDARD_BINDIR_PREFIX=\"@PREFIX@/bin\" \
+-@GCC_TRUE@ -DSTANDARD_LIBEXEC_PREFIX=\"@DEST_LIBDIR@\" \
++@GCC_TRUE@ -DSTANDARD_EXEC_PREFIX=\"@DEST_LIBDIR@/\" \
++@GCC_TRUE@ -DSTANDARD_BINDIR_PREFIX=\"@PREFIX@/bin/\" \
++@GCC_TRUE@ -DSTANDARD_LIBEXEC_PREFIX=\"@DEST_LIBDIR@/\" \
+ @GCC_TRUE@ -DG95_SPEC=\"@G95_SPEC@\" \
+ @GCC_TRUE@ @G95_CFLAGS@
+
+@@ -395,6 +396,9 @@
+ install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ $(mkinstalldirs) $(DESTDIR)$(bindir)
++ if test "X@DEST_DOCDIR@" != "X"; then \
++ $(mkinstalldirs) @DEST_DOCDIR@ ; \
++ fi
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ if test -f $$p \
+@@ -2659,8 +2663,10 @@
+ ranlib @DEST_LIBDIR@/libgcc_eh.a ; \
+ ranlib @DEST_LIBDIR@/libgcc.a ; \
+ fi
+- cp INSTALL @DEST_LIBDIR@/../../../..
+- cp G95Manual.pdf @DEST_LIBDIR@/../../../..
++ if test "X@DEST_DOCDIR@" != "X"; then \
++ $(INSTALL_DATA) INSTALL @DEST_DOCDIR@ ; \
++ $(INSTALL_DATA) G95Manual.pdf @DEST_DOCDIR@ ; \
++ fi
+ 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 -) ; \
diff --git a/lang/g95/files/patch-configure b/lang/g95/files/patch-configure
new file mode 100644
index 000000000000..8025a146a65f
--- /dev/null
+++ b/lang/g95/files/patch-configure
@@ -0,0 +1,27 @@
+--- configure.orig Tue Jan 9 16:28:10 2007
++++ configure Tue Jan 30 09:38:36 2007
+@@ -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_DOCDIR 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_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=${DOCSDIR}
+ SAVE_DIR=`pwd`
+ PREFIX=$prefix
+
+@@ -6354,6 +6355,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/pkg-descr b/lang/g95/pkg-descr
new file mode 100644
index 000000000000..105134a54d31
--- /dev/null
+++ b/lang/g95/pkg-descr
@@ -0,0 +1,8 @@
+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. Note that g95 and gfortran are different compiler
+http://gcc.gnu.org/wiki/TheOtherGCCBasedFortranCompiler
+.
+
+WWW: http://www.g95.org/
diff --git a/lang/g95/pkg-plist b/lang/g95/pkg-plist
new file mode 100644
index 000000000000..00fb38b20c47
--- /dev/null
+++ b/lang/g95/pkg-plist
@@ -0,0 +1,22 @@
+@comment $FreeBSD$
+bin/g95
+bin/f95
+bin/%%TRIPLET%%-g95
+lib/gcc-lib/%%TRIPLET%%/%%GCC_VER%%/cc1
+lib/gcc-lib/%%TRIPLET%%/%%GCC_VER%%/crtbegin.o
+lib/gcc-lib/%%TRIPLET%%/%%GCC_VER%%/crtbeginS.o
+lib/gcc-lib/%%TRIPLET%%/%%GCC_VER%%/crtend.o
+lib/gcc-lib/%%TRIPLET%%/%%GCC_VER%%/crtendS.o
+lib/gcc-lib/%%TRIPLET%%/%%GCC_VER%%/f951
+lib/gcc-lib/%%TRIPLET%%/%%GCC_VER%%/libgcc.a
+lib/gcc-lib/%%TRIPLET%%/%%GCC_VER%%/libgcc_eh.a
+lib/gcc-lib/%%TRIPLET%%/%%GCC_VER%%/libgcc_s.so
+lib/gcc-lib/%%TRIPLET%%/%%GCC_VER%%/libgcc_s.so.1
+lib/gcc-lib/%%TRIPLET%%/%%GCC_VER%%/libf95.a
+lib/gcc-lib/%%TRIPLET%%/%%GCC_VER%%/%%TRIPLET%%
+@dirrm lib/gcc-lib/%%TRIPLET%%/%%GCC_VER%%
+@dirrmtry lib/gcc-lib/%%TRIPLET%%
+@dirrmtry lib/gcc-lib
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/G95Manual.pdf
+%%PORTDOCS%%@dirrm %%DOCSDIR%%