freebsd-ports/devel/avr-libc/Makefile
Gerald Pfeifer 3be3e90f93 Update to libmpc version 1.0.1 which brings the following fixes:
- Switched to automake 1.11.6, see CVE-2012-3386.
 - #14669: Fixed extraction of CC from gmp.h.
 - Fixed case of intermediate zero real or imaginary part in mpc_fma,
   found by hydra with GMP_CHECK_RANDOMIZE=1346362345.

This is on top of the following changes from version 1.0

 - Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no
   invariant sections) for the documentation.
 - 100% of all lines are covered by tests
 - Renamed functions
   . mpc_mul_2exp to mpc_mul_2ui
   . mpc_div_2exp to mpc_div_2ui
 - 0^0, which returned (NaN,NaN) previously, now returns (1,+0).
 - Removed compatibility with K&R compilers, which was untestable due
   to lack of such compilers.
 - New functions
   . mpc_log10
   . mpc_mul_2si, mpc_div_2si
 - Speed-ups
   . mpc_fma
 - Bug fixes
   . mpc_div and mpc_norm now return a value indicating the effective
     rounding direction, as the other functions.
   . mpc_mul, mpc_sqr and mpc_norm now return correct results even if
     there are over- or underflows during the computation.
   . mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has
     infinite part and equals output variable is corrected.
   . mpc_fr_sub: Wrong return value for imaginary part is corrected.

Convert to the new LIB_DEPENDS standard and remove hard-coded
.so versions from a couple of dependent ports.

Bump PORTREVISIONS of all dependent ports.

PR:		183141
Approved by:	portmgr (bdrewery)
2013-10-26 00:52:33 +00:00

97 lines
2.5 KiB
Makefile

# Created by: Joerg Wunsch <joerg@FreeBSD.org>
# $FreeBSD$
PORTNAME= avr-libc
PORTVERSION= 1.8.0
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= SAVANNAH
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= joerg@FreeBSD.org
COMMENT= C and math library for the Atmel AVR controller family
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
avr-ld:${PORTSDIR}/devel/avr-binutils \
avr-gcc:${PORTSDIR}/devel/avr-gcc
RUN_DEPENDS= avr-as:${PORTSDIR}/devel/avr-binutils \
avr-ld:${PORTSDIR}/devel/avr-binutils \
avr-gcc:${PORTSDIR}/devel/avr-gcc
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MDOCS}
.undef WITHOUT_AVRLIBCDOCS= true
.endif
.if ${PORT_OPTIONS:MDOCS}
USE_TEX= latex:build
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \
fig2dev:${PORTSDIR}/print/transfig \
jpegtopnm:${PORTSDIR}/graphics/netpbm
.endif
USE_BZIP2= yes
USE_GMAKE= yes
USES= gettext:build
HAS_CONFIGURE= yes
CONFLICTS= avr-libc-devel-[0-9]*
CONFIGURE_ENV= CC=avr-gcc PREFIX=${PREFIX}
.if ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS= --build=`./config.guess` --host=avr \
--enable-doc --disable-versioned-doc --prefix=${PREFIX} \
--mandir=${PREFIX}/share/doc/avr-libc/man
PLIST_DOC= ${PKGDIR}/pkg-plist.doc
.else
CONFIGURE_ARGS= --build=`./config.guess` --host=avr --prefix=${PREFIX}
PLIST_DOC=
.endif
# 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.
MAKE_ENV= NO_CPU_CFLAGS=true
CFLAGS= -O
CXXFLAGS= -O
post-patch:
.if ! ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '/SUBDIRS/s,examples,,' ${WRKSRC}/doc/Makefile.in
.endif
do-install:
${RM} -f ${TMPPLIST}
.if ${PORT_OPTIONS:MDOCS}
(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}
@for file in ${PLIST_FILES}; do \
${ECHO_CMD} $${file} >> ${TMPPLIST}; \
done
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} install)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} \
${WRKDIR}/${DISTNAME}/AUTHORS \
${DOCSDIR}
.include <bsd.port.mk>