From c92f927f4d4e5a8c6ff9ca35a05e3ee71d97bcb6 Mon Sep 17 00:00:00 2001
From: adam <adam@pkgsrc.org>
Date: Tue, 22 Jul 2003 10:41:41 +0000
Subject: Oops, forgot to add these new files :)

---
 chat/ekg/buildlink2.mk    | 25 +++++++++++++++++++++++++
 chat/ekg/patches/patch-ac | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)
 create mode 100644 chat/ekg/buildlink2.mk
 create mode 100644 chat/ekg/patches/patch-ac

(limited to 'chat/ekg')

diff --git a/chat/ekg/buildlink2.mk b/chat/ekg/buildlink2.mk
new file mode 100644
index 00000000000..54812a262ca
--- /dev/null
+++ b/chat/ekg/buildlink2.mk
@@ -0,0 +1,25 @@
+# $NetBSD: buildlink2.mk,v 1.1 2003/07/22 10:41:42 adam Exp $
+
+.if !defined(EKG_BUILDLINK2_MK)
+EKG_BUILDLINK2_MK=	# defined
+
+BUILDLINK_PACKAGES+=		ekg
+BUILDLINK_DEPENDS.ekg?=		ekg>=1.1
+BUILDLINK_PKGSRCDIR.ekg?=	../../chat/ekg
+
+EVAL_PREFIX+=		BUILDLINK_PREFIX.ekg=ekg
+BUILDLINK_PREFIX.ekg_DEFAULT=	${LOCALBASE}
+BUILDLINK_FILES.ekg=	include/libgadu*.h
+BUILDLINK_FILES.ekg+=	lib/libgadu.*
+
+.include "../../devel/ncurses/buildlink2.mk"
+.include "../../devel/pkgconfig/buildlink2.mk"
+.include "../../devel/readline/buildlink2.mk"
+.include "../../devel/zlib/buildlink2.mk"
+.include "../../security/openssl/buildlink2.mk"
+
+BUILDLINK_TARGETS+=	ekg-buildlink
+
+ekg-buildlink: _BUILDLINK_USE
+
+.endif	# EKG_BUILDLINK2_MK
diff --git a/chat/ekg/patches/patch-ac b/chat/ekg/patches/patch-ac
new file mode 100644
index 00000000000..404f132ca7c
--- /dev/null
+++ b/chat/ekg/patches/patch-ac
@@ -0,0 +1,39 @@
+$NetBSD: patch-ac,v 1.1 2003/07/22 10:41:41 adam Exp $
+
+--- lib/Makefile.in.orig	2003-05-15 13:59:09.000000000 +0200
++++ lib/Makefile.in	2003-07-22 11:10:38.000000000 +0200
+@@ -11,7 +11,7 @@
+ VERSION_MINOR=13
+ 
+ CC = @CC@ 
+-CFLAGS = @CFLAGS_LIBGADU@ -I. -I.. -Wall
++CFLAGS += @CFLAGS_LIBGADU@ -I. -I.. -Wall
+ LIBS = @LIBS_LIBGADU@
+ 
+ MAKE = @MAKE@
+@@ -45,13 +45,12 @@
+ static: dep $(STATIC)
+ 
+ $(STATIC): $(OBJS)
+-	$(AR) r $(STATIC) $(OBJS) 
+-	$(RANLIB) $(STATIC)
++	${LIBTOOL} --mode=link ${CC} -o ${STATIC:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info ${VERSION_MAJOR}:${VERSION_MINOR}
+ 
+ #
+ 
+-%.lo:	%.c
+-	$(CC) -c $(CPPFLAGS) $(CFLAGS) -fPIC $< -o $@
++%.o:	%.c
++	${LIBTOOL} --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
+ 
+ shared:	dep $(SHARED)
+ 
+@@ -86,7 +85,7 @@
+ 	cd $(DESTDIR)$(libdir) && $(LN_S) -f $(SHARED) $(SHAREDMM)
+ 
+ install-static:	install-common
+-	$(INSTALL) -m 755 $(STATIC) $(DESTDIR)$(libdir)
++	${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} ${STATIC:.a=.la} ${PREFIX}/lib
+ 
+ strip-libgadu-so:
+ 	$(STRIP) $(SHARED)
-- 
cgit v1.2.3