summaryrefslogtreecommitdiff
path: root/net/freeradius
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-10-08 15:50:39 +0000
committerjperkin <jperkin@pkgsrc.org>2018-10-08 15:50:39 +0000
commit75273991299735dd9cc6a2886057c5e22fdeb492 (patch)
treefecad8077fc792dca7f86ae41e0bb74551accdfb /net/freeradius
parent88bb7870b361d3855596377a838108fcc237fa7c (diff)
downloadpkgsrc-75273991299735dd9cc6a2886057c5e22fdeb492.tar.gz
freeradius: Move openssl buildlink into common file.
Also add explicit openssl configure arguments. Fixes issue where the module builds could not find openssl.
Diffstat (limited to 'net/freeradius')
-rw-r--r--net/freeradius/Makefile3
-rw-r--r--net/freeradius/Makefile.common5
2 files changed, 5 insertions, 3 deletions
diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile
index bca044fcfd0..1338fdbb2d6 100644
--- a/net/freeradius/Makefile
+++ b/net/freeradius/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.98 2018/09/25 12:20:05 jperkin Exp $
+# $NetBSD: Makefile,v 1.99 2018/10/08 15:50:39 jperkin Exp $
.include "Makefile.common"
@@ -219,5 +219,4 @@ TEST_MAKE_FLAGS+= EAPOL_TEST=""
post-install:
${RM} -f ${DESTDIR}${PREFIX}/lib/*.a ${DESTDIR}${PREFIX}/lib/*.la
-.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/freeradius/Makefile.common b/net/freeradius/Makefile.common
index 8a9eb25e0cf..ff414adef04 100644
--- a/net/freeradius/Makefile.common
+++ b/net/freeradius/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.3 2018/09/25 12:16:36 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.4 2018/10/08 15:50:39 jperkin Exp $
# used by net/freeradius/Makefile.module
DISTNAME= freeradius-server-3.0.17
@@ -14,6 +14,8 @@ GNU_CONFIGURE= yes
USE_TOOLS+= gmake perl
USE_LANGUAGES+= c c++
+CONFIGURE_ARGS+= --with-openssl-include-dir=${BUILDLINK_PREFIX.openssl}/include
+CONFIGURE_ARGS+= --with-openssl-lib-dir=${BUILDLINK_PREFIX.openssl}/lib
CONFIGURE_ARGS+= --without-rlm_yubikey
CFLAGS.SunOS+= -D_XPG4_2 -D__EXTENSIONS__
@@ -27,3 +29,4 @@ INSTALLATION_DIRS+= lib
.include "../../databases/gdbm/buildlink3.mk"
.include "../../devel/talloc/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"