2000-12-05 16:23:17 +01:00
|
|
|
# New ports collection makefile for: avr-libc
|
|
|
|
# Date created: 04 Dec 2000
|
|
|
|
# Whom: Joerg Wunsch <joerg@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= avr-libc
|
2006-04-21 00:02:44 +02:00
|
|
|
PORTVERSION= 1.4.4
|
2004-03-12 22:03:48 +01:00
|
|
|
PORTEPOCH= 1
|
2006-09-29 00:13:24 +02:00
|
|
|
PORTREVISION= 1
|
2000-12-05 16:23:17 +01:00
|
|
|
CATEGORIES= devel
|
2004-03-12 22:03:48 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2000-12-05 16:23:17 +01:00
|
|
|
|
|
|
|
MAINTAINER= joerg@freebsd.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A C and math library for the Atmel AVR controller family
|
2000-12-05 16:23:17 +01:00
|
|
|
|
|
|
|
BUILD_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
|
|
|
|
avr-ld:${PORTSDIR}/devel/avr-binutils \
|
2006-10-06 05:19:09 +02:00
|
|
|
avr-gcc:${PORTSDIR}/devel/avr-gcc-3
|
2000-12-05 16:23:17 +01:00
|
|
|
RUN_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
|
|
|
|
avr-ld:${PORTSDIR}/devel/avr-binutils \
|
2006-10-06 05:19:09 +02:00
|
|
|
avr-gcc:${PORTSDIR}/devel/avr-gcc-3
|
2003-10-26 22:07:05 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \
|
|
|
|
latex:${PORTSDIR}/print/teTeX \
|
2005-02-16 12:29:42 +01:00
|
|
|
pdflatex:${PORTSDIR}/print/teTeX \
|
2006-03-28 07:10:55 +02:00
|
|
|
fig2dev:${PORTSDIR}/print/transfig \
|
|
|
|
jpegtopnm:${PORTSDIR}/graphics/netpbm
|
2003-10-26 22:07:05 +01:00
|
|
|
.endif
|
2000-12-05 16:23:17 +01:00
|
|
|
|
2002-09-01 23:16:30 +02:00
|
|
|
USE_BZIP2= yes
|
2004-12-21 15:42:36 +01:00
|
|
|
USE_GMAKE= yes
|
2002-04-18 21:50:14 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2002-07-03 21:23:15 +02:00
|
|
|
CONFIGURE_ENV= CC=avr-gcc PREFIX=${PREFIX}
|
2003-10-26 22:07:05 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-11-19 23:14:27 +01:00
|
|
|
CONFIGURE_ARGS= --build=`./config.guess` --host=avr \
|
|
|
|
--enable-doc --disable-versioned-doc
|
2004-12-21 15:39:39 +01:00
|
|
|
PLIST_DOC= ${PKGDIR}/pkg-plist.doc
|
|
|
|
.else
|
2005-11-19 23:14:27 +01:00
|
|
|
CONFIGURE_ARGS= --build=`./config.guess` --host=avr
|
2004-12-21 15:39:39 +01:00
|
|
|
PLIST_DOC=
|
2003-10-26 22:07:05 +01:00
|
|
|
.endif
|
2003-05-20 08:02:40 +02:00
|
|
|
# Work around the braind***ness introduced by <bsd.cpu.mk> in freebsd-5.
|
|
|
|
# Sorry, the user is no longer be able to override the optimization and
|
|
|
|
# debugging settings now.
|
2002-11-24 11:24:43 +01:00
|
|
|
MAKE_ENV= NO_CPU_CFLAGS=true
|
2003-05-20 08:02:40 +02:00
|
|
|
CFLAGS= -O
|
|
|
|
CXXFLAGS= -O
|
2002-07-03 21:23:15 +02:00
|
|
|
|
2002-04-18 21:50:14 +02:00
|
|
|
do-install:
|
2006-02-28 14:41:48 +01:00
|
|
|
${RM} -f ${TMPPLIST}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
(cd ${BUILD_WRKSRC}/doc/api/avr-libc-user-manual && \
|
|
|
|
${FIND} . -type f \
|
|
|
|
\( -name '*.html' -or -name '*.css' -or \
|
|
|
|
-name '*.jpg' -or -name '*.png' \) |\
|
|
|
|
${SORT} |\
|
|
|
|
${SED} -e 's|^\.|share/doc/avr-libc/avr-libc-user-manual|' \
|
|
|
|
>> ${TMPPLIST})
|
|
|
|
(cd ${BUILD_WRKSRC}/doc/api/man/man3 && \
|
|
|
|
${FIND} . -type f |\
|
|
|
|
${SORT} |\
|
|
|
|
${SED} -e 's|^\.|share/doc/avr-libc/man/man3|' \
|
|
|
|
>> ${TMPPLIST})
|
|
|
|
${CAT} ${PLIST_DOC} >> ${TMPPLIST}
|
|
|
|
.else
|
|
|
|
-${MKDIR} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
${CAT} ${PLIST} >> ${TMPPLIST}
|
2005-11-19 23:14:27 +01:00
|
|
|
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} install)
|
2001-08-12 17:15:57 +02:00
|
|
|
${INSTALL_DATA} \
|
2002-04-18 21:50:14 +02:00
|
|
|
${WRKDIR}/${DISTNAME}/LICENSE \
|
|
|
|
${WRKDIR}/${DISTNAME}/AUTHORS \
|
2006-02-28 14:41:48 +01:00
|
|
|
${DOCSDIR}
|
2000-12-05 16:23:17 +01:00
|
|
|
|
2004-12-06 23:20:40 +01:00
|
|
|
.include <bsd.port.mk>
|