diff options
Diffstat (limited to 'lang/adacontrol/Makefile')
-rw-r--r-- | lang/adacontrol/Makefile | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/lang/adacontrol/Makefile b/lang/adacontrol/Makefile index 996e210c8cb6..1965d7e60c6d 100644 --- a/lang/adacontrol/Makefile +++ b/lang/adacontrol/Makefile @@ -3,10 +3,10 @@ PORTNAME= adacontrol PORTVERSION= 1.15r5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang MASTER_SITES= SF/adacontrol -DISTNAME= adactl_old-${PORTVERSION}-src +DISTNAME= adactl-${PORTVERSION}-src EXTRACT_SUFX= .tgz MAINTAINER= marino@FreeBSD.org @@ -17,26 +17,36 @@ LICENSE_COMB= multi BUILD_DEPENDS= asis>=2011:${PORTSDIR}/lang/asis -USES= ada gmake +USES= ada WRKSRC= ${WRKDIR}/adactl-${PORTVERSION} BUILD_WRKSRC= ${WRKSRC}/src ALL_TARGET= build +PORTDOCS= adacontrol* + +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + +do-build: + (cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -Pbuild) do-install: - ${MKDIR} ${STAGEDIR}${PREFIX}/bin - ${MKDIR} ${STAGEDIR}${PREFIX}/share/gps/plug-ins - ${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/gps/html - ${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/adacontrol - ${MKDIR} ${STAGEDIR}${PREFIX}/share/gprconfig + ${MKDIR} ${STAGEDIR}${PREFIX}/bin \ + ${STAGEDIR}${PREFIX}/share/gps/plug-ins \ + ${STAGEDIR}${PREFIX}/share/doc/gps/html \ + ${STAGEDIR}${PREFIX}/share/gprconfig ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/adactl ${BUILD_WRKSRC}/pfni \ ${BUILD_WRKSRC}/ptree ${STAGEDIR}/${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/GPS/adacontrol.xml \ ${STAGEDIR}${PREFIX}/share/gprconfig ${INSTALL_DATA} ${WRKSRC}/GPS/*adactl* ${WRKSRC}/GPS/pfni.* \ ${STAGEDIR}${PREFIX}/share/gps/plug-ins - ${INSTALL_MAN} ${WRKSRC}/doc/*.html \ + ${INSTALL_DATA} ${WRKSRC}/doc/*.html \ ${STAGEDIR}${PREFIX}/share/doc/gps/html - ${INSTALL_MAN} ${WRKSRC}/doc/*.pdf ${WRKSRC}/doc/*.html \ - ${STAGEDIR}${PREFIX}/share/doc/adacontrol +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${WRKSRC}/doc/*.html \ + ${STAGEDIR}${DOCSDIR} +.endif .include <bsd.port.mk> |