mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-08 12:01:56 +00:00
![Baptiste Daroussin](/assets/img/avatar_default.png)
Remove libevent as libevent2 is providing a good compatibility interface as well as providing better performances. Remove custom patches from libevent2 and install libevent2 the regular way Mark ports abusing private fields of the libevent1 API as broken Import a patch from fedora to have honeyd working with libevent2 Remove most of the patches necessary to find the custom installation we used to have for libevent2 With hat: portmgr
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= spdylay
|
|
PORTVERSION= 1.2.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= www net
|
|
MASTER_SITES= https://github.com/tatsuhiro-t/${PORTNAME}/releases/download/v${PORTVERSION}/ \
|
|
LOCAL/sunpoet
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= SPDY protocol version 2, 3 and 3.1 implementation in C
|
|
|
|
LICENSE= MIT
|
|
|
|
LIB_DEPENDS= libevent_openssl.so:${PORTSDIR}/devel/libevent2
|
|
|
|
CONFIGURE_ARGS= --enable-examples \
|
|
--enable-src
|
|
CONFIGURE_ENV= OPENSSL_CFLAGS="-I${OPENSSLINC}" \
|
|
OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl" \
|
|
ZLIB_CFLAGS="-I${INCLUDEDIR}" \
|
|
ZLIB_LIBS="-L${LIBDIR} -lz"
|
|
GNU_CONFIGURE= yes
|
|
USE_CXXSTD= c++11
|
|
USE_GNOME= libxml2
|
|
USE_LDCONFIG= yes
|
|
USE_OPENSSL= yes
|
|
USES= compiler:c++11-lang libtool pathfix pkgconfig tar:xz
|
|
|
|
PORTDOCS= *
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 1000000 && !defined(WITH_OPENSSL_PORT)
|
|
IGNORE= spdylay requires OpenSSL 1.0.1+
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|^Requires.private: zlib$$|Libs.private: -L${LIBDIR} -lz|' ${WRKSRC}/lib/libspdylay.pc.in
|
|
|
|
post-build:
|
|
@${STRIP_CMD} ${WRKSRC}/lib/.libs/libspdylay.so.7
|
|
|
|
post-install:
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/examples/spdycli ${STAGEDIR}${PREFIX}/bin/
|
|
@${INSTALL_DATA} ${WRKSRC}/shrpx.conf.sample ${STAGEDIR}${PREFIX}/etc/
|
|
|
|
.include <bsd.port.post.mk>
|