d74466c1e0
I tried and failed to reverse engineer the build framework to add the rpath in the right place. Give up for now and force it with WRAP_EXTRA_ARGS.CXX. At least it makes the package build again.
39 lines
1 KiB
Makefile
39 lines
1 KiB
Makefile
# $NetBSD: options.mk,v 1.9 2016/05/30 19:52:49 tnn Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.node
|
|
PKG_SUPPORTED_OPTIONS= openssl dtrace icu
|
|
PKG_SUGGESTED_OPTIONS= openssl
|
|
|
|
.if (${OPSYS} == "SunOS" || ${OPSYS} == "Darwin") \
|
|
&& exists(/usr/sbin/dtrace)
|
|
PKG_SUGGESTED_OPTIONS+= dtrace
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
PLIST_VARS+= dtrace
|
|
|
|
.if !empty(PKG_OPTIONS:Mdtrace)
|
|
CONFIGURE_ARGS+= --with-dtrace
|
|
PLIST.dtrace= yes
|
|
.else
|
|
CONFIGURE_ARGS+= --without-dtrace
|
|
.endif
|
|
|
|
# print-PLIST helper
|
|
PRINT_PLIST_AWK+= {if ($$0 ~ /lib\/dtrace/) {$$0 = "$${PLIST.dtrace}" $$0;}}
|
|
|
|
.if !empty(PKG_OPTIONS:Micu)
|
|
CONFIGURE_ARGS+= --with-intl=system-icu
|
|
.include "../../textproc/icu/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mopenssl)
|
|
BUILDLINK_API_DEPENDS.openssl+= openssl>=1.0.2
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --shared-openssl
|
|
_WRAP_EXTRA_ARGS.CXX+= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib
|
|
CWRAPPERS_APPEND.cxx+= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib
|
|
.else
|
|
CONFIGURE_ARGS+= --without-ssl
|
|
.endif
|