freebsd-ports/graphics/generic_image_decoder/Makefile
John Marino 8a184b717c Add new Ada port: graphics/generic_image_decoder
The Generic Image Decoder (GID) is an Ada package for decoding a broad
variety on image formats from any data stream to any kind of medium.
Examples include in-memory bitmap, a GUI objecct, another stream, floating
point data for scientific calculations, a browser element or a device.
Animations are also supported.  GID features:

  * Standalone; requires no other libraries or bindings
  * Completely portable - no OS, CPU, or compiler dependencies
  * Task safe
  * Endian-neutral
  * Free and open source
  * Pure Ada95 (suitable for Ada2005 and Ada2012 projects)

Currently supports BMP, GIF, JPEG, PNG and TGA formats.

WWW: http://gen-img-dec.sourceforge.net/
2014-03-23 23:55:27 +00:00

56 lines
1.5 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= generic_image_decoder
PORTVERSION= 02
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
.include <bsd.port.options.mk>
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)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/gid.txt ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>