pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/fehqlibs Build and install shared libs. Bump BUILD...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/178458f28d2d
branches:  trunk
changeset: 336271:178458f28d2d
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Wed Jul 10 11:20:02 2019 +0000

description:
Build and install shared libs. Bump BUILDLINK_API_DEPENDS and PKGREVISION.

diffstat:

 net/fehqlibs/Makefile               |  14 ++++++++++++--
 net/fehqlibs/PLIST                  |   4 +++-
 net/fehqlibs/buildlink3.mk          |   5 ++---
 net/fehqlibs/distinfo               |   3 ++-
 net/fehqlibs/patches/patch-Makefile |  15 +++++++++++++++
 5 files changed, 34 insertions(+), 7 deletions(-)

diffs (105 lines):

diff -r 0d6c8eaaa778 -r 178458f28d2d net/fehqlibs/Makefile
--- a/net/fehqlibs/Makefile     Wed Jul 10 11:12:16 2019 +0000
+++ b/net/fehqlibs/Makefile     Wed Jul 10 11:20:02 2019 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2019/07/10 10:35:11 schmonz Exp $
+# $NetBSD: Makefile,v 1.6 2019/07/10 11:20:02 schmonz Exp $
 
 DISTNAME=              fehQlibs-10
 PKGNAME=               ${DISTNAME:S/Qlibs-/qlibs-0.9./:S/10/12.10/}
+PKGREVISION=           1
 CATEGORIES=            net
 MASTER_SITES=          https://www.fehcom.de/ipnet/fehQlibs/
 EXTRACT_SUFX=          .tgz
@@ -13,7 +14,7 @@
 
 MAKE_JOBS_SAFE=                no
 
-BUILD_TARGET=          libs
+BUILD_TARGET=          libs shared
 
 SUBST_CLASSES+=                echo
 SUBST_STAGE.echo=      pre-configure
@@ -33,4 +34,13 @@
        ${ECHO} "HDRDIR=${DESTDIR}${PREFIX}/include/qlibs" >> ${WRKSRC}/conf-build; \
        ${MAKE} check
 
+.include "../../mk/bsd.prefs.mk"
+
+post-build:
+.      if ${OPSYS} == Darwin
+       cd ${WRKSRC} && for lib in *.so; do \
+         install_name_tool -id ${PREFIX}/lib/qlibs/$${lib} $${lib}; \
+       done
+.      endif
+
 .include "../../mk/bsd.pkg.mk"
diff -r 0d6c8eaaa778 -r 178458f28d2d net/fehqlibs/PLIST
--- a/net/fehqlibs/PLIST        Wed Jul 10 11:12:16 2019 +0000
+++ b/net/fehqlibs/PLIST        Wed Jul 10 11:20:02 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2018/10/07 12:53:54 schmonz Exp $
+@comment $NetBSD: PLIST,v 1.2 2019/07/10 11:20:02 schmonz Exp $
 include/qlibs/alloc.h
 include/qlibs/base64.h
 include/qlibs/buffer.h
@@ -56,7 +56,9 @@
 lib/qlibs/getopt.a
 lib/qlibs/ip.a
 lib/qlibs/libdnsresolv.a
+lib/qlibs/libdnsresolv.so
 lib/qlibs/libqlibs.a
+lib/qlibs/libqlibs.so
 lib/qlibs/lock.a
 lib/qlibs/logmsg.a
 lib/qlibs/ndelay.a
diff -r 0d6c8eaaa778 -r 178458f28d2d net/fehqlibs/buildlink3.mk
--- a/net/fehqlibs/buildlink3.mk        Wed Jul 10 11:12:16 2019 +0000
+++ b/net/fehqlibs/buildlink3.mk        Wed Jul 10 11:20:02 2019 +0000
@@ -1,13 +1,12 @@
-# $NetBSD: buildlink3.mk,v 1.2 2018/12/14 22:51:32 schmonz Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2019/07/10 11:20:02 schmonz Exp $
 
 BUILDLINK_TREE+=       fehqlibs
 
 .if !defined(FEHQLIBS_BUILDLINK3_MK)
 FEHQLIBS_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.fehqlibs+=fehqlibs>=0.9.10
+BUILDLINK_API_DEPENDS.fehqlibs+=fehqlibs>=0.9.12.10
 BUILDLINK_PKGSRCDIR.fehqlibs?= ../../net/fehqlibs
-BUILDLINK_DEPMETHOD.fehqlibs?= build
 .endif # FEHQLIBS_BUILDLINK3_MK
 
 BUILDLINK_TREE+=       -fehqlibs
diff -r 0d6c8eaaa778 -r 178458f28d2d net/fehqlibs/distinfo
--- a/net/fehqlibs/distinfo     Wed Jul 10 11:12:16 2019 +0000
+++ b/net/fehqlibs/distinfo     Wed Jul 10 11:20:02 2019 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2019/07/10 10:35:11 schmonz Exp $
+$NetBSD: distinfo,v 1.5 2019/07/10 11:20:02 schmonz Exp $
 
 SHA1 (fehQlibs-10.tgz) = 13c64b1fdf23ffab1fe6cffd47323855118124a6
 RMD160 (fehQlibs-10.tgz) = b00b4cd5c66369654c0da75484f84d64c67969ba
 SHA512 (fehQlibs-10.tgz) = cb5af7a976ba272288493ab797d5710e30e2cc54827dff35189941653f5e6220a5fdf83f7dfc89264ddda6692ab55ad5e2880d3da10b548f060f69c0486ab914
 Size (fehQlibs-10.tgz) = 75859 bytes
+SHA1 (patch-Makefile) = 3b66babb3bc2cac27a17281f44bcae3a8fface14
diff -r 0d6c8eaaa778 -r 178458f28d2d net/fehqlibs/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/fehqlibs/patches/patch-Makefile       Wed Jul 10 11:20:02 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.1 2019/07/10 11:20:02 schmonz Exp $
+
+Link needed symbols into shared libdnsresolv.
+
+--- Makefile.orig      2018-12-14 13:09:29.000000000 +0000
++++ Makefile
+@@ -40,7 +40,7 @@ setup:
+ shared: $(COMPILE) $(SCHARDLIB) $(OBJS) ./dnsstub/$(OBJS)
+       @echo Building shared qlibs ...
+       $(SHAREDLIB) $(OBJS) -o libqlibs.so 
+-      $(SHAREDLIB) ./dnsstub/$(OBJS) -o libdnsresolv.so
++      $(SHAREDLIB) $(OBJS) ./dnsstub/$(OBJS) -o libdnsresolv.so
+  
+ qlibs.a: obj socket.a 
+       $(MAKELIB) qlibs.a *.o 



Home | Main Index | Thread Index | Old Index