summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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