summaryrefslogtreecommitdiff
path: root/lang/gcc48-fortran/Makefile
blob: 543abe56cd7b4771e65afa5da4341e713f529550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# $NetBSD: Makefile,v 1.1 2014/04/22 20:46:41 ryoon Exp $

PKGNAME=	${GCC_PKGNAME}-fortran-${GCC48_DIST_VERSION}

COMMENT=	Fortran 95/2003/2008 compiler from the GNU Compiler Collection (GCC) 4.8

DISTINFO_FILE=		${.CURDIR}/../../lang/gcc48/distinfo
PATCHDIR=		${.CURDIR}/../../lang/gcc48/patches

DEPENDS+=		 ${GCC_PKGNAME}-libs-${GCC48_DIST_VERSION}{,nb[0-9]*}:../../lang/gcc48-libs

# c,c++ are specified by default.
LANGS+=			fortran

.include "../../lang/gcc48/options.mk"

.include "../../lang/gcc48/Makefile.common"

post-install:
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/bin/*c++*
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/bin/*cpp*
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/bin/*gcc*
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/bin/*g++
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/bin/gcov
	rm -rf ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/include
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/libexec/gcc/${MACHINE_GNU_PLATFORM}/${GCC48_DIST_VERSION}/cc1*
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/libexec/gcc/${MACHINE_GNU_PLATFORM}/${GCC48_DIST_VERSION}/collect2
	rm -rf ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/lib/gcc/${MACHINE_GNU_PLATFORM}/${GCC48_DIST_VERSION}/install-tools
	rm -rf ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/libexec/gcc/${MACHINE_GNU_PLATFORM}/${GCC48_DIST_VERSION}/install-tools
	rm -rf ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/lib/gcc/${MACHINE_GNU_PLATFORM}/${GCC48_DIST_VERSION}/include-fixed
	rm -rf ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/lib/gcc/${MACHINE_GNU_PLATFORM}/${GCC48_DIST_VERSION}/include
	rm -rf ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/libexec/gcc/${MACHINE_GNU_PLATFORM}/${GCC48_DIST_VERSION}/plugin
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/lib/gcc/${MACHINE_GNU_PLATFORM}/${GCC48_DIST_VERSION}/libgc*
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/libexec/gcc/${MACHINE_GNU_PLATFORM}/${GCC48_DIST_VERSION}/*lto*
	rm -rf ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/lib/gcc/${MACHINE_GNU_PLATFORM}/${GCC48_DIST_VERSION}/plugin
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/lib/libatomic.*
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/lib/libgc*
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/lib/libgfortran.*a
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/lib/libgfortran.so*
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/lib/libgomp*
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/lib/libiberty*
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/lib/libitm*
	rm -f ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/lib/libs*
	rm -rf ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/info
	rm -rf ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/man
	rm -rf ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/share

	cd ${DESTDIR}${PREFIX}/${GCC_PKGNAME}/bin && \
		${LN} -sf gfortran f77 && \
		${LN} -sf gfortran g77 && \
		${LN} -sf gfortran g95