blob: a60f03f347478b1b20ca72bfe68c88cb70afdc46 (
plain) (
blame)
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
39
40
41
42
43
44
45
|
# New ports collection makefile for: libmsocket
# Date created: 2008-10-14
# Whom: Matt Harris <mattdharris@users.sourceforge.net>
#
# $FreeBSD$
#
PORTNAME= libmsocket
PORTVERSION= 0.4
PORTREVISION= 1
CATEGORIES= devel net
MASTER_SITES= SF/kageki/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A socket abstraction library for C programmers
LIB_DEPENDS= event:${PORTSDIR}/devel/libevent
USE_BZIP2= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-throttling \
--with-libevent=${LOCALBASE}
PLIST_FILES= lib/libmsocket.so \
lib/libmsocket.so.0.1 \
lib/libmsocket.a \
include/msocket.h \
include/msocketutils.h
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
CFLAGS+= -fPIC -DPIC
.endif
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif
post-patch:
${REINPLACE_CMD} 's, withval=$$with_libevent; cf_enable_libevent=$$enableval, withval=$$with_libevent; cf_enable_libevent=$$with_libevent,' \
${WRKSRC}/configure
.include <bsd.port.post.mk>
|