| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: cwrappers.mk,v 1.15 2014/11/29 22:20:40 joerg Exp $ | | 1 | # $NetBSD: cwrappers.mk,v 1.16 2014/12/09 12:50:24 joerg Exp $ |
2 | # | | 2 | # |
3 | # This Makefile fragment implements integration of pkgtools/cwrappers. | | 3 | # This Makefile fragment implements integration of pkgtools/cwrappers. |
4 | | | 4 | |
5 | BUILD_DEPENDS+= cwrappers>=20141129:../../pkgtools/cwrappers | | 5 | BUILD_DEPENDS+= cwrappers>=20141129:../../pkgtools/cwrappers |
6 | | | 6 | |
7 | CWRAPPERS_SRC_DIR= ${PREFIX}/libexec/cwrappers | | 7 | CWRAPPERS_SRC_DIR= ${PREFIX}/libexec/cwrappers |
8 | CWRAPPERS_BIN_DIR= ${WRKDIR}/.cwrapper/bin | | 8 | CWRAPPERS_BIN_DIR= ${WRKDIR}/.cwrapper/bin |
9 | CWRAPPERS_CONFIG_DIR= ${WRKDIR}/.cwrapper/config | | 9 | CWRAPPERS_CONFIG_DIR= ${WRKDIR}/.cwrapper/config |
10 | CONFIGURE_ENV+= CWRAPPERS_CONFIG_DIR=${CWRAPPERS_CONFIG_DIR} | | 10 | CONFIGURE_ENV+= CWRAPPERS_CONFIG_DIR=${CWRAPPERS_CONFIG_DIR} |
11 | MAKE_ENV+= CWRAPPERS_CONFIG_DIR=${CWRAPPERS_CONFIG_DIR} | | 11 | MAKE_ENV+= CWRAPPERS_CONFIG_DIR=${CWRAPPERS_CONFIG_DIR} |
12 | ALL_ENV+= CWRAPPERS_CONFIG_DIR=${CWRAPPERS_CONFIG_DIR} | | 12 | ALL_ENV+= CWRAPPERS_CONFIG_DIR=${CWRAPPERS_CONFIG_DIR} |
13 | | | 13 | |
14 | # TODO: Fix direct calls to CC and LIBTOOL to provide correct environment. | | 14 | # TODO: Fix direct calls to CC and LIBTOOL to provide correct environment. |
| @@ -25,30 +25,30 @@ CWRAPPERS_CONFIG.libtool= libtool | | | @@ -25,30 +25,30 @@ CWRAPPERS_CONFIG.libtool= libtool |
25 | CWRAPPERS_CONFIG.shlibtool= shlibtool | | 25 | CWRAPPERS_CONFIG.shlibtool= shlibtool |
26 | | | 26 | |
27 | CWRAPPERS_ALIASES.as= as | | 27 | CWRAPPERS_ALIASES.as= as |
28 | CWRAPPERS_ALIASES.cc= cc gcc clang | | 28 | CWRAPPERS_ALIASES.cc= cc gcc clang |
29 | CWRAPPERS_ALIASES.cxx= c++ g++ CC cxx clang++ | | 29 | CWRAPPERS_ALIASES.cxx= c++ g++ CC cxx clang++ |
30 | CWRAPPERS_ALIASES.cpp= cpp clang-cpp | | 30 | CWRAPPERS_ALIASES.cpp= cpp clang-cpp |
31 | CWRAPPERS_ALIASES.f77= f77 g77 | | 31 | CWRAPPERS_ALIASES.f77= f77 g77 |
32 | CWRAPPERS_ALIASES.imake= imake | | 32 | CWRAPPERS_ALIASES.imake= imake |
33 | CWRAPPERS_ALIASES.ld= ld | | 33 | CWRAPPERS_ALIASES.ld= ld |
34 | CWRAPPERS_ALIASES.libtool= libtool | | 34 | CWRAPPERS_ALIASES.libtool= libtool |
35 | CWRAPPERS_ALIASES.shlibtool= shlibtool | | 35 | CWRAPPERS_ALIASES.shlibtool= shlibtool |
36 | | | 36 | |
37 | CWRAPPERS_WRAPPEE.as= ${AS:Ufalse} | | 37 | CWRAPPERS_WRAPPEE.as= ${AS:Ufalse} |
38 | CWRAPPERS_WRAPPEE.cxx= ${CXX:Ufalse} | | 38 | CWRAPPERS_WRAPPEE.cxx= ${PKG_CXX:Ufalse} |
39 | CWRAPPERS_WRAPPEE.cc= ${CC:Ufalse} | | 39 | CWRAPPERS_WRAPPEE.cc= ${PKG_CC:Ufalse} |
40 | CWRAPPERS_WRAPPEE.cpp= ${CPP:Ufalse} | | 40 | CWRAPPERS_WRAPPEE.cpp= ${PKG_CPP:Ufalse} |
41 | CWRAPPERS_WRAPPEE.f77= ${F77:Ufalse} | | 41 | CWRAPPERS_WRAPPEE.f77= ${PKG_FC:Ufalse} |
42 | CWRAPPERS_WRAPPEE.imake= ${IMAKE:Ufalse} | | 42 | CWRAPPERS_WRAPPEE.imake= ${IMAKE:Ufalse} |
43 | CWRAPPERS_WRAPPEE.ld= ${LD:Ufalse} | | 43 | CWRAPPERS_WRAPPEE.ld= ${LD:Ufalse} |
44 | CWRAPPERS_WRAPPEE.libtool= ${PKG_LIBTOOL:Ufalse} | | 44 | CWRAPPERS_WRAPPEE.libtool= ${PKG_LIBTOOL:Ufalse} |
45 | CWRAPPERS_WRAPPEE.shlibtool= ${PKG_SHLIBTOOL:Ufalse} | | 45 | CWRAPPERS_WRAPPEE.shlibtool= ${PKG_SHLIBTOOL:Ufalse} |
46 | | | 46 | |
47 | # TODO: Find and fix packages depending on the implicit include path. | | 47 | # TODO: Find and fix packages depending on the implicit include path. |
48 | CWRAPPERS_APPEND.cc+= -I${PREFIX}/include | | 48 | CWRAPPERS_APPEND.cc+= -I${PREFIX}/include |
49 | CWRAPPERS_APPEND.cxx+= -I${PREFIX}/include | | 49 | CWRAPPERS_APPEND.cxx+= -I${PREFIX}/include |
50 | CWRAPPERS_APPEND.cpp+= -I${PREFIX}/include | | 50 | CWRAPPERS_APPEND.cpp+= -I${PREFIX}/include |
51 | | | 51 | |
52 | .if defined(USE_IMAKE) || !empty(USE_TOOLS:Mimake) | | 52 | .if defined(USE_IMAKE) || !empty(USE_TOOLS:Mimake) |
53 | CWRAPPERS_TRANSFORM.imake+= I:${PREFIX}/lib/X11/config:${PREFIX}/lib/X11/config | | 53 | CWRAPPERS_TRANSFORM.imake+= I:${PREFIX}/lib/X11/config:${PREFIX}/lib/X11/config |
54 | .endif | | 54 | .endif |