diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2012-09-08 17:58:57 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2012-09-08 17:58:57 +0800 |
commit | 5eb2561a9bbda46203c812349a14372192192e6a (patch) | |
tree | 3b8a2579fb75270c21c814b41fdf5270513b94cf /devel/ccache | |
parent | ae572f90c86afd6c9c9ce590ee830c4a6551c3b8 (diff) | |
download | freebsd-ports-gnome-5eb2561a9bbda46203c812349a14372192192e6a.tar.gz freebsd-ports-gnome-5eb2561a9bbda46203c812349a14372192192e6a.tar.zst freebsd-ports-gnome-5eb2561a9bbda46203c812349a14372192192e6a.zip |
- Use OPTIONSng
- Remove deprecated header information
Diffstat (limited to 'devel/ccache')
-rw-r--r-- | devel/ccache/Makefile | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/devel/ccache/Makefile b/devel/ccache/Makefile index 24950c31abea..7aa68ea725ff 100644 --- a/devel/ccache/Makefile +++ b/devel/ccache/Makefile @@ -1,9 +1,4 @@ -# New ports collection makefile for: ccache -# Date created: 31/03/2002 -# Whom: Dominic Marks <d.marks@student.umist.ac.uk> -# # $FreeBSD$ -# PORTNAME= ccache PORTVERSION= 3.1.8 @@ -25,11 +20,12 @@ MAN1= ccache.1 PORTDOCS= ccache-howto-freebsd.txt MANUAL.html -OPTIONS= CLANGLINK "Create clang compiler links if clang is installed" off \ - LLVMLINK "Create llvm compiler links if llvm is installed" off \ - STATIC "Statically build ccache" off +OPTIONS_DEFINE= CLANGLINK LLVMLINK STATIC -.include <bsd.port.pre.mk> +CLANGLINK_DESC= Create clang compiler links if clang is installed +LLVMLINK_DESC= Create llvm compiler links if llvm is installed + +.include <bsd.port.options.mk> PLIST_SUB+= CCLINKDIR="${CCLINKDIR}" @@ -40,15 +36,15 @@ CCACHE_COMPILERS+= icc icpc GNU_COMPILERS+= 34 42 43 44 45 46 47 48 CCACHE_COMPILERS+= cc c++ gcc g++ ${GNU_COMPILERS:S|^|gcc|} ${GNU_COMPILERS:S|^|g++|} -.if defined(WITH_CLANGLINK) +.if ${PORT_OPTIONS:MCLANGLINK} CCACHE_COMPILERS+= clang clang++ .endif -.if defined(WITH_LLVMLINK) +.if ${PORT_OPTIONS:MLLVMLINK} CCACHE_COMPILERS+= llvm-gcc llvm-c++ llvm-g++ .endif -.if defined(WITH_STATIC) +.if ${PORT_OPTIONS:MSTATIC} LDFLAGS+= "--static" .endif @@ -88,8 +84,8 @@ post-install: @${ECHO_CMD} "Creating compiler links..." @${PREFIX}/bin/ccache-update-links -v @${CAT} ${PKGMESSAGE} -.if defined(WITH_CLANGLINK) +.if ${PORT_OPTIONS:MCLANGLINK} @${CAT} ${FILESDIR}/pkg-message-clang .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |