pkgsrc/devel/gprbuild-aux/Makefile
jperkin 5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00

35 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2018/07/04 13:40:14 jperkin Exp $
DISTNAME= gprbuild-aux-${SNAPSHOT}
CATEGORIES= devel
MASTER_SITES= https://codeload.github.com/AdaCore/gprbuild/tar.gz/${TAGNAME}?dummy=/
DISTFILES= gprbuild-${TAGNAME}.tar.gz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/AdaCore/gprbuild
COMMENT= Adacore multi-language software build tool
LICENSE= gnu-gpl-v3
SNAPSHOT= 20160609
TAGNAME= 376670f
USE_LANGUAGES= c ada
BUILD_MAKE_FLAGS= BUILD=production \
PROCESSORS=${MAKE_JOBS:U1:Q}
MAKE_ENV= ADA_PROJECT_PATH=${PREFIX}/lib/gnat
WRKSRC= ${WRKDIR}/gprbuild-${TAGNAME}
BUILD_DIRS= ${WRKSRC}/construction
SUBST_CLASSES= lbase
SUBST_STAGE.lbase= pre-configure
SUBST_FILES.lbase= share/gprconfig/compilers.xml
SUBST_SED.lbase= -e "s|/usr/local|${LOCALBASE}|"
SUBST_MESSAGE.lbase= Ensure pkgsrc localbase is used
post-patch:
${MKDIR} ${WRKDIR}/trash ${BUILD_DIRS}
${CP} ${FILESDIR}/Makefile.BSD ${BUILD_DIRS}/Makefile
${MV} ${WRKSRC}/share/gprconfig/*.orig ${WRKDIR}/trash
.include "../../textproc/xmlada/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"