functionality, so you can create sockets for both stream and datagram based protocols and use these to transmit messages. Unix-style file sockets are also available if the host system supports them. WWW: http://docs.pure-lang.googlecode.com/hg/pure-sockets.html PR: ports/156103 Submitted by: Zhihao Yuan <lichray at gmail.com>
39 lines
876 B
Makefile
39 lines
876 B
Makefile
# New ports collection makefile for: pure-sockets
|
|
# Date created: 2011-03-18
|
|
# Whom: Zhihao Yuan <lichray@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pure-sockets
|
|
PORTVERSION= 0.4
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://pure-lang.googlecode.com/files/
|
|
|
|
MAINTAINER= lichray@gmail.com
|
|
COMMENT= Pure language interface to the Berkeley socket functions
|
|
|
|
BUILD_DEPENDS+= clang>=2.8:${PORTSDIR}/lang/clang
|
|
LIB_DEPENDS+= pure.7:${PORTSDIR}/lang/pure
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
PLIST_FILES= lib/pure/sockets.pure \
|
|
lib/pure/sockets.so
|
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKE_ARGS+= prefix=${PREFIX} CPPFLAGS+=-I${LOCALBASE}/include \
|
|
LDFLAGS+=-L${LOCALBASE}/lib CFLAGS="${CFLAGS}"
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-install:
|
|
.if !defined(NOPORTEXAMPLES)
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|