pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
ksh93u+: add MAKE_FLAGS for AST MAM make. Fix building on NetBSD.
Module Name: pkgsrc-wip
Committed By: Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By: vms
Date: Wed Jun 22 18:48:47 2022 +0200
Changeset: 8d422d96a63ff0312fa48e9d9fa8fb4673eaac82
Modified Files:
ksh93u+/Makefile
Log Message:
ksh93u+: add MAKE_FLAGS for AST MAM make.
Fix building on NetBSD.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8d422d96a63ff0312fa48e9d9fa8fb4673eaac82
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
ksh93u+/Makefile | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diffs:
diff --git a/ksh93u+/Makefile b/ksh93u+/Makefile
index df6317c87a..9bae63bb90 100644
--- a/ksh93u+/Makefile
+++ b/ksh93u+/Makefile
@@ -17,14 +17,24 @@ CONFLICTS+= ast-ksh-[0-9]* static-ast-ksh-[0-9]*
USE_LANGUAGES= c c++
FORTIFY_SUPPORTED= no
+MAKE_FLAGS+= CC=${CC:Q} CCFLAGS=${CFLAGS:M*:Q}
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+MAKE_FLAGS+= CCFLAGS=${CFLAGS:M*:Q} -D_NETBSD_SOURCE
+.endif
PKG_SHELL= bin/ksh93
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+WRKSRC= ${WRKDIR}/ksh-${DISTNAME:S,^v,,}
+
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
- ${TOOLS_SHELL} ${WRKSRC}/bin/package make
+ ${TOOLS_SHELL} ${WRKSRC}/bin/package \
+ make ${MAKE_FLAGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/arch/*/bin/ksh \
Home |
Main Index |
Thread Index |
Old Index