summaryrefslogtreecommitdiffstats
path: root/dist/freebsd
diff options
context:
space:
mode:
Diffstat (limited to 'dist/freebsd')
-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
5 files changed, 337 insertions, 0 deletions
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%%