mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
c7b6c8eaf9
Submitted by: Mark Millard via private e-mail
56 lines
1.6 KiB
Makefile
56 lines
1.6 KiB
Makefile
# Created by: John Marino <marino@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ini_file_manager
|
|
PORTVERSION= 03
|
|
PORTREVISION= 2
|
|
CATEGORIES= misc
|
|
MASTER_SITES= http://sourceforge.net/projects/${SFPATH}/
|
|
DISTNAME= ini-files-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@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
|
|
|
|
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
|
|
|
|
do-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/ini_file_manager.txt ${STAGEDIR}${DOCSDIR}
|
|
|
|
do-install-EXAMPLES-on:
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/runme.sh ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/test_config.adb \
|
|
${FILESDIR}/example.gpr ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|