diff options
author | jperkin <jperkin@pkgsrc.org> | 2018-01-31 10:20:26 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2018-01-31 10:20:26 +0000 |
commit | 93629dcd509f6c8d9f05da7a2da16b02be20d422 (patch) | |
tree | 1f24d275109e9588b270f44aa59af30cb800af92 /sysutils | |
parent | 3dd52315f4584e69d314ed482b6a5751d5f93b48 (diff) | |
download | pkgsrc-93629dcd509f6c8d9f05da7a2da16b02be20d422.tar.gz |
cdrtools: Support clang and handle PKGSRC_COMPILER correctly.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/cdrtools/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
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 |