View | Details | Raw Unified | Return to bug 246273 | Differences between
and this patch

Collapse All | Expand All

(-)aimage/Makefile (-6 / +17 lines)
Lines 17-24 Link Here
17
17
18
USES=		gmake readline ssl
18
USES=		gmake readline ssl
19
GNU_CONFIGURE=	yes
19
GNU_CONFIGURE=	yes
20
# Pretend ssl3_new exists for LibreSSL.  It's never really used but
20
# Pretend ssl3_new exists for LibreSSL.  It's
21
# configure checks for it.
21
# never really used but configure checks for it.
22
CONFIGURE_ARGS=	ac_cv_lib_ssl_ssl3_new=yes
22
CONFIGURE_ARGS=	ac_cv_lib_ssl_ssl3_new=yes
23
23
24
PLIST_FILES=	bin/aimage
24
PLIST_FILES=	bin/aimage
Lines 25-33 Link Here
25
25
26
.include <bsd.port.pre.mk>
26
.include <bsd.port.pre.mk>
27
27
28
.if ${SSL_DEFAULT} == base
28
# LibreSSL -- OpenSSL is a no-go @ >= 12
29
BROKEN_FreeBSD_12=	error: field has incomplete type 'EVP_MD_CTX' (aka 'evp_md_ctx_st')
29
.if ${SSL_DEFAULT:Mlibressl*}
30
BROKEN_FreeBSD_13=	error: field has incomplete type 'EVP_MD_CTX' (aka 'evp_md_ctx_st')
30
CPPFLAGS+=		-I${OPENSSLINC}
31
.endif
31
LDFLAGS+=		-L${OPENSSLLIB}
32
.else # SSL_DEFAULT
33
BUILD_DEPENDS+=		${NONEXISTENT}:security/libressl:stage
34
CPPFLAGS+=		-I${WRKDIR}/libressl/include
35
LDFLAGS+=		-L${WRKDIR}/libressl/lib
32
36
37
# Don't use COPYTREE_SHARE here as it hard links files, and the
38
# original files are owned by root, which creates problems of its own.
39
pre-configure:
40
	@cd `${MAKE} -V STAGEDIR -C ${PORTSDIR}/security/libressl`${PREFIX} \
41
	    && ${FIND} -E . ! -name *.so\* | ${CPIO} -dump ${WRKDIR}/libressl >/dev/null 2>&1
42
.endif # SSL_DEFAULT
43
33
.include <bsd.port.post.mk>
44
.include <bsd.port.post.mk>

Return to bug 246273