mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
19297be5ff
Since the author switched to use autoconf to maintain it, the entire build system changed quite a bit. In order to get it to use the correct tools (avr-gcc etc.) instead of the default C compiler, the package now contains wrapper scripts to configure and build it, so a good part of our ports framework doesn't apply anymore very well. As a side-effect, i can't get it to honor ${PREFIX} in any way right now. Maybe i'll switch away from the shipped scripts, and redo all their stuff within that Makefile in future.
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
# New ports collection makefile for: avr-libc
|
|
# Date created: 04 Dec 2000
|
|
# Whom: Joerg Wunsch <joerg@freebsd.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= avr-libc
|
|
PORTVERSION= 20020203
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.amelek.gda.pl/avr/libc/
|
|
|
|
MAINTAINER= joerg@freebsd.org
|
|
|
|
BUILD_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
|
|
avr-ld:${PORTSDIR}/devel/avr-binutils \
|
|
avr-gcc:${PORTSDIR}/devel/avr-gcc \
|
|
${GMAKE}:${PORTSDIR}/devel/gmake
|
|
RUN_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
|
|
avr-ld:${PORTSDIR}/devel/avr-binutils \
|
|
avr-gcc:${PORTSDIR}/devel/avr-gcc
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ENV= CC=avr-gcc
|
|
CONFIGURE_SCRIPT= doconf
|
|
|
|
do-build:
|
|
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ./domake MAKE=${GMAKE})
|
|
|
|
do-install:
|
|
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ./domake MAKE=${GMAKE} install)
|
|
${MKDIR} ${PREFIX}/share/doc/avr-libc
|
|
${MKDIR} ${PREFIX}/share/doc/avr-libc/examples
|
|
${INSTALL_DATA} \
|
|
${WRKDIR}/${DISTNAME}/LICENSE \
|
|
${WRKDIR}/${DISTNAME}/AUTHORS \
|
|
${WRKDIR}/${DISTNAME}/doc/register-usage.txt \
|
|
${WRKDIR}/${DISTNAME}/doc/avr-libc-reference.html \
|
|
${PREFIX}/share/doc/avr-libc
|
|
@for f in avr-recv.c io.c prg printf.h progmem.c \
|
|
send_byte.s signal.c;\
|
|
do \
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/examples/$$f \
|
|
${PREFIX}/share/doc/avr-libc/examples; \
|
|
done
|
|
${INSTALL_DATA} ${FILESDIR}/avr-lib.pdf ${PREFIX}/share/doc/avr-libc
|
|
|
|
.include <bsd.port.mk>
|