libf2c from gcc 3.3.5 from main source tree

This commit is contained in:
espie 2010-05-24 22:42:08 +00:00
parent 932579455a
commit 172fdacecc
7 changed files with 103 additions and 0 deletions

43
devel/libf2c/Makefile Normal file
View File

@ -0,0 +1,43 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/05/24 22:42:08 espie Exp $
V = 3.3.5
CONFIG = ${MACHINE_ARCH}-unknown-openbsd${OSREV}
SUBST_VARS += CONFIG V
PKGNAME = libf2c-$V
DISTFILES = libf2c-openbsd.tgz
MASTER_SITES = http://spacehopper.org/mirrors/
COMMENT = GNU fortran 77 libraries
CATEGORIES = devel math
PERMIT_DISTFILES_CDROM = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_PACKAGE_FTP = Yes
SHARED_LIBS= g2c 8.1
WRKDIST = ${WRKDIR}/libf2c
MAKE_FILE = ${WRKDIST}/Makefile.bsd-wrapper
do-configure:
cd ${WRKDIST} && ${MAKE} -f ${MAKE_FILE} obj
cd ${WRKDIST} && ${MAKE} -f ${MAKE_FILE} depend
MAKE_FLAGS = MANDIR=${TRUEPREFIX}/man/cat \
INSTALL_LIBGCC= LIBGCC= \
COMPILERS=f771 \
USE_COLLECT2= \
LANGUAGES=f77 \
LIBDIR=${TRUEPREFIX}/lib
post-install:
cd ${WRKBUILD}/obj && ${INSTALL_DATA} g2c.h ${PREFIX}/include
${INSTALL_DATA_DIR} ${PREFIX}/lib/gcc-lib/${CONFIG}/$V
.for i in libfrtbegin.a libfrtbegin_pic.a libfrtbegin_p.a libg2c.a \
libg2c_p.a libg2c_pic.a libg2c.so.*
if test -e ${TRUEPREFIX}/lib/$i; then \
ln -sf ${TRUEPREFIX}/lib/$i ${PREFIX}/lib/gcc-lib/${CONFIG}/$V; \
fi
.endfor
.include <bsd.port.mk>

5
devel/libf2c/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (libf2c-openbsd.tgz) = WB/zmt75z+f9V96TXAwX2g==
RMD160 (libf2c-openbsd.tgz) = TqKm1xWplCkejMrnShAEZ9tJok4=
SHA1 (libf2c-openbsd.tgz) = ajMKRxzXRVQHIIVJXes/aue10eY=
SHA256 (libf2c-openbsd.tgz) = 8fG2aHae+95SD5Q+ZuedUcghj1sHR/LVcldxVpO2GzQ=
SIZE (libf2c-openbsd.tgz) = 345570

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-configure,v 1.1.1.1 2010/05/24 22:42:08 espie Exp $
--- configure.orig Sat May 22 20:19:27 2010
+++ configure Sat May 22 20:19:47 2010
@@ -1553,7 +1553,7 @@ else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- libf2c_cv_has_g77_builtin_types=no
+ libf2c_cv_has_g77_builtin_types=yes
fi
rm -f conftest*
fi

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-g2c_hin,v 1.1.1.1 2010/05/24 22:42:08 espie Exp $
--- g2c.hin.orig Sat May 22 20:07:20 2010
+++ g2c.hin Sun May 23 10:21:51 2010
@@ -16,6 +16,17 @@
#ifndef F2C_INCLUDE
#define F2C_INCLUDE
+#ifdef __LP64__
+typedef int __g77_integer;
+typedef unsigned int __g77_uinteger;
+typedef long __g77_longint;
+typedef unsigned long __g77_ulongint;
+#else
+typedef long __g77_integer;
+typedef unsigned long __g77_uinteger;
+typedef long long __g77_longint;
+typedef unsigned long long __g77_ulongint;
+#endif
/* F2C_INTEGER will normally be `int' but would be `long' on 16-bit systems */
/* we assume short, float are OK */
typedef __g77_integer integer;

1
devel/libf2c/pkg/DESCR Normal file
View File

@ -0,0 +1 @@
libraries for the g77 compiler

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/05/24 22:42:08 espie Exp $
@lib lib/gcc-lib/${CONFIG}/${V}/libg2c.so.${LIBg2c_VERSION}
@lib lib/libg2c.so.${LIBg2c_VERSION}

18
devel/libf2c/pkg/PLIST Normal file
View File

@ -0,0 +1,18 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/05/24 22:42:08 espie Exp $
%%SHARED%%
include/g2c.h
lib/gcc-lib/
lib/gcc-lib/${CONFIG}/
lib/gcc-lib/${CONFIG}/${V}/
lib/gcc-lib/${CONFIG}/${V}/libfrtbegin.a
lib/gcc-lib/${CONFIG}/${V}/libfrtbegin_p.a
lib/gcc-lib/${CONFIG}/${V}/libfrtbegin_pic.a
lib/gcc-lib/${CONFIG}/${V}/libg2c.a
lib/gcc-lib/${CONFIG}/${V}/libg2c_p.a
lib/gcc-lib/${CONFIG}/${V}/libg2c_pic.a
lib/libfrtbegin.a
lib/libfrtbegin_p.a
lib/libfrtbegin_pic.a
lib/libg2c.a
lib/libg2c_p.a
lib/libg2c_pic.a