diff options
author | wiz <wiz@pkgsrc.org> | 2003-06-23 13:28:53 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2003-06-23 13:28:53 +0000 |
commit | 12ed032c2fbf10391f1d6ac14fdf1abc53c4340b (patch) | |
tree | f24649e0c524b02e3e323098bda36698035a2a9e /devel/libevent | |
parent | cab473e0d9ffbc9ddc30da3e250c207c271b2c39 (diff) | |
download | pkgsrc-12ed032c2fbf10391f1d6ac14fdf1abc53c4340b.tar.gz |
Do not add dependency if /usr/include/event.h exists.
Based on patch by Juan RP, slightly modified by me.
Diffstat (limited to 'devel/libevent')
-rw-r--r-- | devel/libevent/buildlink2.mk | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/devel/libevent/buildlink2.mk b/devel/libevent/buildlink2.mk index 6912a2310aa..8920f73681f 100644 --- a/devel/libevent/buildlink2.mk +++ b/devel/libevent/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.1 2003/06/04 17:15:35 jmmv Exp $ +# $NetBSD: buildlink2.mk,v 1.2 2003/06/23 13:28:53 wiz Exp $ # # This Makefile fragment is included by packages that use libevent. # @@ -8,12 +8,23 @@ .if !defined(LIBEVENT_BUILDLINK2_MK) LIBEVENT_BUILDLINK2_MK= # defined +.if exists(/usr/include/event.h) +_NEED_LIBEVENT= NO +.else +_NEED_LIBEVENT= YES +.endif + +.if ${_NEED_LIBEVENT} == "YES" BUILDLINK_PACKAGES+= libevent BUILDLINK_DEPENDS.libevent?= libevent>=0.6 BUILDLINK_PKGSRCDIR.libevent?= ../../devel/libevent EVAL_PREFIX+= BUILDLINK_PREFIX.libevent=libevent BUILDLINK_PREFIX.libevent_DEFAULT= ${LOCALBASE} +.else +BUILDLINK_PREFIX.libevent= /usr +.endif + BUILDLINK_FILES.libevent+= include/event.h BUILDLINK_FILES.libevent+= lib/libevent.* |