blob: 177f847fadc7888f26f7b7bc77f7180bba62e495 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# $NetBSD: Makefile,v 1.10 2013/05/23 21:12:11 sbd Exp $
#
DISTNAME= quilt-0.48
PKGREVISION= 2
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:run
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
CONFIGURE_ARGS+= --with-cp=${CP}
CONFIGURE_ARGS+= --with-date=${DATE}
. 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
CONFIGURE_ARGS+= --with-cp=${PREFIX}/bin/gcp
CONFIGURE_ARGS+= --with-date=${PREFIX}/bin/gdate
CONFIGURE_ARGS+= --with-patch=${PREFIX}/bin/gpatch
.endif
CONFIGURE_ARGS+= --with-sed=${SED}
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"
|