From 93629dcd509f6c8d9f05da7a2da16b02be20d422 Mon Sep 17 00:00:00 2001 From: jperkin Date: Wed, 31 Jan 2018 10:20:26 +0000 Subject: cdrtools: Support clang and handle PKGSRC_COMPILER correctly. --- sysutils/cdrtools/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'sysutils') diff --git a/sysutils/cdrtools/Makefile b/sysutils/cdrtools/Makefile index 98e75a72c19..16444a6b2a6 100644 --- a/sysutils/cdrtools/Makefile +++ b/sysutils/cdrtools/Makefile @@ -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_FLAGS+= GMAKE_NOWARN=true #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 -- cgit v1.2.3