summaryrefslogtreecommitdiff
path: root/chat/ekg
diff options
context:
space:
mode:
authoradam <adam>2003-07-22 10:41:41 +0000
committeradam <adam>2003-07-22 10:41:41 +0000
commit9d208d295f569210ed862e4c9aee551f5a6cb207 (patch)
tree5613d7185113cc014e243eb5de4648ce0c424ded /chat/ekg
parentf53f9e11304251a1b4001f6fbe93fabcd754e131 (diff)
downloadpkgsrc-9d208d295f569210ed862e4c9aee551f5a6cb207.tar.gz
Oops, forgot to add these new files :)
Diffstat (limited to 'chat/ekg')
-rw-r--r--chat/ekg/buildlink2.mk25
-rw-r--r--chat/ekg/patches/patch-ac39
2 files changed, 64 insertions, 0 deletions
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)