Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/ssl.mk
- This file was moved from Mk/bsd.openssl.mk.
# | |||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# bsd.openssl.mk - Support for OpenSSL based ports. | |||||
# | # | ||||
# Use of 'USE_OPENSSL=yes' includes this Makefile after bsd.ports.pre.mk | # Handle dependency on *ssl ports. | ||||
# | # | ||||
# The user/port can now set these options in the Makefiles. | # Feature: SSL_DEFAULT | ||||
# Usage: USES=ssl | |||||
# Valid ARGS: none | |||||
# | # | ||||
# WITH_OPENSSL_BASE=yes - Use the version in the base system. | # The use can choose which ssl library he wants with: | ||||
# WITH_OPENSSL_PORT=yes - Use the OpenSSL port, even if base is up to date. | |||||
# | # | ||||
# USE_OPENSSL_RPATH=yes - Pass RFLAGS options in CFLAGS, | # DEFAULT_VERSIONS+= ssl=openssl | ||||
# needed for ports who don't use LDFLAGS. | |||||
# | # | ||||
# Overrideable defaults: | # valid values are base, openssl, openssl-devel, libressl, | ||||
# and libressl-devel. | |||||
# | # | ||||
# OPENSSL_SHLIBVER= 8 | |||||
# OPENSSL_PORT= security/openssl | |||||
# | |||||
# The Makefile sets these variables: | # The Makefile sets these variables: | ||||
# OPENSSLBASE - "/usr" or ${LOCALBASE} | # OPENSSLBASE - "/usr" or ${LOCALBASE} | ||||
# OPENSSLDIR - path to openssl | # OPENSSLDIR - path to openssl | ||||
# OPENSSLLIB - path to the libs | # OPENSSLLIB - path to the libs | ||||
# OPENSSLINC - path to the matching includes | # OPENSSLINC - path to the matching includes | ||||
# OPENSSLRPATH - rpath for dynamic linker | # OPENSSLRPATH - rpath for dynamic linker | ||||
# | # | ||||
# MAKE_ENV - extended with the variables above | # MAKE_ENV - extended with the variables above | ||||
# CONFIGURE_ENV - extended with LDFLAGS | # CONFIGURE_ENV - extended with LDFLAGS | ||||
# BUILD_DEPENDS - are added if needed | # BUILD_DEPENDS - are added if needed | ||||
# RUN_DEPENDS - are added if needed | # RUN_DEPENDS - are added if needed | ||||
# | |||||
# MAINTAINER: portmgr@FreeBSD.org | |||||
# | |||||
.if !defined(_INCLUDE_USES_SSL_MK) | |||||
_INCLUDE_USES_SSL_MK= yes | |||||
OpenSSL_Include_MAINTAINER= dinoex@FreeBSD.org | |||||
.include "${PORTSDIR}/Mk/bsd.default-versions.mk" | .include "${PORTSDIR}/Mk/bsd.default-versions.mk" | ||||
.if ${SSL_DEFAULT} == base | .if ${SSL_DEFAULT} == base | ||||
OPENSSLBASE= /usr | OPENSSLBASE= /usr | ||||
OPENSSLDIR?= /etc/ssl | OPENSSLDIR?= /etc/ssl | ||||
. if !exists(${DESTDIR}/usr/lib/libcrypto.so) | . if !exists(${DESTDIR}/usr/lib/libcrypto.so) | ||||
check-depends:: | check-depends:: | ||||
▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
CFLAGS+= -Wl,-rpath,${OPENSSLRPATH} | CFLAGS+= -Wl,-rpath,${OPENSSLRPATH} | ||||
. endif | . endif | ||||
MAKE_ENV+= OPENSSLRPATH=${OPENSSLRPATH} | MAKE_ENV+= OPENSSLRPATH=${OPENSSLRPATH} | ||||
OPENSSL_LDFLAGS+= -Wl,-rpath,${OPENSSLRPATH} | OPENSSL_LDFLAGS+= -Wl,-rpath,${OPENSSLRPATH} | ||||
.endif | .endif | ||||
LDFLAGS+= ${OPENSSL_LDFLAGS} | LDFLAGS+= ${OPENSSL_LDFLAGS} | ||||
### crypto | .endif | ||||
#RESTRICTED= "Contains cryptography." |