aboutsummaryrefslogtreecommitdiff
path: root/devel/kBuild
diff options
context:
space:
mode:
authorBernhard Froehlich <decke@FreeBSD.org>2012-02-21 11:59:33 +0000
committerBernhard Froehlich <decke@FreeBSD.org>2012-02-21 11:59:33 +0000
commitee62a65d32d36f6923f63205ae640c1a3703d429 (patch)
treed2ebac493d840c6587234120e924b487344c870b /devel/kBuild
parentb0adc60ab315ef0289d83e7a4fe34cfdea5161dd (diff)
Notes
Diffstat (limited to 'devel/kBuild')
-rw-r--r--devel/kBuild/Makefile7
-rw-r--r--devel/kBuild/files/patch-Config.mk12
2 files changed, 18 insertions, 1 deletions
diff --git a/devel/kBuild/Makefile b/devel/kBuild/Makefile
index 88ac7778ee58..cee4621785f2 100644
--- a/devel/kBuild/Makefile
+++ b/devel/kBuild/Makefile
@@ -7,7 +7,7 @@
PORTNAME= kBuild
DISTVERSION= ${KBUILD_VERSION}-p2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ftp://ftp.netlabs.org/pub/kbuild/
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
@@ -15,9 +15,13 @@ DISTNAME= ${PORTNAME}-${DISTVERSION}-src
MAINTAINER= gahr@FreeBSD.org
COMMENT= Makefile framework
+BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
+
USE_AUTOTOOLS= automake autoconf
USE_GMAKE= yes
+CONFLICTS_INSTALL= kBuild-devel-[0-9]*
+
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
KBUILD_VERSION= 0.1.5
@@ -36,6 +40,7 @@ PORTDOCS= QuickReference-kmk.html \
post-patch:
${REINPLACE_CMD} -e '11269d;11274d' ${WRKSRC}/src/sed/configure
+ ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/Config.kmk
# Override autotools
run-autotools:
diff --git a/devel/kBuild/files/patch-Config.mk b/devel/kBuild/files/patch-Config.mk
new file mode 100644
index 000000000000..140ca289171b
--- /dev/null
+++ b/devel/kBuild/files/patch-Config.mk
@@ -0,0 +1,12 @@
+--- Config.kmk.orig 2011-08-05 14:26:26.000000000 +0200
++++ Config.kmk 2011-08-05 14:27:04.000000000 +0200
+@@ -105,6 +105,9 @@
+ if1of ($(KBUILD_TARGET), openbsd)
+ TOOL_FLEX_LEX = gflex
+ endif
++if1of ($(KBUILD_TARGET), freebsd)
++ TOOL_FLEX_LEX = %%LOCALBASE%%/bin/flex
++endif
+
+ #
+ # The OS and Architecture indicators.