summaryrefslogtreecommitdiff
path: root/lang/gnat_util/Makefile
blob: a62e1cc925a22caf6dfe9b760668b89da54b56f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $NetBSD: Makefile,v 1.4 2018/04/02 09:30:06 wiz Exp $

PKGNAME=	gnat_util-${SNAPSHOT}
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_GNU:=gcc/gcc-${GCC_VERSION}/}
DISTFILES=	gcc-${GCC_VERSION}.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.dragonlace.net/
COMMENT=	Library used to build GNAT source-based tools
LICENSE=	gnu-gpl-v3 AND gnu-lgpl-v3

# gnat_util existed to construct gprbuild-aux which no longer requires it.
# The package is still buildable, but its not practically useful.
PKG_SKIP_REASON=	Deprecated (no longer useful), scheduled for removal Jan 2017

.include "../../mk/bsd.prefs.mk"
.include "../../lang/gcc5-aux/Makefile.version"
.include "Makefile.sources"

MAKE_ENV=	MAKEOBJDIR=${WRKSRC}/obj
USE_LANGUAGES=	c ada

# Automatic package list generation
GENERATE_PLIST=  cd ${DESTDIR}${PREFIX};
GENERATE_PLIST+= ${FIND} * \( -type f -or -type l \) | ${SORT} -dr;

post-extract:
	${MKDIR} ${WRKSRC}/obj
.for f in Makefile gnat_util.gpr sdefault_adb.gnat_util
	${CP} ${FILESDIR}/${f} ${WRKSRC}/
.endfor
.for f in ${GNAT_SRCS}
	${CP} ${WRKDIR}/gcc-${GCC_VERSION}/gcc/ada/${f} ${WRKSRC}/
.endfor

.include "../../mk/bsd.pkg.mk"