mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
90 lines
2.8 KiB
Makefile
90 lines
2.8 KiB
Makefile
# New ports collection makefile for: spserver
|
|
# Date created: 18 June 2007
|
|
# Whom: vanilla@
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= spserver
|
|
PORTVERSION= 0.9.5
|
|
PORTREVISION= 2
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
|
|
|
MAINTAINER= vanilla@FreeBSD.org
|
|
COMMENT= A TCP server framework library written in C++ based on libevent
|
|
|
|
LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
USE_LDCONFIG= yes
|
|
USE_GMAKE= yes
|
|
ALL_TARGET= all build_openssl
|
|
|
|
OPTIONS= GNUTLS "Enable gnutls support" off
|
|
# MATRIXSSL "Enable matrixssl support" off \
|
|
# XYSSL "Enable xyssl support" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_MATRIXSSL)
|
|
BUILD_DEPENDS= ${PREFIX}/lib/libmatrixsslstatic.a:${PORTSDIR}/security/matrixssl
|
|
ALL_TARGET+= build_matrixssl
|
|
PLIST_SUB+= WITH_MATRIXSSL=""
|
|
.else
|
|
PLIST_SUB+= WITH_MATRIXSSL="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_GNUTLS)
|
|
LIB_DEPENDS+= gnutls.47:${PORTSDIR}/security/gnutls
|
|
ALL_TARGET+= build_gnutls
|
|
PLIST_SUB+= WITH_GNUTLS=""
|
|
.else
|
|
PLIST_SUB+= WITH_GNUTLS="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_XYSSL)
|
|
BUILD_DEPENDS= ${PREFIX}/lib/libxyssl.a:${PORTSDIR}/security/xyssl
|
|
ALL_TARGET+= build_xyssl
|
|
PLIST_SUB+= WITH_XYSSL=""
|
|
.else
|
|
PLIST_SUB+= WITH_XYSSL="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
${SED} -i -E 's,%PREFIX%,${PREFIX},g' ${WRKSRC}/spserver/Makefile
|
|
${SED} -i -E 's,%PREFIX%,${PREFIX},g' ${WRKSRC}/gnutls/Makefile
|
|
${SED} -i -E 's,%PREFIX%,${PREFIX},g' ${WRKSRC}/matrixssl/Makefile
|
|
${SED} -i -E 's,%PREFIX%,${PREFIX},g' ${WRKSRC}/openssl/Makefile
|
|
${SED} -i -E 's,%PREFIX%,${PREFIX},g' ${WRKSRC}/xyssl/Makefile
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/include/spserver
|
|
@${INSTALL} ${WRKSRC}/spserver/*.hpp ${PREFIX}/include/spserver
|
|
@${INSTALL} ${WRKSRC}/spserver/libspserver.so ${PREFIX}/lib/libspserver.so.1
|
|
@${LN} -s ${PREFIX}/lib/libspserver.so.1 ${PREFIX}/lib/libspserver.so
|
|
@${INSTALL} ${WRKSRC}/openssl/spopenssl.hpp ${PREFIX}/include/spserver
|
|
@${INSTALL} ${WRKSRC}/openssl/libspopenssl.so ${PREFIX}/lib/libspopenssl.so.1
|
|
@${LN} -s ${PREFIX}/lib/libspopenssl.so.1 ${PREFIX}/lib/libspopenssl.so
|
|
|
|
.if defined (WITH_GNUTLS)
|
|
@${INSTALL} ${WRKSRC}/gnutls/spgnutls.hpp ${PREFIX}/include/spserver
|
|
@${INSTALL} ${WRKSRC}/gnutls/libspgnutls.so ${PREFIX}/lib/libspgnutls.so.1
|
|
@${LN} -s ${PREFIX}/lib/libspgnutls.so.1 ${PREFIX}/lib/libspgnutls.so
|
|
.endif
|
|
|
|
.if defined (WITH_MATRIXSSL)
|
|
@${INSTALL} ${WRKSRC}/matrixssl/spmatrixssl.hpp ${PREFIX}/include/spserver
|
|
@${INSTALL} ${WRKSRC}/matrixssl/libspmatrixssl.so ${PREFIX}/lib/libspmatrixssl.so.1
|
|
@${LN} -s ${PREFIX}/lib/libspmatrixssl.so.1 ${PREFIX}/lib/libspmatrixssl.so
|
|
.endif
|
|
|
|
.if defined (WITH_XYSSL)
|
|
@${INSTALL} ${WRKSRC}/xyssl/spxyssl.hpp ${PREFIX}/include/spserver
|
|
@${INSTALL} ${WRKSRC}/xyssl/libspxyssl.so ${PREFIX}/lib/libspxyssl.so.1
|
|
@${LN} -s ${PREFIX}/lib/libspxyssl.so.1 ${PREFIX}/lib/libspxyssl.so
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|