summaryrefslogtreecommitdiff
path: root/devel/libevent/Makefile
blob: e1b32dcdb104ee828193ffb7402f9b7174612ca5 (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
39
40
41
42
43
44
45
# $NetBSD: Makefile,v 1.25 2007/10/04 06:06:19 dmcmahill Exp $
#
# WARNING: updating this package (as of the 1.1/1.2 releases) means
# updating BUILDLINK_ABI_DEPENDS in buildlink3.mk and a PKGREVISION
# bump of all first-level dependents.  This is because the shlib
# name contains the exact libevent release number, preventing it
# from being ABI compatible across releases until this is fixed.
# [tvierling 20070210]

DISTNAME=	libevent-1.3d
PKGREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	http://monkey.org/~provos/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://monkey.org/~provos/libevent/
COMMENT=	Asynchronous event notification library

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
TEST_TARGET=	verify
PKG_DESTDIR_SUPPORT=	user-destdir

LIBS.SunOS+=	-lnsl -lresolv

# XXX helps build, but needs more testing
#CFLAGS.Interix+=	-Dsockaddr_storage=sockaddr_in -DNI_MAXSERV=32

.include "../../mk/bsd.prefs.mk"

# Solaris and HPUX don't have u_intX_t types in <inttypes.h>.
.if ${OPSYS} == "SunOS" || ${OPSYS} == "HPUX"
CFLAGS+=	-Du_int8_t=uint8_t
CFLAGS+=	-Du_int16_t=uint16_t
CFLAGS+=	-Du_int32_t=uint32_t

SUBST_CLASSES+=		inttypes
SUBST_STAGE.inttypes=	post-patch
SUBST_FILES.inttypes=	event.h
SUBST_SED.inttypes=	-e "s,u_int8_t,uint8_t,g"
SUBST_SED.inttypes+=	-e "s,u_int16_t,uint16_t,g"
SUBST_SED.inttypes+=	-e "s,u_int32_t,uint32_t,g"
.endif

.include "../../mk/bsd.pkg.mk"