mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# Created by: John Marino <marino@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gnat_util
|
|
PORTVERSION= ${SNAPSHOT}
|
|
PORTREVISION= ${UTIL_PR}
|
|
CATEGORIES= lang
|
|
MASTER_SITES= GCC/${MS_SUBDIR}
|
|
DISTNAME= ${IDENTIFICATION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Library used to build GNAT tools such as ASIS
|
|
|
|
LICENSE= GPLv3 GPLv3RLE
|
|
LICENSE_COMB= multi
|
|
|
|
USES= ada
|
|
NO_MTREE= yes
|
|
DISTINFO_FILE= ${.CURDIR}/../${ADAXX}-aux/distinfo
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
MAKE_ENV= MAKEOBJDIR=${WRKSRC}/obj
|
|
|
|
.include "${.CURDIR}/Makefile.sources"
|
|
|
|
USES+= tar:xz
|
|
.include "${.CURDIR}/../gcc6-aux/Makefile.version"
|
|
|
|
post-extract:
|
|
@${MKDIR} ${WRKSRC}/obj
|
|
.for F in Makefile gnat_util.gpr sdefault_adb.gnat_util osint_scars.c
|
|
@${CP} ${FILESDIR}/${F} ${WRKSRC}/
|
|
.endfor
|
|
.for F in ${GNAT_SRCS}
|
|
@${CP} ${WRKDIR}/${DISTNAME}/gcc/ada/${F} ${WRKSRC}/
|
|
.endfor
|
|
|
|
post-install:
|
|
# impunit is needed for GPS menus, just provide the source files
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/gcc/ada/impunit.* \
|
|
${STAGEDIR}${PREFIX}/include/gnat_util
|
|
# gnat_ugn.texi is used to generate gnat_switches.py for GPS
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/gcc/ada/gnat_ugn.texi \
|
|
${STAGEDIR}${DATADIR}
|
|
|
|
.include <bsd.port.mk>
|