[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / cross / avr-binutils

Annotation of pkgsrc/cross/avr-binutils/Makefile, Revision 1.26

1.26    ! mef         1: # $NetBSD: Makefile,v 1.25 2014/10/23 10:25:11 mef Exp $
1.1       wennmach    2:
1.24      mef         3: DISTNAME=              binutils-2.24
1.20      mef         4: PKGNAME=               ${DISTNAME:S/^/avr-/}
1.1       wennmach    5: CATEGORIES=            cross
1.7       uebayasi    6: MASTER_SITES=          ${MASTER_SITE_GNU:=binutils/}
1.20      mef         7: EXTRACT_SUFX=          .tar.bz2
1.1       wennmach    8:
1.14      wiz         9: MAINTAINER=            pkgsrc-users@NetBSD.org
1.1       wennmach   10: COMMENT=               GNU binutils for Atmel AVR 8-bit RISC microcontrollers
1.20      mef        11: LICENSE=               gnu-gpl-v3
1.1       wennmach   12:
1.21      dsainty    13: # No need to use makeinfo - this package doesn't install the documentation.
                     14: USE_TOOLS+=            gmake
1.20      mef        15: USE_LIBTOOL=           yes
1.2       seb        16: GNU_CONFIGURE=         yes
1.1       wennmach   17: USE_PKGLOCALEDIR=      yes
1.15      hasso      18: USE_GNU_CONFIGURE_HOST=        no
1.26    ! mef        19:
        !            20: # follows to devel/binutils
        !            21: # PR pkg/48504, ksh is sufficient for NetBSD 5.2 and NetBSD 6.1
        !            22: .include "../../mk/bsd.prefs.mk"
        !            23: .if !empty(MACHINE_PLATFORM:MNetBSD-[5-6].*-*) && \
        !            24:        empty(MACHINE_PLATFORM:MNetBSD-6.99.*-*)
        !            25: USE_TOOLS+=            ksh
1.25      mef        26: CONFIG_SHELL=          ksh
1.26    ! mef        27: .endif
1.2       seb        28:
1.20      mef        29: CONFIGURE_ARGS+=       --disable-werror --target=avr --disable-nls
                     30:
                     31: AUTO_MKDIRS=           yes
1.2       seb        32:
                     33: # Prevent the need to run texi2pod.pl and pod2man hence
                     34: # the need for perl as build dependency.
                     35: post-configure:
1.20      mef        36:        set -e;                                                 \
1.2       seb        37:        cd ${WRKSRC};                                           \
                     38:        for f in ld/ldver.texi ld/ld.1 gas/doc/gasver.texi      \
                     39:          gas/doc/as.1; do                                      \
                     40:                ${TOUCH} $${f};                                 \
                     41:        done
1.1       wennmach   42:
1.20      mef        43: # emulator/simulavr wants libbfd.so or libbfd.a and bfd.h
                     44: #  --with-bfd=path  location of AVR-binutils version of libbfd install
                     45: #  where include/bfd.h and lib/libbfd.a are found (from binutils)
                     46: post-build:
                     47:        set -e;                                                 \
                     48:        (cd ${WRKSRC}/bfd; ${GMAKE} all libbfd.a);
                     49:
                     50: post-install:
                     51:        # Emulator/simulvar needs library files
                     52:        (cd ${WRKSRC}/bfd;                                      \
                     53:        ${GMAKE} install-exec install-data;                     \
                     54:        ${LIBTOOL} --mode install ${INSTALL_DATA} libbfd.la ${DESTDIR}${PREFIX}/avr/lib;        \
                     55:        ${INSTALL_DATA} bfd.h ${DESTDIR}${PREFIX}/avr/include;  \
                     56:        )
                     57:        # emulator/simulavr wants following header files
                     58:        (cd ${WRKSRC}/include;                                  \
                     59:        for f in ansidecl.h symcat.h; do                        \
                     60:          ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/avr/include;  \
                     61:        done;   \
                     62:        )
1.1       wennmach   63: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>