summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg>2014-12-12 10:50:17 +0000
committerjoerg <joerg>2014-12-12 10:50:17 +0000
commit88ed9c0ee3a1bf00dff9ed3146d2bebcf92571fd (patch)
treea66e5f5f49f23ad69c73809a1b9ec81ccfbe704b
parent6bac832f065f5964820ed3c5967a6ab7b642dc59 (diff)
downloadpkgsrc-88ed9c0ee3a1bf00dff9ed3146d2bebcf92571fd.tar.gz
Use append for IMAKEOPTS and the real path for exec as IMAKE includes
the options.
-rw-r--r--mk/cwrappers.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/cwrappers.mk b/mk/cwrappers.mk
index ddec3d28347..e568d11f8f0 100644
--- a/mk/cwrappers.mk
+++ b/mk/cwrappers.mk
@@ -1,4 +1,4 @@
-# $NetBSD: cwrappers.mk,v 1.19 2014/12/12 10:12:50 joerg Exp $
+# $NetBSD: cwrappers.mk,v 1.20 2014/12/12 10:50:17 joerg Exp $
#
# This Makefile fragment implements integration of pkgtools/cwrappers.
@@ -40,7 +40,7 @@ CWRAPPERS_WRAPPEE.cxx= ${PKG_CXX:Ufalse}
CWRAPPERS_WRAPPEE.cc= ${PKG_CC:Ufalse}
CWRAPPERS_WRAPPEE.cpp= ${PKG_CPP:Ufalse}
CWRAPPERS_WRAPPEE.f77= ${PKG_FC:Ufalse}
-CWRAPPERS_WRAPPEE.imake= ${IMAKE:Ufalse}
+CWRAPPERS_WRAPPEE.imake= ${TOOLS_PATH.imake:Ufalse}
CWRAPPERS_WRAPPEE.ld= ${LD:Ufalse}
CWRAPPERS_WRAPPEE.libtool= ${PKG_LIBTOOL:Ufalse}
CWRAPPERS_WRAPPEE.shlibtool= ${PKG_SHLIBTOOL:Ufalse}
@@ -52,6 +52,7 @@ CWRAPPERS_APPEND.cpp+= -I${PREFIX}/include
.if defined(USE_IMAKE) || !empty(USE_TOOLS:Mimake)
CWRAPPERS_TRANSFORM.imake+= I:${PREFIX}/lib/X11/config:${PREFIX}/lib/X11/config
+CWRAPPERS_APPEND.imake+= ${IMAKEOPTS}
.endif
.PHONY: generate-cwrappers