pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc bl3ify



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2286d29b07a2
branches:  trunk
changeset: 473459:2286d29b07a2
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Tue Apr 20 07:56:31 2004 +0000

description:
bl3ify

diffstat:

 devel/libevent/Makefile      |   3 ++-
 devel/libevent/buildlink3.mk |  18 ++++++++++++++++++
 devel/libevent/builtin.mk    |  36 ++++++++++++++++++++++++++++++++++++
 net/libdnet/Makefile         |   4 ++--
 net/libdnet/buildlink3.mk    |  18 ++++++++++++++++++
 5 files changed, 76 insertions(+), 3 deletions(-)

diffs (119 lines):

diff -r 8171e76d6989 -r 2286d29b07a2 devel/libevent/Makefile
--- a/devel/libevent/Makefile   Tue Apr 20 01:56:48 2004 +0000
+++ b/devel/libevent/Makefile   Tue Apr 20 07:56:31 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2003/07/21 16:43:28 martti Exp $
+# $NetBSD: Makefile,v 1.5 2004/04/20 08:32:13 xtraeme Exp $
 #
 
 DISTNAME=      libevent-0.6
@@ -9,6 +9,7 @@
 HOMEPAGE=      http://monkey.org/~provos/libevent/
 COMMENT=       Asynchronous event notification library
 
+USE_BUILDLINK3=        yes
 GNU_CONFIGURE= # defined
 
 .include "../../mk/bsd.pkg.mk"
diff -r 8171e76d6989 -r 2286d29b07a2 devel/libevent/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libevent/buildlink3.mk      Tue Apr 20 07:56:31 2004 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/04/20 08:32:13 xtraeme Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+LIBEVENT_BUILDLINK3_MK:=       ${LIBEVENT_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=    libevent
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nlibevent}
+BUILDLINK_PACKAGES+=   libevent
+
+.if !empty(LIBEVENT_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.libevent+=   libevent>=0.6
+BUILDLINK_PKGSRCDIR.libevent?= ../../devel/libevent
+.endif # LIBEVENT_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}
diff -r 8171e76d6989 -r 2286d29b07a2 devel/libevent/builtin.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libevent/builtin.mk Tue Apr 20 07:56:31 2004 +0000
@@ -0,0 +1,36 @@
+# $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
+
+.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
+.  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
diff -r 8171e76d6989 -r 2286d29b07a2 net/libdnet/Makefile
--- a/net/libdnet/Makefile      Tue Apr 20 01:56:48 2004 +0000
+++ b/net/libdnet/Makefile      Tue Apr 20 07:56:31 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2003/05/02 08:50:11 seb Exp $
+# $NetBSD: Makefile,v 1.3 2004/04/20 07:56:31 xtraeme Exp $
 #
 
 DISTNAME=      libdnet-1.7
@@ -10,7 +10,7 @@
 COMMENT=       C interface to several low-level networking routines
 
 GNU_CONFIGURE= yes
-USE_BUILDLINK2=        yes
+USE_BUILDLINK3=        yes
 
 BUILD_DEFS+=   USE_INET6
 
diff -r 8171e76d6989 -r 2286d29b07a2 net/libdnet/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libdnet/buildlink3.mk Tue Apr 20 07:56:31 2004 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/04/20 07:56:31 xtraeme Exp $
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
+LIBDNET_BUILDLINK3_MK:=        ${LIBDNET_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=    libdnet
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nlibdnet}
+BUILDLINK_PACKAGES+=   libdnet
+
+.if !empty(LIBDNET_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.libdnet+=    libdnet>=1.7
+BUILDLINK_PKGSRCDIR.libdnet?=  ../../net/libdnet
+.endif # LIBDNET_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}



Home | Main Index | Thread Index | Old Index