summaryrefslogtreecommitdiffstats
path: root/devel/lion/Makefile
blob: 026da3af03f3933bf2ab00244e089d787c84645d (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
38
# Created by: Marco Molteni <molterSPAM@gufiSPAM.org>
# $FreeBSD$

PORTNAME=	lion
DISTVERSION=	20060630
CATEGORIES=	devel net
MASTER_SITES=	http://www.lundman.net/ftp/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Multi-platform, event-driven, simple networking library

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/license.txt

# TODO
# add support for SSL/TLS/OpenSSL
USES=		gmake tar:tgz
WRKSRC=		${WRKDIR}/${PORTNAME}
ALL_TARGET=	default

INCLUDES=	base64.h connections.h io.h lfnmatch.h lgroup.h lion.h \
		lion_rcsid.h lion_types.h misc.h pipe.h sockets.h \
		timers.h tls.h udp.h zlib.h

post-patch:
	@${REINPLACE_CMD} -e 's,<time.h>,<sys/time.h>,' \
		${WRKSRC}/timers.h
	@${REINPLACE_CMD} -E 's,^(CC|LDFLAGS) *=,\1 ?=,' \
		${WRKSRC}/Makefile

do-install:
	${INSTALL_DATA} ${WRKSRC}/liblion.a ${STAGEDIR}${PREFIX}/lib
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/lion
.for i in ${INCLUDES}
	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/include/lion
.endfor

.include <bsd.port.mk>
OpenPOWER on IntegriCloud