openbsd-ports/devel/binutils/stable/Makefile

69 lines
1.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.8 2002/05/13 10:54:45 fgsch Exp $
2002-02-18 23:19:21 -05:00
COMMENT= "GNU development tools"
DISTNAME= binutils-2.11.2
CATEGORIES= devel
NEED_VERSION= 1.528
MASTER_SITES= ${MASTER_SITE_GNU:=binutils/}
2002-02-18 23:19:21 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MAINTAINER= Federico G. Schwindt <fgsch@openbsd.org>
HOMEPAGE= http://sources.redhat.com/
BUILD_DEPENDS= automake::devel/automake \
autoconf::devel/autoconf
CONFIGURE_STYLE= simple
CONFIGURE_ARGS= --with-prefix=${PREFIX} \
--disable-nls --disable-gdbtk --disable-commonbfdlib
# cross-tools
2002-04-25 18:37:10 -04:00
FLAVORS= alpha hppa i386 m68k m88k mips powerpc sparc \
sparc64 vax
2002-02-18 23:19:21 -05:00
FLAVOR?=
# XXX: special handling needed for powerpc arch's and bootstraping
.if !empty(FLAVOR:L) && ${FLAVOR:L} != ${MACHINE_ARCH}
CONFIGURE_ARGS+= --target=${FLAVOR:L}-unknown-openbsd${OSREV}
TARGET_ARCH= ${FLAVOR:L}
.else
TARGET_ARCH= ${MACHINE_ARCH}
2002-02-18 23:19:21 -05:00
.endif
TARGET_DIR= $${PREFIX}/${TARGET_ARCH}-unknown-openbsd${OSREV}
FILES= ar nm-new objdump ranlib size strings strip-new
2002-02-18 23:19:21 -05:00
post-patch:
@cd ${WRKSRC}/bfd && autoconf
@cd ${WRKSRC}/binutils && autoconf
2002-04-07 17:26:16 -04:00
@-cd ${WRKSRC}/gas && { automake; autoconf; }
2002-02-18 23:19:21 -05:00
@cd ${WRKSRC}/ld && automake
do-install:
${INSTALL_DATA_DIR} ${TARGET_DIR}/bin
${INSTALL_DATA_DIR} ${TARGET_DIR}/man/man1
cd ${WRKSRC} && { \
${INSTALL_PROGRAM} gas/as-new ${TARGET_DIR}/bin/as; \
${INSTALL_PROGRAM} gprof/gprof ${TARGET_DIR}/bin; \
${INSTALL_PROGRAM} ld/ld-new ${TARGET_DIR}/bin/ld; \
${INSTALL_MAN} gas/doc/as.1 ${TARGET_DIR}/man/man1; \
${INSTALL_MAN} gprof/gprof.1 ${TARGET_DIR}/man/man1; \
${INSTALL_MAN} ld/ld.1 ${TARGET_DIR}/man/man1; \
for s in ${FILES}; do \
2002-02-18 23:19:21 -05:00
d=`echo $${s} | sed s/-new//`; \
${INSTALL_PROGRAM} binutils/$${s} ${TARGET_DIR}/bin/$${d}; \
${INSTALL_MAN} binutils/$${d}.1 ${TARGET_DIR}/man/man1; \
2002-02-18 23:19:21 -05:00
done \
}
2002-02-18 23:19:21 -05:00
SUBST_VARS=TARGET_ARCH OSREV
2002-02-18 23:19:21 -05:00
.include <bsd.port.mk>