pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/cdrtools cdrtools: Support clang and handle P...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a7517f1c3a64
branches: trunk
changeset: 374894:a7517f1c3a64
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Wed Jan 31 10:20:26 2018 +0000
description:
cdrtools: Support clang and handle PKGSRC_COMPILER correctly.
diffstat:
sysutils/cdrtools/Makefile | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r befc7f7e3e44 -r a7517f1c3a64 sysutils/cdrtools/Makefile
--- a/sysutils/cdrtools/Makefile Wed Jan 31 09:24:16 2018 +0000
+++ b/sysutils/cdrtools/Makefile Wed Jan 31 10:20:26 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.114 2015/09/29 08:45:29 wiz Exp $
+# $NetBSD: Makefile,v 1.115 2018/01/31 10:20:26 jperkin Exp $
DISTNAME= cdrtools-3.01
PKGNAME= ${DISTNAME:S/a/alpha/:S/-pre/pre/}
@@ -51,8 +51,13 @@
#MAKE_ENV+= LINKMODE=dynamic
# Map PKGSRC_COMPILER to CCOM used by cdrtools build system.
-ccmap.gcc= gcc
-MAKE_FLAGS+= CCOM=${ccmap.${PKGSRC_COMPILER}:Ucc}
+.if !empty(PKGSRC_COMPILER:Mclang)
+MAKE_FLAGS+= CCOM=clang
+.elif !empty(PKGSRC_COMPILER:Mgcc)
+MAKE_FLAGS+= CCOM=gcc
+.else
+MAKE_FLAGS+= CCOM=cc
+.endif
# allow us to override the default /etc/default/cdrecord by patching
# the documentation appropriately. Additionally, we also provide a
Home |
Main Index |
Thread Index |
Old Index