609dccc1fd
has been linking with Apple's CommonCrypto instead. Add an "apple-common-crypto" option that explicitly avoids CommonCrypto when it's off. Turn it off by default, and set PKG_FAIL_REASON if it's enabled on an unsuitable system. While here, regenerate fuzzy patches. Addresses pkg/49051. Bump PKGREVISION.
36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
# $NetBSD: options.mk,v 1.3 2014/08/01 19:18:39 schmonz Exp $
|
|
#
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.git
|
|
PKG_SUPPORTED_OPTIONS= python apple-common-crypto
|
|
# python is not suggested because upstream's INSTALL does not list python
|
|
# as a dependency and because all it does is install a python module,
|
|
# which does not seem worth the dependency for everyone else.
|
|
PKG_SUGGESTED_OPTIONS=
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
PLIST_VARS+= python
|
|
|
|
.if !empty(PKG_OPTIONS:Mpython)
|
|
PY_PATCHPLIST= yes
|
|
CONFIGURE_ARGS+= --with-python=${PYTHONBIN}
|
|
PLIST.python= yes
|
|
# not executable
|
|
CHECK_INTERPRETER_SKIP+= ${PYSITELIB}/git_remote_helpers/*.py
|
|
CHECK_INTERPRETER_SKIP+= ${PYSITELIB}/git_remote_helpers/git/*.py
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --without-python
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mapple-common-crypto)
|
|
. if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
|
|
PKG_FAIL_REASON= "apple-common-crypto not available on this system"
|
|
. endif
|
|
CONFIGURE_ARGS+= --without-openssl
|
|
.else
|
|
CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
MAKE_FLAGS+= NO_APPLE_COMMON_CRYPTO=1
|
|
.endif
|