pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libevent Simplify.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/92a3396783c6
branches:  trunk
changeset: 473460:92a3396783c6
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Tue Apr 20 08:43:33 2004 +0000

description:
Simplify.

diffstat:

 devel/libevent/builtin.mk |  40 +++++++---------------------------------
 1 files changed, 7 insertions(+), 33 deletions(-)

diffs (47 lines):

diff -r 2286d29b07a2 -r 92a3396783c6 devel/libevent/builtin.mk
--- a/devel/libevent/builtin.mk Tue Apr 20 07:56:31 2004 +0000
+++ b/devel/libevent/builtin.mk Tue Apr 20 08:43:33 2004 +0000
@@ -1,36 +1,10 @@
-# $NetBSD: builtin.mk,v 1.1 2004/04/20 08:32:13 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
+# $NetBSD: builtin.mk,v 1.2 2004/04/20 08:43:33 xtraeme Exp $
 
-.if !defined(IS_BUILTIN.event)
-IS_BUILTIN.event=      no
-.  if exists(${_EVENT_H})
-IS_BUILTIN.event=      yes
+.if !defined(IS_BUILTIN.libevent)
+IS_BUILTIN.libevent=   no
+.  if exists(/usr/include/event.h)
+IS_BUILTIN.libevent=   yes
 .  endif
-.endif # IS_BUILTIN.event
-
-.if !defined(USE_BUILTIN.event)
-USE_BUILTIN.event?=    ${IS_BUILTIN.event}
-PREFER.event?=         pkgsrc
+.endif # IS_BUILTIN.libevent
 
-.  if !empty(IS_BUILTIN.event:M[nN][oO]) || \
-        (${PREFER.event} == "pkgsrc")
-USE_BUILTIN.event=     no
-.  endif
-.endif # USE_BUILTIN.event
-
-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}



Home | Main Index | Thread Index | Old Index