mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
e244b8bccc
${MACHINE_ARCH}--freebsd${OSREL} is now passed to CONFIGURE_ARGS if GNU_CONFIGURE is defined. Take the target out of CONFIGURE_ARGS of some ports that added it explicitly; define it as ${MACHINE_ARCH}--freebsd if the port doesn't like the ${OSREL} part; define it as something else (such as ${MACHINE_ARCH}--freebsdelf if the port requires that; define it as an empty string if the port doesn't like it at all. The last might be a sign that a GNU_CONFIGURE port actually doesn't use GNU's version of configure at all; but I don't have time to go look at them all, we'll fix them as time goes on. At least we've got much fewer "-unknown-"s in the tree as the result. :)
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: GNU libstdc++
|
|
# Version required: 2.8.1.1
|
|
# Date created: 03 Mar 1998
|
|
# Whom: David O'Brien <obrien@NUXI.com>
|
|
#
|
|
# $Id: Makefile,v 1.15 1999/02/09 18:59:11 obrien Exp $
|
|
#
|
|
|
|
DISTNAME= libstdc++-2.8.1.1
|
|
PKGNAME= glibstdc++-2.8.1.1
|
|
CATEGORIES= lang
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
MASTER_SITE_SUBDIR= libstdc++
|
|
|
|
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
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
CC= gcc28
|
|
CXX= g++28
|
|
.if ${PORTOBJFORMAT} == "elf"
|
|
GNUHOST= i386-unknown-freebsd${OSREL}
|
|
.else
|
|
GNUHOST= i386-unknown-freebsdaout${OSREL}
|
|
.endif
|
|
GCC28DIR= lib/gcc-lib/${GNUHOST}/2.8.1
|
|
CONFIGURE_ARGS= --host=${GNUHOST}
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_TARGET= # empty
|
|
USE_GMAKE= yes
|
|
PLIST_SUB= GCC28SUBDIR=${GCC28DIR} GNUHOST=${GNUHOST}
|
|
|
|
pre-install:
|
|
@# allow a boched ``make install'' to be re-tried
|
|
@${RM} -rf ${PREFIX}/include/g++
|
|
@${MKDIR} ${PREFIX}/include/g++
|
|
|
|
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 \
|
|
${PREFIX}/${GCC28DIR}/include/g++
|
|
|
|
.include <bsd.port.post.mk>
|