2d1ba244e9
This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
30 lines
775 B
Makefile
30 lines
775 B
Makefile
# $NetBSD: buildlink3.mk,v 1.40 2009/03/20 19:25:21 joerg Exp $
|
|
|
|
BUILDLINK_TREE+= openssl
|
|
|
|
.if !defined(OPENSSL_BUILDLINK3_MK)
|
|
OPENSSL_BUILDLINK3_MK:=
|
|
|
|
. include "../../mk/bsd.fast.prefs.mk"
|
|
|
|
BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.6m
|
|
BUILDLINK_ABI_DEPENDS.openssl+= openssl>=0.9.8g
|
|
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
|
|
|
|
pkgbase := openssl
|
|
.include "../../mk/pkg-build-options.mk"
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.openssl:Mrsaref)
|
|
. include "../../security/rsaref/buildlink3.mk"
|
|
.endif
|
|
.endif # OPENSSL_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -openssl
|