provide gfortran shared library
adjust gcc4 module to provide fortran language and corresponding compiler and dependencies "go for it" espie@
This commit is contained in:
parent
67e405b3eb
commit
6af2b4eb5f
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.39 2009/10/10 22:48:29 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.40 2009/10/15 18:02:33 steven Exp $
|
||||
|
||||
ONLY_FOR_ARCHS = alpha i386 m68k sparc sparc64 powerpc vax amd64
|
||||
#BROKEN=adjust for types changes
|
||||
@ -12,8 +12,7 @@ ADASTRAP = adastrap-i386-$V-${BOOTSTRAP_GEN}.tgz
|
||||
PKGNAME-main = gcc-${FULL_PKGVERSION}p3
|
||||
PKGNAME-c++ = g++-${FULL_PKGVERSION}p5
|
||||
PKGNAME-estdc = libstdc++-${FULL_PKGVERSION}p3
|
||||
PKGNAME-g77 = g77-${FULL_PKGVERSION}p0
|
||||
PKGNAME-f95 = g95-${FULL_PKGVERSION}p2
|
||||
PKGNAME-f95 = g95-${FULL_PKGVERSION}p3
|
||||
PKGNAME-java = gcj-${FULL_PKGVERSION}p3
|
||||
PKGNAME-objc = gobjc-${FULL_PKGVERSION}p2
|
||||
PKGNAME-ada = gnat-${FULL_PKGVERSION}p1
|
||||
|
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: gcc4.port.mk,v 1.4 2009/06/17 00:47:06 kurt Exp $
|
||||
# $OpenBSD: gcc4.port.mk,v 1.5 2009/10/15 18:02:33 steven Exp $
|
||||
|
||||
MODGCC4_ARCHES?=
|
||||
MODGCC4_LANGS?=
|
||||
# Supported languages for now
|
||||
_MODGCC4CC= cc
|
||||
_MODGCC4CXX= c++
|
||||
_MODGCC4G77= g77
|
||||
_MODGCC4FORTRAN=fortran
|
||||
_MODGCC4JAVA= java
|
||||
|
||||
.if ${MODGCC4_LANGS:L} != ${_MODGCC4JAVA}
|
||||
@ -29,10 +29,10 @@ LIB_DEPENDS+= estdc++.>=7:libstdc++->=4.2,<4.3:lang/gcc/4.2,-estdc
|
||||
MODGCC4_post-patch+= ln -s ${LOCALBASE}/bin/e${_MODGCC4CXX} ${WRKDIR}/bin/g++;
|
||||
MODGCC4_post-patch+= ln -s ${LOCALBASE}/bin/e${_MODGCC4CXX} ${WRKDIR}/bin/${_MODGCC4CXX};
|
||||
. endif
|
||||
. if !empty(_MODGCC4G77:L:M${_j})
|
||||
BUILD_DEPENDS+= ::lang/gcc/4.2,-g77
|
||||
MODGCC4_post-patch+= ln -s ${LOCALBASE}/bin/e${_MODGCC4G77} ${WRKDIR}/bin/f77;
|
||||
MODGCC4_post-patch+= ln -s ${LOCALBASE}/bin/e${_MODGCC4G77} ${WRKDIR}/bin/${_MODGCC4G77};
|
||||
. if !empty(_MODGCC4FORTRAN:L:M${_j})
|
||||
BUILD_DEPENDS+= ::lang/gcc/4.2,-f95
|
||||
LIB_DEPENDS+= gfortran.>=2:g95->=4.2,<4.3:lang/gcc/4.2,-f95
|
||||
MODGCC4_post-patch+= ln -s ${LOCALBASE}/bin/eg${_MODGCC4FORTRAN} ${WRKDIR}/bin/g${_MODGCC4FORTRAN};
|
||||
. endif
|
||||
. if !empty(_MODGCC4JAVA:L:M${_j})
|
||||
BUILD_DEPENDS+= ::lang/gcc/4.2,-java,java
|
||||
|
@ -1,6 +1,6 @@
|
||||
@comment $OpenBSD: PFRAG.PIC-f95,v 1.2 2009/04/21 21:02:34 kurt Exp $
|
||||
@comment $OpenBSD: PFRAG.PIC-f95,v 1.3 2009/10/15 18:02:33 steven Exp $
|
||||
lib/fpic/libgfortran.a
|
||||
lib/fpic/libgfortran.la
|
||||
@comment @lib lib/fpic/libgfortran.so.${LIBgfortran_VERSION}
|
||||
@lib lib/fpic/libgfortran.so.${LIBgfortran_VERSION}
|
||||
lib/gcc/${CONFIG}/${V}/fpic/libgfortranbegin.a
|
||||
lib/gcc/${CONFIG}/${V}/fpic/libgfortranbegin.la
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST-f95,v 1.7 2009/04/16 18:36:48 espie Exp $
|
||||
@comment $OpenBSD: PLIST-f95,v 1.8 2009/10/15 18:02:33 steven Exp $
|
||||
@bin bin/egfortran
|
||||
@bin bin/${CONFIG}-egfortran
|
||||
@info info/gfortran.info
|
||||
@ -8,5 +8,6 @@ lib/gcc/${CONFIG}/${V}/libgfortranbegin.la
|
||||
lib/libgfortran.a
|
||||
lib/libgfortran.la
|
||||
@bin libexec/gcc/${CONFIG}/${V}/f951
|
||||
%%SHARED%%
|
||||
%%PIC%%
|
||||
@man man/man1/egfortran.1
|
||||
|
Loading…
Reference in New Issue
Block a user