freebsd-ports/graphics/generic_image_decoder/Makefile
John Marino d0c4d21a83 Change Ada Framework foundation from gcc5-aux to gcc6-aux
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).
2016-04-30 06:44:27 +00:00

55 lines
1.5 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= generic_image_decoder
PORTVERSION= 05
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://sourceforge.net/projects/${SFPATH}/
DISTNAME= gid-${PORTVERSION}
MAINTAINER= marino@FreeBSD.org
COMMENT= Ada library for decoding various image formats inc. animations
LICENSE= MIT
USES= ada zip dos2unix
SFPATH= gen-img-dec/files
WRKSRC= ${WRKDIR}/gid
MAKE_ENV+= Build_Mode=Fast_but_checked
PORTDOCS= gid.txt
OPTIONS_DEFINE= DOCS
post-extract:
${CP} ${FILESDIR}/construct.gpr ${WRKSRC}
${MKDIR} ${WRKSRC}/src ${WRKDIR}/data
${MV} ${WRKSRC}/gid_work.xls ${WRKDIR}/data
(cd ${WRKSRC}; ${MV} *.ad[bs] src)
post-patch:
@${REINPLACE_CMD} -e "s|-j2|-j${MAKE_JOBS_NUMBER}|" \
${WRKSRC}/gid.gpr
do-build:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -p -Pconstruct)
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -Pgid)
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
${STAGEDIR}${PREFIX}/lib/generic_image_decoder \
${STAGEDIR}${PREFIX}/include/generic_image_decoder
${INSTALL_DATA} ${FILESDIR}/generic_image_decoder.gpr \
${STAGEDIR}${PREFIX}/lib/gnat
${INSTALL_DATA} ${WRKSRC}/src/* \
${STAGEDIR}${PREFIX}/include/generic_image_decoder
${INSTALL_DATA} ${WRKSRC}/lib/* \
${STAGEDIR}${PREFIX}/lib/generic_image_decoder
(cd ${WRKSRC}/test && ${INSTALL_PROGRAM} to_bmp mini \
${STAGEDIR}${PREFIX}/bin)
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/gid.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>