pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/zig



Module Name:    pkgsrc
Committed By:   nikita
Date:           Tue Jun 16 11:01:42 UTC 2020

Added Files:
        pkgsrc/lang/zig: application.mk

Log Message:
Add lang/zig/application, common mk to handle build.zig applications.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/zig/application.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/lang/zig/application.mk
diff -u /dev/null pkgsrc/lang/zig/application.mk:1.1
--- /dev/null   Tue Jun 16 11:01:42 2020
+++ pkgsrc/lang/zig/application.mk      Tue Jun 16 11:01:42 2020
@@ -0,0 +1,20 @@
+# $NetBSD: application.mk,v 1.1 2020/06/16 11:01:42 nikita Exp $
+#
+# Common logic to handle zig packages
+# This is only usable if they include a 'build.zig' file
+#
+.include "../../mk/bsd.fast.prefs.mk"
+
+_ZIGBUILDINSTALLARGS=  -Drelease-fast --prefix ${DESTDIR}${PREFIX}
+
+BUILD_DEPENDS+=                zig-[0-9]*:../../lang/zig
+USE_LANGUAGES=         c
+
+do-build:
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build ${_ZIGBUILDINSTALLARGS}
+
+do-install:
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build install ${_ZIGBUILDINSTALLARGS}
+
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} zig build test



Home | Main Index | Thread Index | Old Index