diff options
author | itojun <itojun@pkgsrc.org> | 2002-03-23 19:21:47 +0000 |
---|---|---|
committer | itojun <itojun@pkgsrc.org> | 2002-03-23 19:21:47 +0000 |
commit | f87f0472accf51dac5ba3e3d7244f0683cfee6ab (patch) | |
tree | 12259c9ba3cf8efe0782d9c9405c0aa449b26604 /security | |
parent | d1165ef45389bb424d8a69dbd459707839ae7615 (diff) | |
download | pkgsrc-f87f0472accf51dac5ba3e3d7244f0683cfee6ab.tar.gz |
darwin has opensslv.h in /usr/local/include/openssl
Diffstat (limited to 'security')
-rw-r--r-- | security/openssl/buildlink.mk | 11 |
1 files changed, 10 insertions, 1 deletions
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 |