summaryrefslogtreecommitdiff
path: root/lang/glibstdc++28/Makefile
blob: 23f4a1cb6f4af044ef98d8c0d04ee4b3760d6b58 (plain) (blame)
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
# ex:ts=8
# Ports collection makefile for:	GNU libstdc++
# Version required:			2.8.0
# Date created:				03 Mar 1998
# Whom:					David O'Brien <obrien@NUXI.com>
#
# $Id: Makefile,v 1.5 1998/08/13 17:49:15 obrien Exp $
#

DISTNAME=	libstdc++-2.8.1.1
PKGNAME=	glibstdc++-2.8.1.1
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_GNU}

MAINTAINER=	obrien@FreeBSD.org

BUILD_DEPENDS=	gcc28:${PORTSDIR}/lang/gcc28 \
		g++28:${PORTSDIR}/lang/gcc28
RUN_DEPENDS=	gcc28:${PORTSDIR}/lang/gcc28 \
		g++28:${PORTSDIR}/lang/gcc28

CC=		gcc28
CXX=		g++28
GCC28DIR=	lib/gcc-lib/i386-unknown-freebsd${OSREL}/2.8.1
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
PLIST=          ${WRKDIR}/PLIST.fixedup

pre-install:
	${SED} -e 's:%%GNUOSREL%%:${OSREL}:' \
		-e 's:%%GCC28SUBDIR%%:${GCC28DIR}:' \
		${PKGDIR}/PLIST > ${PLIST}

post-install:
	${RM} -rf ${PREFIX}/${GCC28DIR}/include/g++
	${MV} ${PREFIX}/include/g++  \
		${PREFIX}/${GCC28DIR}/include
	${MV} ${PREFIX}/lib/libiberty.a  \
		${PREFIX}/${GCC28DIR}
	${MV} ${PREFIX}/lib/libstdc++.a  \
		${PREFIX}/${GCC28DIR}
	${INSTALL_DATA} ${FILESDIR}/osfcn.h  \
		${GCC28SUBDIR}/include/g++

.include <bsd.port.mk>