# Created by: John Marino # $FreeBSD: head/misc/ini_file_manager/Makefile 414332 2016-04-30 06:44:27Z marino $ PORTNAME= ini_file_manager PORTVERSION= 03 PORTREVISION= 1 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 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