summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorsbd <sbd>2013-05-23 21:12:11 +0000
committersbd <sbd>2013-05-23 21:12:11 +0000
commitb3268dea82feb1d6d2f47edd7ff2419737da2239 (patch)
tree9bb6c6f5d2318402dee75dab1d3a682254aafef8 /devel
parentc1cf6fbdc59771033b1810252016bae85d6f4f03 (diff)
downloadpkgsrc-b3268dea82feb1d6d2f47edd7ff2419737da2239.tar.gz
On Linux there is no need to depend on coreutils gsed and patch.
So use the tools system for gsed and on Linux use the native cp and date and if patch exits use it. Bump PKGREVISION
Diffstat (limited to 'devel')
-rw-r--r--devel/quilt/Makefile29
1 files changed, 21 insertions, 8 deletions
diff --git a/devel/quilt/Makefile b/devel/quilt/Makefile
index d5055d486e6..177f847fadc 100644
--- a/devel/quilt/Makefile
+++ b/devel/quilt/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2012/10/31 11:19:37 asau Exp $
+# $NetBSD: Makefile,v 1.10 2013/05/23 21:12:11 sbd Exp $
#
DISTNAME= quilt-0.48
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel scm
MASTER_SITES= http://download.savannah.gnu.org/releases/quilt/
@@ -10,17 +10,30 @@ MAINTAINER= jmmv@NetBSD.org
HOMEPAGE= http://savannah.nongnu.org/projects/quilt
COMMENT= Tools to manage series of patches
-DEPENDS+= coreutils-[0-9]*:../../sysutils/coreutils
-DEPENDS+= gsed-[0-9]*:../../textproc/gsed
-DEPENDS+= patch>=2.4:../../devel/patch
-
GNU_CONFIGURE= yes
-USE_TOOLS+= bash:run gettext-tools gmake msgfmt perl:run
+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
-CONFIGURE_ARGS+= --with-sed=${PREFIX}/bin/gsed
+.endif
+
+CONFIGURE_ARGS+= --with-sed=${SED}
CONFIGURE_ARGS+= --with-sendmail=/usr/sbin/sendmail
CONFIGURE_ARGS+= --without-rpmbuild
CONFIGURE_ARGS+= --without-getopt