freebsd-ports/misc/ini_file_manager/Makefile
John Marino 345591ef02 add new Ada dev port: misc/ini_file_manager
The Ini file manager consists of a package, Config, which can read or write
informations from various configuration files known as "ini" files because
they have often the ".ini" extension. They are text files which look like
the following:

  ; Comment line
  [Section 1]
  a_string = abcd     # a comment here...
  a_number = +123.456 ; another comment
  [Section 2]
  a_string = efgh

For more examples in this format, just search files with the .ini extension
on a windows-based computer.

WWW: http://sourceforge.net/projects/ini-files/
2014-03-23 23:44:07 +00:00

56 lines
1.6 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= ini_file_manager
PORTVERSION= 03
CATEGORIES= misc
MASTER_SITES= http://sourceforge.net/projects/${SFPATH}/
DISTNAME= ini-files-${PORTVERSION}
MAINTAINER= marino@FreeBSD.org
COMMENT= Ini configuration file reader and manipulator package for Ada
LICENSE= MIT
USES= ada zip dos2unix
SFPATH= ini-files/files/ini-files/ini-files-${PORTVERSION}
WRKSRC= ${WRKDIR}
PORTDOCS= ini_file_manager.txt
PORTEXAMPLES= example.gpr test_config.adb runme.sh
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-extract:
${CP} ${FILESDIR}/construct.gpr ${WRKSRC}
${MKDIR} ${WRKSRC}/src
${MV} ${WRKSRC}/config.ad[bs] ${WRKSRC}/src
${SED} -e "s,@PREFIX@,${LOCALBASE},g" ${FILESDIR}/runme.sh.in \
> ${WRKSRC}/runme.sh
do-build:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -p -Pconstruct)
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
${STAGEDIR}${PREFIX}/lib/ini_file_manager \
${STAGEDIR}${PREFIX}/include/ini_file_manager
${INSTALL_DATA} ${FILESDIR}/ini_file_manager.gpr \
${STAGEDIR}${PREFIX}/lib/gnat
${INSTALL_DATA} ${WRKSRC}/src/* \
${STAGEDIR}${PREFIX}/include/ini_file_manager
${INSTALL_DATA} ${WRKSRC}/lib/* \
${STAGEDIR}${PREFIX}/lib/ini_file_manager
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/ini_file_manager.txt ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/runme.sh ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/test_config.adb \
${FILESDIR}/example.gpr ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>