mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
68 lines
2.1 KiB
Makefile
68 lines
2.1 KiB
Makefile
# Created by: arved
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= matrixssl
|
|
PORTVERSION= 3.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= security
|
|
MASTER_SITES= CPAN
|
|
MASTER_SITE_SUBDIR= CPAN:CDRAKE
|
|
DISTNAME= Crypt-MatrixSSL3-3.3.0.1
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Small alternative SSL implementation
|
|
|
|
LICENSE= GPLv2+
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}-${PORTVERSION:S/./-/g}-open
|
|
|
|
USES= gmake tar:tgz
|
|
MAKE_ARGS= CC="${CC}" DFLAGS="${CFLAGS}" STRIP="${TEST}"
|
|
USE_LDCONFIG= yes
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == mips64 || ${ARCH} == powerpc64 || ${ARCH} == sparc64
|
|
CFLAGS+= -DPSTM_64BIT
|
|
.endif
|
|
|
|
post-extract:
|
|
@cd ${WRKDIR}/${DISTNAME} \
|
|
&& ${TAR} -xf ${PORTNAME}-${PORTVERSION:S/./-/g}-open.tgz
|
|
|
|
pre-patch:
|
|
@cd ${WRKDIR}/${DISTNAME} \
|
|
&& ${CAT} ${PORTNAME}-${PORTVERSION:S/./-/g}-open.patch | \
|
|
${PATCH} -d ${WRKSRC} -p1 --quiet
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|^LDFLAGS|#LDFLAGS|' ${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/libmatrixssl.a ${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_LIB} ${WRKSRC}/libmatrixssl.so ${STAGEDIR}${PREFIX}/lib
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/include/matrixssl
|
|
${INSTALL_DATA} ${WRKSRC}/matrixssl/*.h ${STAGEDIR}${PREFIX}/include/matrixssl
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/include/matrixssl/core
|
|
${INSTALL_DATA} ${WRKSRC}/core/*.h ${STAGEDIR}${PREFIX}/include/matrixssl/core
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/include/matrixssl/crypto
|
|
${INSTALL_DATA} ${WRKSRC}/crypto/*.h ${STAGEDIR}${PREFIX}/include/matrixssl/crypto
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
|
|
|
|
do-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/apps
|
|
${INSTALL_DATA} ${WRKSRC}/apps/Makefile ${STAGEDIR}${EXAMPLESDIR}/apps
|
|
${INSTALL_DATA} ${WRKSRC}/apps/*.c ${STAGEDIR}${EXAMPLESDIR}/apps
|
|
${INSTALL_DATA} ${WRKSRC}/apps/*.h ${STAGEDIR}${EXAMPLESDIR}/apps
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/sampleCerts
|
|
${INSTALL_DATA} ${WRKSRC}/sampleCerts/*.h ${STAGEDIR}${EXAMPLESDIR}/sampleCerts
|
|
${INSTALL_DATA} ${WRKSRC}/sampleCerts/*.pem ${STAGEDIR}${EXAMPLESDIR}/sampleCerts
|
|
|
|
.include <bsd.port.post.mk>
|