[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / quilt

File: [cvs.NetBSD.org] / pkgsrc / devel / quilt / Makefile (download)

Revision 1.20, Sat Jul 9 06:38:12 2016 UTC (7 years, 5 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3
Changes since 1.19: +2 -2 lines

Bump PKGREVISION for perl-5.24.0 for everything mentioning perl.

# $NetBSD: Makefile,v 1.20 2016/07/09 06:38:12 wiz Exp $
#

DISTNAME=	quilt-0.64
PKGREVISION=	3
CATEGORIES=	devel scm
MASTER_SITES=	http://download.savannah.gnu.org/releases/quilt/

MAINTAINER=	jmmv@NetBSD.org
HOMEPAGE=	http://savannah.nongnu.org/projects/quilt
COMMENT=	Tools to manage series of patches

GNU_CONFIGURE=	yes
USE_TOOLS+=	bash:run gettext-tools gmake msgfmt perl:run gsed

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "Linux"
CONFIGURE_ARGS+=	--with-cp=${CP}
CONFIGURE_ARGS+=	--with-date=${DATE}
CONFIGURE_ARGS+=	--with-sed=${SED}
.  if exists(/usr/bin/patch)
CONFIGURE_ARGS+=	--with-patch=/usr/bin/patch
.  else
DEPENDS+=		patch>=2.4:../../devel/patch
CONFIGURE_ARGS+=	--with-patch=${PREFIX}/bin/gpatch
.  endif
.else
DEPENDS+=		coreutils-[0-9]*:../../sysutils/coreutils
DEPENDS+=		patch>=2.4:../../devel/patch

.if ${OPSYS} == "OpenBSD"
DEPENDS+=		grep-[0-9]*:../../textproc/grep
CONFIGURE_ARGS+=	--with-grep=${PREFIX}/bin/ggrep
.endif

CONFIGURE_ARGS+=	--with-cp=${PREFIX}/bin/gcp
CONFIGURE_ARGS+=	--with-date=${PREFIX}/bin/gdate
CONFIGURE_ARGS+=	--with-patch=${PREFIX}/bin/gpatch
CONFIGURE_ARGS+=	--with-sed=${PREFIX}/bin/gsed
.endif

CONFIGURE_ARGS+=	--with-sendmail=/usr/sbin/sendmail
CONFIGURE_ARGS+=	--without-rpmbuild
CONFIGURE_ARGS+=	--without-getopt

INSTALL_MAKE_FLAGS+=	BUILD_ROOT=${DESTDIR:Q} etcdir=${PREFIX}/share/examples/quilt

REPLACE_INTERPRETER+=	conf-bash
REPLACE.conf-bash.old=	@BASH@
REPLACE.conf-bash.new=	${BASH}
REPLACE_FILES.conf-bash=*.in */*.in */*/*.in

SUBST_CLASSES+=		bash
SUBST_MESSAGE.bash=	Fixing non-shellbang references to bash.
SUBST_STAGE.bash=	pre-configure
SUBST_SED.bash=		-e 's,@BASH@,${BASH},g'
SUBST_FILES.bash=	quilt/scripts/inspect.in

SUBST_CLASSES+=		etc
SUBST_MESSAGE.etc=	Fixing path to configuration file.
SUBST_STAGE.etc=	pre-configure
SUBST_SED.etc=		-e 's,/etc/quilt,${PKG_SYSCONFDIR}/quilt,g'
SUBST_FILES.etc=	bin/* doc/* po/*

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