d0c4d21a83
GCC 6.1 was released this week. The Ada Framework in FreeBSD ports has been based on GCC 5.3 GNAT although GCC 6.x has been supported for awhile via the ADA_DEFAULT option in make.conf. Now that GCC 6 has been officially released, switch to it by default. People can maintain the old foundation by putting "ADA_DEFAULT=5" in /etc/make.conf. Libraries built by one GNAT are unusable by another, so almost every Ada port has been bumped as a result. Noticable exceptions are dns/ironsides which fails to build on gcc6 (thus USES=ada:5 is set) and cad/ghdl which needs additional testing as it may require gcc5 on FreeBSD (DragonFly uses the LLVM backend only).
70 lines
1.8 KiB
Makefile
70 lines
1.8 KiB
Makefile
# Created by: John Marino <marino@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= anet
|
|
PORTVERSION= 0.3.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.codelabs.ch/download/
|
|
DISTNAME= libanet-${PORTVERSION}
|
|
|
|
MAINTAINER= marino@FreeBSD.org
|
|
COMMENT= Networking library for Ada
|
|
|
|
LICENSE= GPLv2 GMGPL
|
|
LICENSE_COMB= multi
|
|
|
|
USES= ada tar:bzip2
|
|
ALL_TARGET= build_lib
|
|
MAKE_ARGS+= NUM_CPUS=${MAKE_JOBS_NUMBER} \
|
|
LIBRARY_KIND=static \
|
|
OS=bsd
|
|
|
|
OPTIONS_DEFINE= TEST DOCS
|
|
TEST_DESC= Run unit test suite before installation
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${OPSYS} == DragonFly && ${ARCH} == i386
|
|
IGNORE= will not build; atomics are not supported on DF i386
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTEST}
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/gnat/ahven.gpr:devel/ahven
|
|
ALL_TARGET+= tests
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
BUILD_DEPENDS+= asciidoc:textproc/asciidoc \
|
|
source-highlight:textproc/source-highlight
|
|
ALL_TARGET+= doc
|
|
USES+= gmake
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|dynamic|static|g' \
|
|
${WRKSRC}/gnat/anet.gpr
|
|
@${REINPLACE_CMD} -e 's|DESTDIR|DEST2|g' \
|
|
${WRKSRC}/doc/Makefile
|
|
|
|
do-build:
|
|
${MKDIR} ${WRKSRC}/doc/html
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET}
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
|
|
${STAGEDIR}${PREFIX}/lib/anet \
|
|
${STAGEDIR}${PREFIX}/include/anet
|
|
${INSTALL_DATA} ${WRKSRC}/src/*.ad[bs] ${WRKSRC}/src/bsd/*.ad[bs] \
|
|
${STAGEDIR}${PREFIX}/include/anet
|
|
${INSTALL_DATA} ${WRKSRC}/lib/static/*.ali \
|
|
${STAGEDIR}${PREFIX}/lib/anet
|
|
${INSTALL_DATA} ${WRKSRC}/lib/static/*.a ${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/gnat/anet.gpr ${STAGEDIR}${PREFIX}/lib/gnat
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|