7f125459d8
pkg-build-options.mk procedure.
37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.36 2007/05/30 08:54:31 rillig Exp $
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
OPENSSL_BUILDLINK3_MK:= ${OPENSSL_BUILDLINK3_MK}+
|
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
BUILDLINK_DEPENDS+= openssl
|
|
.endif
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nopenssl}
|
|
BUILDLINK_PACKAGES+= openssl
|
|
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}openssl
|
|
|
|
.if !empty(OPENSSL_BUILDLINK3_MK:M+)
|
|
BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.6m
|
|
BUILDLINK_ABI_DEPENDS.openssl+= openssl>=0.9.7inb1
|
|
BUILDLINK_PKGSRCDIR.openssl?= ../../security/openssl
|
|
|
|
# Ensure that -lcrypt comes before -lcrypto when linking so that the
|
|
# system crypt() routine is used.
|
|
#
|
|
WRAPPER_REORDER_CMDS+= reorder:l:crypt:crypto
|
|
|
|
SSLBASE= ${BUILDLINK_PREFIX.openssl}
|
|
BUILD_DEFS+= SSLBASE
|
|
.endif # OPENSSL_BUILDLINK3_MK
|
|
|
|
pkgbase := openssl
|
|
.include "../../mk/pkg-build-options.mk"
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.openssl:Mrsaref)
|
|
. include "../../security/rsaref/buildlink3.mk"
|
|
.endif
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|