From fa311bae402c4d762d8beef8eaec92a04ae30310 Mon Sep 17 00:00:00 2001 From: itojun Date: Sat, 23 Mar 2002 19:21:47 +0000 Subject: darwin has opensslv.h in /usr/local/include/openssl --- security/openssl/buildlink.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'security') diff --git a/security/openssl/buildlink.mk b/security/openssl/buildlink.mk index 23e709509cc..f034c39d287 100644 --- a/security/openssl/buildlink.mk +++ b/security/openssl/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.10 2001/10/17 17:56:57 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.11 2002/03/23 19:21:47 itojun Exp $ # # This Makefile fragment is included by packages that use OpenSSL. # @@ -38,7 +38,11 @@ BUILDLINK_DEPENDS.openssl= openssl>=0.9.6 .endif _NEED_OPENSSL= YES +.if ${OPSYS} == "Darwin" +_OPENSSLV_H= /usr/local/include/openssl/opensslv.h +.else _OPENSSLV_H= /usr/include/openssl/opensslv.h +.endif .if exists(${_OPENSSLV_H}) _OPENSSL_VERSION!= ${AWK} '/.*OPENSSL_VERSION_NUMBER.*/ { print $$3 }' \ ${_OPENSSLV_H} @@ -77,8 +81,13 @@ BUILDLINK_PREFIX.openssl_DEFAULT= ${LOCALBASE} SSLBASE= ${BUILDLINK_PREFIX.openssl} SSLCERTS= ${SSLBASE}/certs .else +.if ${OPSYS} == "Darwin" +BUILDLINK_PREFIX.openssl= /usr/local +SSLBASE= /usr/local +.else BUILDLINK_PREFIX.openssl= /usr SSLBASE= /usr +.endif SSLCERTS= /etc/openssl/certs .endif BUILD_DEFS+= SSLBASE SSLCERTS -- cgit v1.2.3