summaryrefslogtreecommitdiff
path: root/devel/libevent
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-04-20 08:43:33 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-04-20 08:43:33 +0000
commitee28365e1138e26f98e13c1564e1bf3a6a641795 (patch)
tree6ee88ef684769ec4741daae3a02106d2680ea792 /devel/libevent
parent2b39488185bfffb92ffdbe42ddb71a892ad68e6d (diff)
downloadpkgsrc-ee28365e1138e26f98e13c1564e1bf3a6a641795.tar.gz
Simplify.
Diffstat (limited to 'devel/libevent')
-rw-r--r--devel/libevent/builtin.mk40
1 files changed, 7 insertions, 33 deletions
diff --git a/devel/libevent/builtin.mk b/devel/libevent/builtin.mk
index f37deaeb644..2feb23bb0f0 100644
--- a/devel/libevent/builtin.mk
+++ b/devel/libevent/builtin.mk
@@ -1,36 +1,10 @@
-# $NetBSD: builtin.mk,v 1.1 2004/04/20 08:32:13 xtraeme Exp $
+# $NetBSD: builtin.mk,v 1.2 2004/04/20 08:43:33 xtraeme Exp $
-.if !defined(_LIBEVENT_FOUND)
-_LIBEVENT_FOUND!= \
- if [ "`${ECHO} /usr/lib/libevent.*`" = "/usr/lib/libevent.*" ]; then \
- ${ECHO} "no"; \
- else \
- ${ECHO} "yes"; \
- fi
-BUILDLINK_VARS+= _LIBEVENT_FOUND
-.endif
-
-_EVENT_H= /usr/include/event.h
-
-.if !defined(IS_BUILTIN.event)
-IS_BUILTIN.event= no
-. if exists(${_EVENT_H})
-IS_BUILTIN.event= yes
-. endif
-.endif # IS_BUILTIN.event
-
-.if !defined(USE_BUILTIN.event)
-USE_BUILTIN.event?= ${IS_BUILTIN.event}
-PREFER.event?= pkgsrc
-
-. if !empty(IS_BUILTIN.event:M[nN][oO]) || \
- (${PREFER.event} == "pkgsrc")
-USE_BUILTIN.event= no
+.if !defined(IS_BUILTIN.libevent)
+IS_BUILTIN.libevent= no
+. if exists(/usr/include/event.h)
+IS_BUILTIN.libevent= yes
. endif
-.endif # USE_BUILTIN.event
+.endif # IS_BUILTIN.libevent
-CHECK_BUILTIN.event?= no
-.if !empty(CHECK_BUILTIN.event:M[nN][oO])
-_LIBEVENT= -levent
-BUILDLINK_LDADD.event?= ${_LIBEVENT}
-.endif # CHECK_BUILTIN.event
+USE_BUILTIN.libevent?= ${IS_BUILTIN.libevent}