pkgsrc/lang/gnat_util/Makefile
marino 826bcd6c30 Add new source package: lang/gnat_util
Several tools are built with GNAT sources and they have to be the
exact source that built the Ada compiler that builds the tool.  To
ensure this, a common trick to the create a library with those sources
and link the library instead of using the embedded source files which
never match the FSF compiler properly.  The first tool this new
gcc 4.9.0-based library will be used for is devel/gprbuild-aux
2014-04-30 16:25:20 +00:00

33 lines
934 B
Makefile

# $NetBSD: Makefile,v 1.1 2014/04/30 16:25:20 marino Exp $
PKGNAME= gnat_util-${SNAPSHOT}
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC_VERSION}/}
DISTFILES= gcc-${GCC_VERSION}.tar.bz2
MAINTAINER= draco@marino.st
HOMEPAGE= http://www.dragonlace.net/
COMMENT= Library used to build GNAT source-based tools
LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3
.include "../../mk/bsd.prefs.mk"
.include "../../lang/gcc-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"