2007-12-21 23:24:59 +01:00
|
|
|
# New ports collection makefile for: avr-libc
|
|
|
|
# Date created: 04 Dec 2000
|
2000-12-05 16:23:17 +01:00
|
|
|
# Whom: Joerg Wunsch <joerg@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= avr-libc
|
2011-12-30 09:53:57 +01:00
|
|
|
PORTVERSION= 1.8.0
|
2004-03-12 22:03:48 +01:00
|
|
|
PORTEPOCH= 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
|
|
|
|
2010-12-25 17:55:41 +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
|
|
|
|
2011-12-14 22:33:51 +01:00
|
|
|
LICENSE= BSD
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2000-12-05 16:23:17 +01:00
|
|
|
BUILD_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
|
|
|
|
avr-ld:${PORTSDIR}/devel/avr-binutils \
|
2006-10-09 22:30:41 +02:00
|
|
|
avr-gcc:${PORTSDIR}/devel/avr-gcc
|
2000-12-05 16:23:17 +01:00
|
|
|
RUN_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
|
|
|
|
avr-ld:${PORTSDIR}/devel/avr-binutils \
|
2006-10-09 22:30:41 +02:00
|
|
|
avr-gcc:${PORTSDIR}/devel/avr-gcc
|
2010-02-11 13:02:32 +01:00
|
|
|
|
2010-02-11 23:37:30 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2010-12-15 22:56:33 +01:00
|
|
|
OPTIONS= AVRLIBCDOCS "Build avr-libc documents" off
|
2010-02-11 23:37:30 +01:00
|
|
|
.endif
|
2010-02-11 13:02:32 +01:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2010-02-11 22:32:50 +01:00
|
|
|
.if defined(WITHOUT_AVRLIBCDOCS) || defined(NOPORTDOCS)
|
|
|
|
WITHOUT_AVRLIBCDOCS= true
|
|
|
|
.undef WITH_AVRLIBCDOCS
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_AVRLIBCDOCS)
|
2003-10-26 22:07:05 +01:00
|
|
|
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
|
2011-12-14 22:33:51 +01:00
|
|
|
USE_GETTEXT= build
|
2002-04-18 21:50:14 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2011-12-14 22:33:51 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2007-10-29 20:54:37 +01:00
|
|
|
|
2011-12-14 22:33:51 +01:00
|
|
|
CONFLICTS= avr-libc-devel-[0-9]*
|
2007-10-29 20:54:37 +01:00
|
|
|
|
2002-07-03 21:23:15 +02:00
|
|
|
CONFIGURE_ENV= CC=avr-gcc PREFIX=${PREFIX}
|
2010-02-11 22:32:50 +01:00
|
|
|
.if defined(WITH_AVRLIBCDOCS)
|
2005-11-19 23:14:27 +01:00
|
|
|
CONFIGURE_ARGS= --build=`./config.guess` --host=avr \
|
2011-12-30 09:53:57 +01:00
|
|
|
--enable-doc --disable-versioned-doc --prefix=${PREFIX} \
|
|
|
|
--mandir=${PREFIX}/share/doc/avr-libc/man
|
2004-12-21 15:39:39 +01:00
|
|
|
PLIST_DOC= ${PKGDIR}/pkg-plist.doc
|
|
|
|
.else
|
2009-07-12 23:56:12 +02:00
|
|
|
CONFIGURE_ARGS= --build=`./config.guess` --host=avr --prefix=${PREFIX}
|
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
|
|
|
|
2009-04-23 22:00:14 +02:00
|
|
|
post-patch:
|
2010-02-11 22:32:50 +01:00
|
|
|
.if defined(WITHOUT_AVRLIBCDOCS)
|
2009-04-23 22:00:14 +02:00
|
|
|
${REINPLACE_CMD} -e '/SUBDIRS/s,examples,,' ${WRKSRC}/doc/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
2002-04-18 21:50:14 +02:00
|
|
|
do-install:
|
2006-02-28 14:41:48 +01:00
|
|
|
${RM} -f ${TMPPLIST}
|
2010-02-11 22:32:50 +01:00
|
|
|
.if defined(WITH_AVRLIBCDOCS)
|
2006-02-28 14:41:48 +01:00
|
|
|
(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}
|
|
|
|
.endif
|
|
|
|
${CAT} ${PLIST} >> ${TMPPLIST}
|
2011-12-14 22:33:51 +01:00
|
|
|
@for file in ${PLIST_FILES}; do \
|
|
|
|
${ECHO_CMD} $${file} >> ${TMPPLIST}; \
|
|
|
|
done
|
2005-11-19 23:14:27 +01:00
|
|
|
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} install)
|
2011-12-14 22:33:51 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2001-08-12 17:15:57 +02:00
|
|
|
${INSTALL_DATA} \
|
2002-04-18 21:50:14 +02:00
|
|
|
${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>
|