summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dist/debian/changelog213
-rw-r--r--dist/debian/compat1
-rw-r--r--dist/debian/control33
-rw-r--r--dist/debian/copyright43
-rw-r--r--dist/debian/install2
-rw-r--r--dist/debian/kbuild.doc-base9
-rw-r--r--dist/debian/kmk.pod26
-rw-r--r--dist/debian/links25
-rw-r--r--dist/debian/manpages1
-rwxr-xr-xdist/debian/orig-tar.sh20
-rwxr-xr-xdist/debian/rules56
-rw-r--r--dist/freebsd/devel/kBuild/Makefile102
-rw-r--r--dist/freebsd/devel/kBuild/distinfo3
-rw-r--r--dist/freebsd/devel/kBuild/kBuild-files.mk116
-rw-r--r--dist/freebsd/devel/kBuild/pkg-descr1
-rw-r--r--dist/freebsd/devel/kBuild/pkg-plist115
-rw-r--r--dist/macports/PortIndex4
-rw-r--r--dist/macports/devel/kbuild-head/Portfile35
-rw-r--r--dist/macports/devel/kbuild/Portfile40
-rw-r--r--dist/portage/dev-util/kbuild/kbuild-0.1.5.ebuild42
20 files changed, 887 insertions, 0 deletions
diff --git a/dist/debian/changelog b/dist/debian/changelog
new file mode 100644
index 0000000..cd34516
--- /dev/null
+++ b/dist/debian/changelog
@@ -0,0 +1,213 @@
+kbuild (1:0.1.5-1) unstable; urgency=low
+
+ * New upstream version.
+ * Adopted for tarball use.
+
+ -- bird <bird-kBuild-spamx@anduin.net> Thu, 22 Jan 2009 01:05:00 +0100
+
+kbuild (1:0.1.5svn2062-1) unstable; urgency=low
+
+ * new upstream version
+ * Remove patch lazy.diff that has been applied upstream.
+
+ -- Torsten Werner <twerner@debian.org> Wed, 12 Nov 2008 21:54:38 +0100
+
+kbuild (1:0.1.5svn2059-2) unstable; urgency=low
+
+ * Create SvnInfo.kmk during build process because the upstream svn does not
+ ship it anymore.
+
+ -- Torsten Werner <twerner@debian.org> Sat, 08 Nov 2008 09:17:10 +0100
+
+kbuild (1:0.1.5svn2059-1) unstable; urgency=low
+
+ * new upstream version
+ * Add patch lazy.diff to fix build process.
+ * Add more manpage symlinks.
+
+ -- Torsten Werner <twerner@debian.org> Fri, 07 Nov 2008 23:25:40 +0100
+
+kbuild (1:0.1.4svn1804-1) unstable; urgency=low
+
+ * new upstream version
+ * Bump up Standards-Version: 3.8.0 (no changes).
+
+ -- Torsten Werner <twerner@debian.org> Tue, 07 Oct 2008 20:50:48 +0200
+
+kbuild (1:0.1.3svn1610-1) unstable; urgency=low
+
+ * new upstream version (Closes: #479046, #480012)
+ * Remove patch cpu.diff that has been applied upstream.
+
+ -- Torsten Werner <twerner@debian.org> Thu, 08 May 2008 20:20:07 +0200
+
+kbuild (1:0.1.3svn1587-1) unstable; urgency=low
+
+ * new upstream version
+ * Add support for armv5tejl.
+
+ -- Torsten Werner <twerner@debian.org> Thu, 17 Apr 2008 22:08:34 +0200
+
+kbuild (1:0.1.2svn1393-2) unstable; urgency=high
+
+ * Add patch to fix build on parisc.
+ * Set urgency to high because we are fixing a FTBFS bug on 1 arch.
+
+ -- Torsten Werner <twerner@debian.org> Thu, 10 Apr 2008 22:42:26 +0200
+
+kbuild (1:0.1.2svn1393-1) unstable; urgency=low
+
+ * new upstream release
+ * Remove our patch because it has been applied upstream.
+
+ -- Torsten Werner <twerner@debian.org> Sun, 09 Mar 2008 22:29:26 +0100
+
+kbuild (1:0.1.2svn1377-5) unstable; urgency=low
+
+ * Add support for s390x.
+
+ -- Torsten Werner <twerner@debian.org> Sun, 30 Dec 2007 23:54:18 +0100
+
+kbuild (1:0.1.2svn1377-4) unstable; urgency=low
+
+ * Add support for mips.
+
+ -- Torsten Werner <twerner@debian.org> Sun, 30 Dec 2007 22:53:09 +0100
+
+kbuild (1:0.1.2svn1377-3) unstable; urgency=low
+
+ * Add support for armv5tel.
+
+ -- Torsten Werner <twerner@debian.org> Fri, 28 Dec 2007 23:39:11 +0100
+
+kbuild (1:0.1.2svn1377-2) unstable; urgency=low
+
+ * Add support for PA-RISC.
+
+ -- Torsten Werner <twerner@debian.org> Fri, 28 Dec 2007 13:20:11 +0100
+
+kbuild (1:0.1.2svn1377-1) unstable; urgency=low
+
+ * Use version number (KBUILD_VERSION) from file Config.kmk for our package.
+ * Always bootstrap kBuild because it is required.
+ * Add Build-Depends: autoconf, automake, cvs.
+ * Remove Build-Depends: doxygen, kbuild.
+
+ -- Torsten Werner <twerner@debian.org> Sat, 22 Dec 2007 11:53:03 +0100
+
+kbuild (1377-2) unstable; urgency=low
+
+ * Add patch cpu.diff to support Debian's architectures.
+ * Set LDFLAGS to -Wl,--as-needed to avoid linking of unneeded libraries.
+ * Use the freshly built kmk for the installation step instead of the old one
+ used for the build step. Rationale: that is a very basic test that the new
+ kmk is really working.
+
+ -- Torsten Werner <twerner@debian.org> Fri, 21 Dec 2007 18:06:38 +0100
+
+kbuild (1377-1) unstable; urgency=low
+
+ * new upstream version
+ * Add some debugging output (gcc macros).
+ * Update Homepage and Vcs headers in debian/control.
+ * Change Standards-Version: 3.7.3.
+ * Add manpage symlinks for kmk_redirect and kmk_test.
+
+ -- Torsten Werner <twerner@debian.org> Fri, 21 Dec 2007 12:30:37 +0100
+
+kbuild (1366-1) unstable; urgency=low
+
+ * new upstream version
+ - Does not ship kBuild.Doxyfile any more.
+ * Remove all references to the obsoleted documentation files.
+ (Closes: #454038)
+ * Remove Depends: autoconf, automake1.9.
+
+ -- Torsten Werner <twerner@debian.org> Mon, 03 Dec 2007 18:59:04 +0100
+
+kbuild (1258-1) unstable; urgency=low
+
+ * new upstream release
+ * Remove the last patch because it has been applied upstream.
+
+ -- Torsten Werner <twerner@debian.org> Sun, 28 Oct 2007 23:05:09 +0100
+
+kbuild (1173-1) unstable; urgency=low
+
+ * new upstream release
+ * Fix the get-orig-source target in debian/rules.
+ * Removed all patches that have been applied upstream.
+ * Add more man page symlinks (kmk_cmp and kmk_md5sum).
+
+ -- Torsten Werner <twerner@debian.org> Tue, 02 Oct 2007 21:59:51 +0200
+
+kbuild (1096-1) unstable; urgency=low
+
+ * new upstream version
+ * Add kbuild to Build-Depends.
+ * Fix clean target. (Closes: #442611)
+ * Comment the patches.
+
+ -- Torsten Werner <twerner@debian.org> Sun, 16 Sep 2007 19:06:22 +0200
+
+kbuild (1080-2) unstable; urgency=low
+
+ * Add patch arm.diff to support armv4l too.
+
+ -- Torsten Werner <twerner@debian.org> Sat, 21 Jul 2007 12:26:46 +0200
+
+kbuild (1080-1) unstable; urgency=low
+
+ * New upstream version
+ * Add a patch debug.diff that fixes debugging output.
+
+ -- Torsten Werner <twerner@debian.org> Sat, 21 Jul 2007 08:27:12 +0200
+
+kbuild (1060-1) unstable; urgency=low
+
+ * New upstream version
+ * Bootstrap every architecture again because some binaries are buggy.
+
+ -- Torsten Werner <twerner@debian.org> Sat, 9 Jun 2007 07:42:44 +0200
+
+kbuild (894-5) unstable; urgency=low
+
+ * Remove directory 'out' in clean target. (Closes: #424426)
+
+ -- Torsten Werner <twerner@debian.org> Sat, 19 May 2007 23:25:17 +0200
+
+kbuild (894-4) unstable; urgency=low
+
+ * Add hppa, ia64, mips, mipsel, powerpc, s390 to already bootstrapped
+ architectures.
+ * Add patch unused.diff to fix a build problem on alpha.
+
+ -- Torsten Werner <twerner@debian.org> Mon, 14 May 2007 05:30:43 +0200
+
+kbuild (894-3) unstable; urgency=low
+
+ * Add yet another fix for the missing architectures.
+
+ -- Torsten Werner <twerner@debian.org> Sat, 12 May 2007 18:32:30 +0200
+
+kbuild (894-2) unstable; urgency=low
+
+ * Complete the last (incomplete) patch.
+
+ -- Torsten Werner <twerner@debian.org> Sat, 12 May 2007 15:20:34 +0200
+
+kbuild (894-1) unstable; urgency=low
+
+ * New upstream revision.
+ * Use the revision number from debian/changelog for debian/orig-tar.sh.
+ * Add Build-Depends: kbuild [amd64 i386].
+ * Add a patch to support all Debian architectures.
+
+ -- Torsten Werner <twerner@debian.org> Sat, 12 May 2007 14:38:49 +0200
+
+kbuild (893-1) unstable; urgency=low
+
+ * Initial release (Closes: #422367)
+
+ -- Torsten Werner <twerner@debian.org> Fri, 4 May 2007 20:35:40 +0200
+
diff --git a/dist/debian/compat b/dist/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/dist/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/dist/debian/control b/dist/debian/control
new file mode 100644
index 0000000..893044b
--- /dev/null
+++ b/dist/debian/control
@@ -0,0 +1,33 @@
+Source: kbuild
+Section: devel
+Priority: extra
+Maintainer: Torsten Werner <twerner@debian.org>
+Build-Depends: autoconf, automake, byacc, cdbs, cvs, debhelper (>= 5), flex,
+ quilt
+Standards-Version: 3.8.0
+Homepage: http://svn.netlabs.org/kbuild
+Vcs-Svn: https://bollin.googlecode.com/svn/kbuild/trunk
+Vcs-Browser: http://bollin.googlecode.com/svn/kbuild/trunk
+
+Package: kbuild
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: framework for writing simple makefiles for complex tasks
+ The goals of the kBuild framework:
+ - Similar behavior cross all supported platforms.
+ - Flexibility, don't create unnecessary restrictions preventing ad-hoc
+ solutions.
+ - Makefile can very simple to write and maintain.
+ .
+ There are four concepts being tried out in the current kBuild incaration:
+ - One configuration file for a subtree automatically included.
+ - Target configuration templates as the primary mechanism for makefile
+ simplification.
+ - Tools and SDKs for helping out the templates with flexibility.
+ - Non-recursive makefile method by using sub-makefiles.
+ .
+ kBuild does not provide any facilities for checking compiler/library/header
+ configurations, that's not in its scope. If this is important for your
+ project, check out the autoconf tool in the GNU build system. It is possible
+ to use kBuild together with autoconf if you like, but you might just as well
+ use the full GNU package.
diff --git a/dist/debian/copyright b/dist/debian/copyright
new file mode 100644
index 0000000..2e9daa1
--- /dev/null
+++ b/dist/debian/copyright
@@ -0,0 +1,43 @@
+This package was debianized by Torsten Werner <twerner@debian.org> on
+Sat May 5 14:23:24 CEST 2007.
+
+It was downloaded from http://svn.netlabs.org/kbuild
+
+Upstream Author:
+2004-2010 knut st. osmundsen <bird-kBuild-spamx@anduin.net>
+
+Copyright:
+(C) 2004-2010 knut st. osmundsen <bird-kBuild-spamx@anduin.net>
+
+License:
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+On Debian systems, the complete text of the GNU General Public License can be
+found in `/usr/share/common-licenses/GPL'.
+
+
+kBuild ships modified sources of ash, make and sed.
+
+NetBSD ash is Copyright (C) 1993 The Regents of the University of California. ash is
+licensed under the BSD license, see `/usr/share/common-licenses/BSD'.
+
+GNU make is Copyright (C) 2007 Free Software Foundation, Inc.
+License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
+
+GNU sed is Copyright (C) 2003 Free Software Foundation, Inc.
+licensed under the GPL, see `/usr/share/common-licenses/GPL`.
+
+The Debian packaging is (C) 2007, Torsten Werner <twerner@debian.org> and is
+licensed under the GPL, see `/usr/share/common-licenses/GPL'.
diff --git a/dist/debian/install b/dist/debian/install
new file mode 100644
index 0000000..c86604c
--- /dev/null
+++ b/dist/debian/install
@@ -0,0 +1,2 @@
+out/*.*/release/usr /
+
diff --git a/dist/debian/kbuild.doc-base b/dist/debian/kbuild.doc-base
new file mode 100644
index 0000000..0d8ebef
--- /dev/null
+++ b/dist/debian/kbuild.doc-base
@@ -0,0 +1,9 @@
+Document: kBuild
+Title: kmk Quick Reference
+Author: Knut St. Osmundsen
+Abstract: Brief description of all the features of the make program.
+Section: Devel/Tools
+
+Format: HTML
+Index: /usr/share/doc/kbuild/kmk-QuickReference-kmk.html
+Files: /usr/share/doc/kbuild*.html \ No newline at end of file
diff --git a/dist/debian/kmk.pod b/dist/debian/kmk.pod
new file mode 100644
index 0000000..92124dd
--- /dev/null
+++ b/dist/debian/kmk.pod
@@ -0,0 +1,26 @@
+=head1 NAME
+
+kmk - framework for writing simple makefiles for complex tasks
+
+=head1 SYNOPSIS
+
+B<kmk> [S<I<options>>]
+
+=head1 DESCRIPTION
+
+kmk and its helper tools are an extension to GNU make to ease writing
+portable Makefile. There is not a lot of documentation though. A
+starting point is L<http://svn.netlabs.org/kbuild>.
+
+On Debian systems the kBuild binaries can be found in F</usr/bin>, its data
+files in F</usr/share/kBuild> and its documentation in
+F</usr/share/doc/kbuild>.
+
+=head1 SEE ALSO
+
+L<make(1)>
+
+=head1 AUTHOR
+
+Torsten Werner <twerner@debian.org>
+
diff --git a/dist/debian/links b/dist/debian/links
new file mode 100644
index 0000000..fb6a427
--- /dev/null
+++ b/dist/debian/links
@@ -0,0 +1,25 @@
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_append.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_ash.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_cat.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_chmod.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_cmp.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_cp.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_echo.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_expr.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_gmake.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_install.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_ln.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_md5sum.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_mkdir.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_mv.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_printf.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_redirect.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_rm.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_rmdir.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_sed.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_sleep.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_test.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kmk_time.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kDepPre.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kDepIDB.1.gz
+/usr/share/man/man1/kmk.1.gz /usr/share/man/man1/kObjCache.1.gz
diff --git a/dist/debian/manpages b/dist/debian/manpages
new file mode 100644
index 0000000..724f12e
--- /dev/null
+++ b/dist/debian/manpages
@@ -0,0 +1 @@
+debian/kmk.1
diff --git a/dist/debian/orig-tar.sh b/dist/debian/orig-tar.sh
new file mode 100755
index 0000000..c1c26fe
--- /dev/null
+++ b/dist/debian/orig-tar.sh
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+SVNROOT=$1
+VERSION=$2
+REVISION=$3
+
+DIR=kbuild-$REVISION
+TAR=../kbuild_$VERSION.orig.tar.gz
+
+svn co -r $REVISION $SVNROOT $DIR
+tar -c -z --exclude '*/kBuild/bin*' --exclude '*/out/*' --exclude '*/.svn*' -f $TAR $DIR
+rm -rf $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+ . .svn/deb-layout
+ mv $TAR $origDir
+ echo "moved $TAR to $origDir"
+fi
+
diff --git a/dist/debian/rules b/dist/debian/rules
new file mode 100755
index 0000000..22995b6
--- /dev/null
+++ b/dist/debian/rules
@@ -0,0 +1,56 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+YACC := YACC=/usr/bin/byacc
+BOOTSTRAP := ASH=/bin/bash ECHO=/bin/echo MKDIR=/bin/mkdir CP=/bin/cp \
+ RM=/bin/rm INSTALL=/usr/bin/install $(YACC)
+
+ifdef KBUILD_FROM_SVN
+SVNROOT := http://svn.netlabs.org/repos/kbuild/trunk
+REVISION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -e's,.*svn,,')
+
+makebuilddir:: SvnInfo.kmk
+SvnInfo.kmk:
+ echo "KBUILD_SVN_URL := $(SVNROOT)" > $@
+ echo "KBUILD_SVN_REV := $(REVISION)" >> $@
+endif
+
+build/kbuild:: debian/stamp-build
+debian/stamp-build:
+ $(info DEBUG: macros defined by gcc:)
+ -gcc -dM -E - < /dev/null
+ kBuild/env.sh --full make -f bootstrap.gmk SRCDIR=`pwd` $(BOOTSTRAP)
+ kBuild/env.sh kmk rebuild PATH_INS=`pwd` $(YACC)
+ pod2man -c 'kBuild for Debian GNU/Linux' \
+ -r kBuild-$(DEB_UPSTREAM_VERSION) debian/kmk.pod > debian/kmk.1
+ touch $@
+
+install/kbuild::
+ kBuild/env.sh kmk install NIX_INSTALL_DIR=/usr \
+ MY_INST_DOC=share/doc/kbuild/ LDFLAGS=-Wl,--as-needed
+
+clean::
+ -kBuild/env.sh kmk uninstall
+ $(RM) -r debian/stamp-* debian/kmk.1 out kBuild/bin/*/*
+ifdef KBUILD_FROM_SVN
+ $(RM) SvnInfo.kmk
+endif
+
+## @todo fetch from ftp://ftp.netlabs.org/pub/kbuild or
+## ftp://ftp.netlabs.org/incoming/kbuild when KBUILD_FROM_SVN isn't
+## defined... (fetch the kBuild-x.y.z-src.tar.gz file)
+
+ifdef KBUILD_FROM_SVN
+get-orig-info:
+ svn info $(SVNROOT)
+
+get-orig-source:
+ sh debian/orig-tar.sh $(SVNROOT) $(DEB_UPSTREAM_VERSION) $(REVISION)
+else
+get-orig-source:
+ wget -O ../tarballs/kbuild_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
+ ftp://ftp.netlabs.org/incoming/kbuild/kBuild-$(DEB_UPSTREAM_VERSION)-src.tar.gz
+endif
+
diff --git a/dist/freebsd/devel/kBuild/Makefile b/dist/freebsd/devel/kBuild/Makefile
new file mode 100644
index 0000000..9ebae0b
--- /dev/null
+++ b/dist/freebsd/devel/kBuild/Makefile
@@ -0,0 +1,102 @@
+# New ports collection makefile for: kbuild
+# Date created: Mon Jul 28 14:34:33 BST 2008
+# Whom: Bruce Simpson
+#
+# $FreeBSD: ports/devel/kBuild/Makefile,v 1.4 2008/12/02 23:14:19 gahr Exp $
+#
+
+PORTNAME= kBuild
+PORTVERSION= 0.1.5
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.netlabs.org/pub/kbuild/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+
+MAINTAINER= que_deseja@hotmail.com
+COMMENT= Makefile framework
+
+USE_AUTOTOOLS= automake:19 autoconf:261
+USE_GMAKE= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+KBUILD_ARCH= ${MACHINE_ARCH:S/i386/x86/}
+KBUILD_ENV= ACLOCAL=${ACLOCAL} \
+ AUTOMAKE=${AUTOMAKE} \
+ AUTORECONF=${AUTORECONF}
+KBUILD_STAGE= ${WRKSRC}/out/freebsd.${KBUILD_ARCH}/release${PREFIX}
+
+# KBUILD_BINS, KBUILD_DATA_FILES and KBUILD_DOC_FILES (generated).
+.include "kBuild-files.mk"
+
+# Override autotools
+run-autotools:
+do-configure:
+
+do-build:
+ cd ${WRKSRC} && ${SETENV} ${KBUILD_ENV} ./kBuild/env.sh --full \
+ ${GMAKE} NIX_INSTALL_DIR=${PREFIX} -f bootstrap.gmk
+ ${WRKSRC}/kBuild/env.sh --full-with-bin \
+ kmk -C ${WRKSRC} NIX_INSTALL_DIR=${PREFIX}
+
+do-install:
+.for file in ${KBUILD_BIN_FILES}
+ ${INSTALL_PROGRAM} ${KBUILD_STAGE}/bin/${file} ${PREFIX}/bin/${file}
+.endfor
+ ${MKDIR} ${DATADIR}
+.for file in ${KBUILD_DATA_FILES}
+ ${MKDIR} `dirname ${DATADIR}/${file}`
+ ${INSTALL_DATA} ${KBUILD_STAGE}/share/kBuild/${file} ${DATADIR}/${file}
+.endfor
+ ${MKDIR} ${DOCSDIR}
+.for file in ${KBUILD_DOC_FILES}
+ ${MKDIR} `dirname ${DOCSDIR}/${file}`
+ ${INSTALL_DATA} ${KBUILD_STAGE}/share/doc/kBuild-${PORTVERSION}/${file} ${DOCSDIR}/${file}
+.endfor
+
+
+.include <bsd.port.mk>
+
+#
+# Helper rule to generate kBuild-files.mk and pkg-plist when updating the port.
+#
+kbuild-generate-files:
+ echo '# Autogenerated by kbuild-generate-files in Makefile' > kBuild-files.mk
+ echo '' >> kBuild-files.mk
+ echo 'KBUILD_BIN_FILES = \' >> kBuild-files.mk
+ ${WRKSRC}/kBuild/env.sh --full-with-bin --quiet \
+ kmk --no-print-directory -sC ${WRKSRC} NIX_INSTALL_DIR=${PREFIX} \
+ MY_INST_BIN=_keep_/ MY_INST_DATA=_drop_/ MY_INST_DOC=_drop_/ \
+ kbuild-show-install-files \
+ | sed -e '/^_drop_/d' -e 's/^_keep_\// /' -e 's/$$/ \\/' \
+ >> kBuild-files.mk
+ echo '' >> kBuild-files.mk
+ echo 'KBUILD_DATA_FILES = \' >> kBuild-files.mk
+ ${WRKSRC}/kBuild/env.sh --full-with-bin --quiet \
+ kmk --no-print-directory -sC ${WRKSRC} NIX_INSTALL_DIR=${PREFIX} \
+ MY_INST_BIN=_drop_/ MY_INST_DATA=_keep_/ MY_INST_DOC=_drop_/ \
+ kbuild-show-install-files \
+ | sed -e '/^_drop_/d' -e 's/^_keep_\// /' -e 's/$$/ \\/' \
+ >> kBuild-files.mk
+ echo '' >> kBuild-files.mk
+ echo 'KBUILD_DOC_FILES = \' >> kBuild-files.mk
+ ${WRKSRC}/kBuild/env.sh --full-with-bin --quiet \
+ kmk --no-print-directory -sC ${WRKSRC} NIX_INSTALL_DIR=${PREFIX} \
+ MY_INST_BIN=_drop_/ MY_INST_DATA=_drop_/ MY_INST_DOC=_keep_/ \
+ kbuild-show-install-files \
+ | sed -e '/^_drop_/d' -e 's/^_keep_\// /' -e 's/$$/ \\/' \
+ >> kBuild-files.mk
+ echo '' >> kBuild-files.mk
+
+ ${WRKSRC}/kBuild/env.sh --full-with-bin --quiet \
+ kmk --no-print-directory -sC ${WRKSRC} NIX_INSTALL_DIR=${PREFIX} \
+ 'MY_INST_BIN=bin/' 'MY_INST_DATA=%%DATADIR%%/' \
+ 'MY_INST_DOC=%%DOCSDIR%%/' kbuild-show-install-files \
+ > pkg-plist
+ echo '@dirrm %%DATADIR%%/msgstyles' >> pkg-plist
+ echo '@dirrm %%DATADIR%%/sdks' >> pkg-plist
+ echo '@dirrm %%DATADIR%%/templates' >> pkg-plist
+ echo '@dirrm %%DATADIR%%/tools' >> pkg-plist
+ echo '@dirrm %%DATADIR%%/units' >> pkg-plist
+ echo '@dirrm %%DATADIR%%' >> pkg-plist
+ echo '@dirrm %%DOCSDIR%%' >> pkg-plist
+
diff --git a/dist/freebsd/devel/kBuild/distinfo b/dist/freebsd/devel/kBuild/distinfo
new file mode 100644
index 0000000..029387c
--- /dev/null
+++ b/dist/freebsd/devel/kBuild/distinfo
@@ -0,0 +1,3 @@
+MD5 (kBuild-0.1.5-src.tar.gz) = df7e0905232e67728643f97d63cbf3f3
+SHA256 (kBuild-0.1.5-src.tar.gz) = db3b672da8f579949e4d8c41d023d6d1ca1ab5626a2e552970ba75e7a3af84b5
+SIZE (kBuild-0.1.5-src.tar.gz) = 2431964
diff --git a/dist/freebsd/devel/kBuild/kBuild-files.mk b/dist/freebsd/devel/kBuild/kBuild-files.mk
new file mode 100644
index 0000000..ab3d6c7
--- /dev/null
+++ b/dist/freebsd/devel/kBuild/kBuild-files.mk
@@ -0,0 +1,116 @@
+# Autogenerated by kbuild-generate-files in Makefile
+
+KBUILD_BIN_FILES = \
+ kmk_sed \
+ kmk \
+ kmk_append \
+ kmk_cat \
+ kmk_chmod \
+ kmk_cp \
+ kmk_cmp \
+ kmk_echo \
+ kmk_expr \
+ kmk_md5sum \
+ kmk_mkdir \
+ kmk_mv \
+ kmk_install \
+ kmk_ln \
+ kmk_printf \
+ kmk_redirect \
+ kmk_rm \
+ kmk_rmdir \
+ kmk_sleep \
+ kmk_test \
+ kDepIDB \
+ kmk_gmake \
+ kmk_fgmake \
+ kmk_ash \
+ kDepPre \
+ kObjCache \
+ kmk_time \
+
+KBUILD_DATA_FILES = \
+ footer.kmk \
+ header.kmk \
+ rules.kmk \
+ subfooter.kmk \
+ subheader.kmk \
+ up.kmk \
+ tools/ALP.kmk \
+ tools/BISON.kmk \
+ tools/FLEX.kmk \
+ tools/GCC.kmk \
+ tools/GCC3.kmk \
+ tools/GCC32.kmk \
+ tools/GCC3OMF.kmk \
+ tools/GCC3PLAIN.kmk \
+ tools/GCC4MACHO.kmk \
+ tools/GCC64.kmk \
+ tools/GXX.kmk \
+ tools/GXX3.kmk \
+ tools/GXX32.kmk \
+ tools/GXX3OMF.kmk \
+ tools/GXX3PLAIN.kmk \
+ tools/GXX4MACHO.kmk \
+ tools/GXX64.kmk \
+ tools/MASM510.kmk \
+ tools/MASM600.kmk \
+ tools/MASM610.kmk \
+ tools/MASM6PLUS.kmk \
+ tools/MASM710.kmk \
+ tools/MINGW32.kmk \
+ tools/MSLINK510.kmk \
+ tools/NASM.kmk \
+ tools/OPENWATCOM-16.kmk \
+ tools/OPENWATCOM-WL.kmk \
+ tools/OPENWATCOM.kmk \
+ tools/TAR.kmk \
+ tools/TARGZ.kmk \
+ tools/VAC308.kmk \
+ tools/VCC70.kmk \
+ tools/VCC80.kmk \
+ tools/VCC80AMD64.kmk \
+ tools/VCC80X86.kmk \
+ tools/WATCOMC11C-16.kmk \
+ tools/WATCOMC11C-WL.kmk \
+ tools/WATCOMC11C.kmk \
+ tools/WGET.kmk \
+ tools/XGCCAMD64LINUX.kmk \
+ tools/YACC.kmk \
+ tools/YASM.kmk \
+ tools/ZIP.kmk \
+ sdks/DXSDK.kmk \
+ sdks/DXSDKAMD64.kmk \
+ sdks/DXSDKX86.kmk \
+ sdks/LIBSDL.kmk \
+ sdks/MACOSX104.kmk \
+ sdks/MACOSX104INCS.kmk \
+ sdks/MACOSX105.kmk \
+ sdks/MACOSX105INCS.kmk \
+ sdks/NT4DDK.kmk \
+ sdks/OS2DDKBASE32.kmk \
+ sdks/W2K3DDK.kmk \
+ sdks/W2K3DDKAMD64.kmk \
+ sdks/W2K3DDKX86.kmk \
+ sdks/W32API.kmk \
+ sdks/WIN32SDK.kmk \
+ sdks/WIN32SDK2002.kmk \
+ sdks/WIN64SDK.kmk \
+ sdks/WINDDK.kmk \
+ sdks/WINDDKW2K.kmk \
+ sdks/WINDDKWLH.kmk \
+ sdks/WINDDKWNET.kmk \
+ sdks/WINDDKWXP.kmk \
+ sdks/WINPSDK.kmk \
+ sdks/WINPSDKINCS.kmk \
+ units/lex.kmk \
+ units/qt3.kmk \
+ units/qt4.kmk \
+ units/yacc.kmk \
+ msgstyles/brief.kmk \
+ templates/DUMMY.kmk \
+
+KBUILD_DOC_FILES = \
+ QuickReference-kmk.txt \
+ QuickReference-kmk.html \
+
diff --git a/dist/freebsd/devel/kBuild/pkg-descr b/dist/freebsd/devel/kBuild/pkg-descr
new file mode 100644
index 0000000..e42b9bf
--- /dev/null
+++ b/dist/freebsd/devel/kBuild/pkg-descr
@@ -0,0 +1 @@
+kBuild is a makefile framework for writing simple makefiles for complex tasks.
diff --git a/dist/freebsd/devel/kBuild/pkg-plist b/dist/freebsd/devel/kBuild/pkg-plist
new file mode 100644
index 0000000..5e80b09
--- /dev/null
+++ b/dist/freebsd/devel/kBuild/pkg-plist
@@ -0,0 +1,115 @@
+bin/kmk_sed
+bin/kmk
+bin/kmk_append
+bin/kmk_cat
+bin/kmk_chmod
+bin/kmk_cp
+bin/kmk_cmp
+bin/kmk_echo
+bin/kmk_expr
+bin/kmk_md5sum
+bin/kmk_mkdir
+bin/kmk_mv
+bin/kmk_install
+bin/kmk_ln
+bin/kmk_printf
+bin/kmk_redirect
+bin/kmk_rm
+bin/kmk_rmdir
+bin/kmk_sleep
+bin/kmk_test
+bin/kDepIDB
+bin/kmk_gmake
+bin/kmk_fgmake
+bin/kmk_ash
+bin/kDepPre
+bin/kObjCache
+bin/kmk_time
+%%DATADIR%%/footer.kmk
+%%DATADIR%%/header.kmk
+%%DATADIR%%/rules.kmk
+%%DATADIR%%/subfooter.kmk
+%%DATADIR%%/subheader.kmk
+%%DATADIR%%/up.kmk
+%%DATADIR%%/tools/ALP.kmk
+%%DATADIR%%/tools/BISON.kmk
+%%DATADIR%%/tools/FLEX.kmk
+%%DATADIR%%/tools/GCC.kmk
+%%DATADIR%%/tools/GCC3.kmk
+%%DATADIR%%/tools/GCC32.kmk
+%%DATADIR%%/tools/GCC3OMF.kmk
+%%DATADIR%%/tools/GCC3PLAIN.kmk
+%%DATADIR%%/tools/GCC4MACHO.kmk
+%%DATADIR%%/tools/GCC64.kmk
+%%DATADIR%%/tools/GXX.kmk
+%%DATADIR%%/tools/GXX3.kmk
+%%DATADIR%%/tools/GXX32.kmk
+%%DATADIR%%/tools/GXX3OMF.kmk
+%%DATADIR%%/tools/GXX3PLAIN.kmk
+%%DATADIR%%/tools/GXX4MACHO.kmk
+%%DATADIR%%/tools/GXX64.kmk
+%%DATADIR%%/tools/MASM510.kmk
+%%DATADIR%%/tools/MASM600.kmk
+%%DATADIR%%/tools/MASM610.kmk
+%%DATADIR%%/tools/MASM6PLUS.kmk
+%%DATADIR%%/tools/MASM710.kmk
+%%DATADIR%%/tools/MINGW32.kmk
+%%DATADIR%%/tools/MSLINK510.kmk
+%%DATADIR%%/tools/NASM.kmk
+%%DATADIR%%/tools/OPENWATCOM-16.kmk
+%%DATADIR%%/tools/OPENWATCOM-WL.kmk
+%%DATADIR%%/tools/OPENWATCOM.kmk
+%%DATADIR%%/tools/TAR.kmk
+%%DATADIR%%/tools/TARGZ.kmk
+%%DATADIR%%/tools/VAC308.kmk
+%%DATADIR%%/tools/VCC70.kmk
+%%DATADIR%%/tools/VCC80.kmk
+%%DATADIR%%/tools/VCC80AMD64.kmk
+%%DATADIR%%/tools/VCC80X86.kmk
+%%DATADIR%%/tools/WATCOMC11C-16.kmk
+%%DATADIR%%/tools/WATCOMC11C-WL.kmk
+%%DATADIR%%/tools/WATCOMC11C.kmk
+%%DATADIR%%/tools/WGET.kmk
+%%DATADIR%%/tools/XGCCAMD64LINUX.kmk
+%%DATADIR%%/tools/YACC.kmk
+%%DATADIR%%/tools/YASM.kmk
+%%DATADIR%%/tools/ZIP.kmk
+%%DATADIR%%/sdks/DXSDK.kmk
+%%DATADIR%%/sdks/DXSDKAMD64.kmk
+%%DATADIR%%/sdks/DXSDKX86.kmk
+%%DATADIR%%/sdks/LIBSDL.kmk
+%%DATADIR%%/sdks/MACOSX104.kmk
+%%DATADIR%%/sdks/MACOSX104INCS.kmk
+%%DATADIR%%/sdks/MACOSX105.kmk
+%%DATADIR%%/sdks/MACOSX105INCS.kmk
+%%DATADIR%%/sdks/NT4DDK.kmk
+%%DATADIR%%/sdks/OS2DDKBASE32.kmk
+%%DATADIR%%/sdks/W2K3DDK.kmk
+%%DATADIR%%/sdks/W2K3DDKAMD64.kmk
+%%DATADIR%%/sdks/W2K3DDKX86.kmk
+%%DATADIR%%/sdks/W32API.kmk
+%%DATADIR%%/sdks/WIN32SDK.kmk
+%%DATADIR%%/sdks/WIN32SDK2002.kmk
+%%DATADIR%%/sdks/WIN64SDK.kmk
+%%DATADIR%%/sdks/WINDDK.kmk
+%%DATADIR%%/sdks/WINDDKW2K.kmk
+%%DATADIR%%/sdks/WINDDKWLH.kmk
+%%DATADIR%%/sdks/WINDDKWNET.kmk
+%%DATADIR%%/sdks/WINDDKWXP.kmk
+%%DATADIR%%/sdks/WINPSDK.kmk
+%%DATADIR%%/sdks/WINPSDKINCS.kmk
+%%DATADIR%%/units/lex.kmk
+%%DATADIR%%/units/qt3.kmk
+%%DATADIR%%/units/qt4.kmk
+%%DATADIR%%/units/yacc.kmk
+%%DATADIR%%/msgstyles/brief.kmk
+%%DATADIR%%/templates/DUMMY.kmk
+%%DOCSDIR%%/QuickReference-kmk.txt
+%%DOCSDIR%%/QuickReference-kmk.html
+@dirrm %%DATADIR%%/msgstyles
+@dirrm %%DATADIR%%/sdks
+@dirrm %%DATADIR%%/templates
+@dirrm %%DATADIR%%/tools
+@dirrm %%DATADIR%%/units
+@dirrm %%DATADIR%%
+@dirrm %%DOCSDIR%%
diff --git a/dist/macports/PortIndex b/dist/macports/PortIndex
new file mode 100644
index 0000000..2676acf
--- /dev/null
+++ b/dist/macports/PortIndex
@@ -0,0 +1,4 @@
+kbuild 336
+variants universal description kBuild portdir devel/kbuild homepage http://svn.netlabs.org/kbuild epoch 0 platforms darwin name kbuild long_description {See http://svn.netlabs.org/kbuild (I'm lazy). Stable version, well, soon to be stable anyways.} maintainers bird-kBuild-spam@anduin.net categories devel version 0.1.3-beta revision 0
+kbuild-head 310
+variants universal description {kBuild subversion trunk} portdir devel/kbuild-head homepage http://svn.netlabs.org/kbuild epoch 0 platforms darwin name kbuild-head long_description {See http://svn.netlabs.org/kbuild (I'm lazy).} maintainers bird-kBuild-spam@anduin.net categories devel version 9999 revision 0
diff --git a/dist/macports/devel/kbuild-head/Portfile b/dist/macports/devel/kbuild-head/Portfile
new file mode 100644
index 0000000..8ca831d
--- /dev/null
+++ b/dist/macports/devel/kbuild-head/Portfile
@@ -0,0 +1,35 @@
+# $Id: Portfile 2413 2010-09-11 17:43:04Z bird $
+# Very crude atm, everything is exec'ed.
+
+PortSystem 1.0
+name kbuild-head
+version 9999
+categories devel
+maintainers bird-kBuild-spamx@anduin.net
+description kBuild subversion trunk
+long_description \
+ See http://svn.netlabs.org/kbuild (I'm lazy).
+
+homepage http://svn.netlabs.org/kbuild
+platforms darwin
+fetch.type svn
+svn.url http://svn.netlabs.org/repos/kbuild/trunk
+#svn.url svn://system360/svn-mirrors/kbuild/trunk
+worksrcdir trunk
+
+test.run no
+
+configure {}
+
+build {
+ system "cd ${workpath}/${worksrcdir} && ./kBuild/env.sh --full gnumake -f bootstrap.gmk NIX_INSTALL_DIR=${prefix} "
+}
+
+test {
+ system "cd ${workpath}/${worksrcdir} && ./kBuild/env.sh --full-with-bin kmk -C tests nothing "
+}
+
+destroot {
+ system "cd ${workpath}/${worksrcdir} && ./kBuild/env.sh --full-with-bin kmk NIX_INSTALL_DIR=${prefix} PATH_INS=${destroot}/ "
+}
+
diff --git a/dist/macports/devel/kbuild/Portfile b/dist/macports/devel/kbuild/Portfile
new file mode 100644
index 0000000..d59e402
--- /dev/null
+++ b/dist/macports/devel/kbuild/Portfile
@@ -0,0 +1,40 @@
+# $Id: Portfile 2413 2010-09-11 17:43:04Z bird $
+# Very crude atm, everything is exec'ed.
+
+PortSystem 1.0
+name kbuild
+version 0.1.5
+categories devel
+maintainers bird-kBuild-spamx@anduin.net
+description kBuild
+long_description \
+ See http://svn.netlabs.org/kbuild (I'm lazy).
+
+homepage http://svn.netlabs.org/kbuild
+platforms darwin
+
+master_sites ftp://ftp.netlabs.org/pub/kbuild \
+ ftp://ftp.netlabs.org/incoming/kbuild
+
+distfiles kBuild-${version}-src.tar.gz
+
+checksums kBuild-${version}-src.tar.gz md5 df7e0905232e67728643f97d63cbf3f3
+
+worksrcdir kBuild-${version}
+
+test.run no
+
+configure {}
+
+build {
+ system "cd ${workpath}/${worksrcdir} && ./kBuild/env.sh --full gnumake -f bootstrap.gmk NIX_INSTALL_DIR=${prefix} "
+}
+
+test {
+ system "cd ${workpath}/${worksrcdir} && ./kBuild/env.sh --full-with-bin kmk -C tests nothing "
+}
+
+destroot {
+ system "cd ${workpath}/${worksrcdir} && ./kBuild/env.sh --full-with-bin kmk NIX_INSTALL_DIR=${prefix} PATH_INS=${destroot}/ "
+}
+
diff --git a/dist/portage/dev-util/kbuild/kbuild-0.1.5.ebuild b/dist/portage/dev-util/kbuild/kbuild-0.1.5.ebuild
new file mode 100644
index 0000000..4aa1f66
--- /dev/null
+++ b/dist/portage/dev-util/kbuild/kbuild-0.1.5.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/kbuild/kbuild-0.1.4.ebuild,v 1.4 2008/10/28 18:11:02 jokey Exp $
+
+EAPI=1
+
+WANT_AUTOMAKE=1.9
+
+inherit eutils autotools
+
+MY_P=kBuild-${PV}-src
+DESCRIPTION="A makefile framework for writing simple makefiles for complex tasks"
+HOMEPAGE="http://svn.netlabs.org/kbuild/wiki"
+SRC_URI="ftp://ftp.netlabs.org/pub/kbuild/${MY_P}.tar.gz"
+
+LICENSE="GPL-2 GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="sys-devel/bison
+ sys-devel/flex
+ sys-devel/gettext"
+
+S=${WORKDIR}/${MY_P/-src}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+}
+
+src_compile() {
+ kBuild/env.sh --full \
+ make -f bootstrap.gmk NIX_INSTALL_DIR=/usr || die "bootstrap failed"
+}
+
+src_install() {
+ kBuild/env.sh --full-with-bin kmk \
+ NIX_INSTALL_DIR=/usr \
+ PATH_INS="${D}" \
+ install || die "install failed"
+}