initial attempt at g77 2.95.3 port
not really tested completely, but necessary to un-brick old arches ports...
This commit is contained in:
parent
8efa5e84ed
commit
a12b97f54d
107
lang/g77-old/Makefile
Normal file
107
lang/g77-old/Makefile
Normal file
@ -0,0 +1,107 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/05/27 08:36:21 espie Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
. if ${COMPILER_VERSION:L:Mgcc4*}
|
||||
SYSV= 4.2.1
|
||||
. else
|
||||
SYSV= 2.95.3
|
||||
. endif
|
||||
|
||||
ONLY_FOR_ARCHS = ${GCC2_ARCHS}
|
||||
|
||||
V = 2.95.3
|
||||
PKGNAME = g77-$V
|
||||
DISTFILES = g77-openbsd-2.95.3.tgz \
|
||||
libiberty-includes-openbsd.tgz
|
||||
|
||||
CONFIG = ${MACHINE_ARCH}-unknown-openbsd${OSREV}
|
||||
SUBST_VARS += CONFIG V
|
||||
|
||||
COMMENT = GNU fortran 77 compiler
|
||||
CATEGORIES = lang math
|
||||
MASTER_SITES = http://spacehopper.org/mirrors/
|
||||
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
|
||||
WRKDIST = ${WRKDIR}/g77
|
||||
CONFIGURE_SCRIPT = ${WRKDIST}/gcc/configure
|
||||
|
||||
SEPARATE_BUILD = Yes
|
||||
LIBIBERTY_INCLUDES = ${WRKDIR}/libiberty/include
|
||||
|
||||
GNUCFLAGS = ${CFLAGS} ${COPTS} -DOPENBSD_NATIVE \
|
||||
-I${LIBIBERTY_INCLUDES}
|
||||
|
||||
VAXHOST_CFLAGS = -DIN_GCC -DOPENBSD_NATIVE -DHAVE_CONFIG_H -O0
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
MAKE_FLAGS = CFLAGS="${GNUCFLAGS}" \
|
||||
CC="${CC}" LDFLAGS="${LDSTATIC}" \
|
||||
DEMANGLER_PROG= \
|
||||
DEMANGLE_H= \
|
||||
LIBIBERTY_INCLUDES=${LIBIBERTY_INCLUDES} \
|
||||
LIBGCC2_INCLUDES=-I${LIBIBERTY_INCLUDES} \
|
||||
BUILD_LIBIBERTY=-liberty \
|
||||
LIBIBERTY=-liberty \
|
||||
HOST_LIBDEPS= \
|
||||
LIBDEPS= \
|
||||
build_infodir=. \
|
||||
INSTALL_LIBGCC= LIBGCC= \
|
||||
COMPILERS=f771 \
|
||||
USE_COLLECT2= \
|
||||
LANGUAGES=f77 \
|
||||
GCC_FOR_TARGET=gcc \
|
||||
LIBGCC1=
|
||||
|
||||
FAKE_FLAGS= prefix=${WRKINST}${TRUEPREFIX} \
|
||||
infodir=${WRKINST}${TRUEPREFIX}/info \
|
||||
bindir=${WRKINST}${TRUEPREFIX}/bin \
|
||||
NO_TARGET_GCC=true
|
||||
|
||||
.if ${MACHINE_ARCH} == "vax"
|
||||
MAKE_FLAGS += HOST_CFLAGS="${VAXHOST_CFLAGS} -I${LIBIBERTY_INCLUDES}"
|
||||
.endif
|
||||
|
||||
CONFIGURE_ENV = INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \
|
||||
CPPFLAGS=-I${LIBIBERTY_INCLUDES}
|
||||
|
||||
CONFIGURE_ARGS = --with-gnu-as --with-gnu-ld \
|
||||
--with-local-prefix=${PREFIX} ${CF} \
|
||||
--with-gxx-include-dir=dummy \
|
||||
-enable-languages='f77' \
|
||||
--disable-cpp --disable-nls \
|
||||
--enable-__cxa_atexit
|
||||
|
||||
ALL_TARGET = all doc
|
||||
INSTALL_TARGET = install-common f77.install-info f77.install-normal
|
||||
|
||||
LIBDIR = ${PREFIX}/lib/gcc-lib/${CONFIG}/$V
|
||||
SYSDIR = /usr/lib/gcc-lib/${CONFIG}/${SYSV}
|
||||
|
||||
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "m68k"
|
||||
PKG_ARGS += -DPIC=1
|
||||
.else
|
||||
PKG_ARGS += -DPIC=0
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
cd ${WRKDIST}/gcc; rm assert.h; ln -sf /usr/include/assert.h
|
||||
post-install:
|
||||
ln -sf ${SYSDIR}/libgcc.a ${LIBDIR}/libgcc.a
|
||||
if [ -d ${LIBDIR}/fpic ]; then \
|
||||
ln -sf ${SYSDIR}/fpic/libgcc.a ${LIBDIR}/fpic/libgcc.a; \
|
||||
fi
|
||||
if [ -d ${LIBDIR}/fPIC ]; then \
|
||||
ln -sf ${SYSDIR}/fPIC/libgcc.a ${LIBDIR}/fPIC/libgcc.a; \
|
||||
fi
|
||||
ln -sf ${SYSDIR}/cpp0 ${LIBDIR}/cpp0
|
||||
mandoc ${WRKDIST}/gcc/f/g77.1 >${PREFIX}/man/cat1/g77.0
|
||||
cd ${PREFIX}/man/cat1 && ln -f g77.0 f77.0
|
||||
cd ${PREFIX}/bin && ln -f g77 f77
|
||||
|
||||
WANTLIB = c iberty
|
||||
|
||||
.include <bsd.port.mk>
|
10
lang/g77-old/distinfo
Normal file
10
lang/g77-old/distinfo
Normal file
@ -0,0 +1,10 @@
|
||||
MD5 (g77-openbsd-2.95.3.tgz) = ujAYhdBRbvzN/hahA6SnuQ==
|
||||
MD5 (libiberty-includes-openbsd.tgz) = WHqNyoI2toJt4z5iHIc23Q==
|
||||
RMD160 (g77-openbsd-2.95.3.tgz) = Mhq5B3sV98S4lNvrS7vUiNa6/QE=
|
||||
RMD160 (libiberty-includes-openbsd.tgz) = YSPA4sN5Dd8DZ9g3feIg5qum63s=
|
||||
SHA1 (g77-openbsd-2.95.3.tgz) = xPAOIfbIjkS8L74+oKH0BOvOb7w=
|
||||
SHA1 (libiberty-includes-openbsd.tgz) = /JjLnsZV7TTmMI0Nk9rTYrBxjAk=
|
||||
SHA256 (g77-openbsd-2.95.3.tgz) = Z920jDWAgGbTjsEO7FmOCM0WmFiGxm1cwxNfeAD8mwc=
|
||||
SHA256 (libiberty-includes-openbsd.tgz) = 0LLdT251NyRZWLGF1G99GU+8XFgDXGQo8KXHWkzbIVQ=
|
||||
SIZE (g77-openbsd-2.95.3.tgz) = 8210338
|
||||
SIZE (libiberty-includes-openbsd.tgz) = 69547
|
13
lang/g77-old/patches/patch-gcc_Makefile_in
Normal file
13
lang/g77-old/patches/patch-gcc_Makefile_in
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-gcc_Makefile_in,v 1.1.1.1 2010/05/27 08:36:21 espie Exp $
|
||||
--- gcc/Makefile.in.orig Tue May 25 11:08:35 2010
|
||||
+++ gcc/Makefile.in Tue May 25 11:08:42 2010
|
||||
@@ -2552,9 +2552,6 @@ install-common: native installdirs $(EXTRA_PARTS) lang
|
||||
$(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \
|
||||
chmod a-x $(libsubdir)/SYSCALLS.c.X; \
|
||||
fi
|
||||
- -rm -f $(libsubdir)/cpp0$(exeext)
|
||||
- $(INSTALL_PROGRAM) cpp0$(exeext) $(libsubdir)/cpp0$(exeext)
|
||||
-# Install gcov if it was compiled.
|
||||
-if [ -f gcov$(exeext) ]; \
|
||||
then \
|
||||
rm -f $(bindir)/gcov$(exeext); \
|
21
lang/g77-old/patches/patch-gcc_f_lang-specs_h
Normal file
21
lang/g77-old/patches/patch-gcc_f_lang-specs_h
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-gcc_f_lang-specs_h,v 1.1.1.1 2010/05/27 08:36:21 espie Exp $
|
||||
--- gcc/f/lang-specs.h.orig Tue May 25 10:28:17 2010
|
||||
+++ gcc/f/lang-specs.h Tue May 25 10:33:40 2010
|
||||
@@ -35,7 +35,7 @@ the Free Software Foundation, 59 Temple Place - Suite
|
||||
Sun f77, at least) so you test `__unix' rather than `unix'.
|
||||
-D_LANGUAGE_FORTRAN is used by some compilers like SGI and
|
||||
might as well be in there. */
|
||||
- {"cpp0 -lang-c %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
|
||||
+ {"cc1 -E -traditional-cpp %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %{$} %I\
|
||||
%{C:%{!E:%eGNU C does not support -C without using -E}}\
|
||||
%{M} %{MM} %{MD:-MD %b.d} %{MMD:-MMD %b.d} %{MG}\
|
||||
%{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2}\
|
||||
@@ -44,7 +44,7 @@ the Free Software Foundation, 59 Temple Place - Suite
|
||||
%c %{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} -traditional\
|
||||
%{ffast-math:-D__FAST_MATH__}\
|
||||
%{g*} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*} %{U*} %{i*} %Z\
|
||||
- %i %{!M:%{!MM:%{!E:%{!pipe:%g.i}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n",
|
||||
+ %i %{!M:%{!MM:%{!E:%{!pipe:-o %g.i}}}}%{E:%W{o*}}%{M:%W{o*}}%{MM:%W{o*}} |\n",
|
||||
"%{!M:%{!MM:%{!E:f771 %{!pipe:%g.i} %(f771) \
|
||||
%{!Q:-quiet} -dumpbase %b.F %{d*} %{m*} %{a*}\
|
||||
%{g*} %{O*} %{W*} %{w} %{pedantic*} \
|
1
lang/g77-old/pkg/DESCR
Normal file
1
lang/g77-old/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
gnu fortran 77 for 2.95.3
|
5
lang/g77-old/pkg/PFRAG.PIC
Normal file
5
lang/g77-old/pkg/PFRAG.PIC
Normal file
@ -0,0 +1,5 @@
|
||||
# $OpenBSD: PFRAG.PIC,v 1.1.1.1 2010/05/27 08:36:21 espie Exp $
|
||||
lib/gcc-lib/${CONFIG}/${V}/fpic/
|
||||
lib/gcc-lib/${CONFIG}/${V}/fpic/libgcc.a
|
||||
lib/gcc-lib/${CONFIG}/${V}/fPIC/
|
||||
lib/gcc-lib/${CONFIG}/${V}/fPIC/libgcc.a
|
14
lang/g77-old/pkg/PLIST
Normal file
14
lang/g77-old/pkg/PLIST
Normal file
@ -0,0 +1,14 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/05/27 08:36:21 espie Exp $
|
||||
@bin bin/f77
|
||||
@bin bin/g77
|
||||
@info info/g77.info
|
||||
lib/gcc-lib/
|
||||
lib/gcc-lib/${CONFIG}/
|
||||
lib/gcc-lib/${CONFIG}/${V}/
|
||||
lib/gcc-lib/${CONFIG}/${V}/cpp0
|
||||
@bin lib/gcc-lib/${CONFIG}/${V}/f771
|
||||
lib/gcc-lib/${CONFIG}/${V}/libgcc.a
|
||||
%%PIC%%
|
||||
lib/gcc-lib/${CONFIG}/${V}/specs
|
||||
@man man/cat1/f77.0
|
||||
@man man/cat1/g77.0
|
Loading…
Reference in New Issue
Block a user