pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/cross/avr-gcc some improvement
details: https://anonhg.NetBSD.org/pkgsrc/rev/411b0506bc74
branches: trunk
changeset: 568396:411b0506bc74
user: obache <obache%pkgsrc.org@localhost>
date: Sat Dec 12 05:02:19 2009 +0000
description:
some improvement
* Remove BUILD_DEPENDS on bison, it already in USE_TOOLS.
* Remove USE_BZIP2, not buildlink with bzip2, no effect.
* Remove custom do-* target, *_DIRS is sufficient to do so and use it instead.
* Remove MAKE_FLAGS="c c++", it was not used, and it result in missing "gcov"
after above modification.
* then, add user-destdir support, inspired by PR 42438.
diffstat:
cross/avr-gcc/Makefile | 18 +++++++-----------
1 files changed, 7 insertions(+), 11 deletions(-)
diffs (52 lines):
diff -r 915fd8f204cb -r 411b0506bc74 cross/avr-gcc/Makefile
--- a/cross/avr-gcc/Makefile Fri Dec 11 21:56:29 2009 +0000
+++ b/cross/avr-gcc/Makefile Sat Dec 12 05:02:19 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2009/08/27 15:29:37 hasso Exp $
+# $NetBSD: Makefile,v 1.22 2009/12/12 05:02:19 obache Exp $
DISTNAME= gcc-4.4.1
PKGNAME= avr-gcc-4.4.1
@@ -11,19 +11,18 @@
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
COMMENT= GNU gcc-4.4 for Atmel AVR 8-bit RISC microcontrollers
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= avr-binutils-[0-9]*:../../cross/avr-binutils
BUILD_DEPENDS+= autoconf-[0-9]*:../../devel/autoconf
-BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison
GNU_CONFIGURE= yes
-USE_BZIP2= yes
USE_TOOLS+= bison gmake lex perl tar msgfmt
USE_PKGLOCALEDIR= yes
USE_GNU_CONFIGURE_HOST= no
CONFIGURE_ARGS+= --target=avr --disable-nls
-MAKE_FLAGS+= LANGUAGES="c c++"
MAKE_ENV+= MACHINE_ARCH=avr
MAKE_ENV+= SHELL=${CONFIG_SHELL}
CFLAGS_FOR_BUILD:= ${CFLAGS}
@@ -38,16 +37,13 @@
SUBST_SED.sed= -e 's|@SED@|${TOOLS_PATH.sed}|g'
SUBST_STAGE.sed= post-patch
-
-do-configure:
+pre-configure:
${MKDIR} ${WRKDIR}/obj
- cd ${WRKDIR}/obj; ${SETENV} ${CONFIGURE_ENV} ${CONFIG_SHELL} ${WRKSRC}/configure ${CONFIGURE_ARGS}
-do-build:
- (${_ULIMIT_CMD} cd ${WRKDIR}/obj && ${SETENV} ${MAKE_ENV} ${GMAKE} -j${MAKE_JOBS:U1} )
+CONFIGURE_DIRS= ${WRKDIR}/obj
+CONFIGURE_SCRIPT= ${WRKSRC}/configure
-do-install:
- cd ${WRKDIR}/obj && ${SETENV} ${MAKE_ENV} ${GMAKE} install
+INSTALLATION_DIRS+= avr/bin
.include "../../devel/gmp/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index