summaryrefslogtreecommitdiff
path: root/devel/mingw32-openssl/Makefile
blob: 8051ac39ac7c9d8e06d3de1f99ddf167e4b9ed76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$

PORTNAME=	openssl
PORTVERSION=	1.0.1m
CATEGORIES=	devel security
MASTER_SITES=	http://www.openssl.org/source/ \
		ftp://ftp.openssl.org/source/ \
		ftp://ftp.cert.dfn.de/pub/tools/net/openssl/source/
PKGNAMEPREFIX=	mingw32-
DIST_SUBDIR=	${DISTNAME}

MAINTAINER=	knu@FreeBSD.org
COMMENT=	The OpenSSL library cross-compiled for MinGW32

BUILD_DEPENDS=	makedepend:${PORTSDIR}/devel/makedepend \
		${PKGNAMEPREFIX}gcc:${PORTSDIR}/devel/${PKGNAMEPREFIX}gcc \
		${LOCALBASE}/mingw32/include/stdlib.h:${PORTSDIR}/devel/${PKGNAMEPREFIX}bin-msvcrt \
		${LOCALBASE}/mingw32/lib/libz.a:${PORTSDIR}/devel/mingw32-zlib

USES=		perl5
USE_PERL5=	build
MAKE_JOBS_UNSAFE=	yes
CONFIGURE_PREFIX=	${PREFIX}/mingw32
OPENSSLDIR=		${CONFIGURE_PREFIX}/openssl
INSTALL_TARGET=		install_sw

post-patch:
	@${REINPLACE_CMD} -e 's|m4 -B 8192|m4|g' \
		${WRKSRC}/crypto/des/Makefile

do-configure:
	cd ${WRKSRC} && ${SETENV} PERL="${PERL}" CROSS_COMPILE="${PKGNAMEPREFIX}" \
	./Configure mingw --prefix="${CONFIGURE_PREFIX}" --install_prefix=${STAGEDIR} \
	--openssldir="${OPENSSLDIR}"

.include <bsd.port.mk>