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:           Thu Jan 19 20:46:22 UTC 2023

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

Log Message:
zig: application.mk: allow buildoptions to be set.


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

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

Modified files:

Index: pkgsrc/lang/zig/application.mk
diff -u pkgsrc/lang/zig/application.mk:1.1 pkgsrc/lang/zig/application.mk:1.2
--- pkgsrc/lang/zig/application.mk:1.1  Tue Jun 16 11:01:42 2020
+++ pkgsrc/lang/zig/application.mk      Thu Jan 19 20:46:22 2023
@@ -1,20 +1,20 @@
-# $NetBSD: application.mk,v 1.1 2020/06/16 11:01:42 nikita Exp $
+# $NetBSD: application.mk,v 1.2 2023/01/19 20:46:22 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}
+ZIGBUILDARGS?=         -Drelease-fast
 
 BUILD_DEPENDS+=                zig-[0-9]*:../../lang/zig
 USE_LANGUAGES=         c
 
 do-build:
-       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build ${_ZIGBUILDINSTALLARGS}
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build ${ZIGBUILDARGS} --prefix ${DESTDIR}${PREFIX}
 
 do-install:
-       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build install ${_ZIGBUILDINSTALLARGS}
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} zig build install ${ZIGBUILDARGS} --prefix ${DESTDIR}${PREFIX}
 
 do-test:
        cd ${WRKSRC} && ${SETENV} ${TEST_ENV} zig build test



Home | Main Index | Thread Index | Old Index