# $OpenBSD: Makefile,v 1.8 2002/05/13 10:54:45 fgsch Exp $ COMMENT= "GNU development tools" DISTNAME= binutils-2.11.2 CATEGORIES= devel NEED_VERSION= 1.528 MASTER_SITES= ${MASTER_SITE_GNU:=binutils/} PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes MAINTAINER= Federico G. Schwindt 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 FLAVORS= alpha hppa i386 m68k m88k mips powerpc sparc \ sparc64 vax 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} .endif TARGET_DIR= $${PREFIX}/${TARGET_ARCH}-unknown-openbsd${OSREV} FILES= ar nm-new objdump ranlib size strings strip-new post-patch: @cd ${WRKSRC}/bfd && autoconf @cd ${WRKSRC}/binutils && autoconf @-cd ${WRKSRC}/gas && { automake; autoconf; } @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 \ d=`echo $${s} | sed s/-new//`; \ ${INSTALL_PROGRAM} binutils/$${s} ${TARGET_DIR}/bin/$${d}; \ ${INSTALL_MAN} binutils/$${d}.1 ${TARGET_DIR}/man/man1; \ done \ } SUBST_VARS=TARGET_ARCH OSREV .include