Skip to content
Permalink
Browse files

Build and install shared libs. Bump BUILDLINK_API_DEPENDS and PKGREVI…

…SION.
  • Loading branch information...
schmonz committed Jul 10, 2019
1 parent 7a0f6f1 commit 6f210ec2d5680873e599a8603705b982c36c2f78
Showing with 34 additions and 7 deletions.
  1. +12 −2 net/fehqlibs/Makefile
  2. +3 −1 net/fehqlibs/PLIST
  3. +2 −3 net/fehqlibs/buildlink3.mk
  4. +2 −1 net/fehqlibs/distinfo
  5. +15 −0 net/fehqlibs/patches/patch-Makefile
@@ -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 @@ LICENSE= public-domain

MAKE_JOBS_SAFE= no

BUILD_TARGET= libs
BUILD_TARGET= libs shared

SUBST_CLASSES+= echo
SUBST_STAGE.echo= pre-configure
@@ -33,4 +34,13 @@ do-configure:
${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"
@@ -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/getln.a
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
@@ -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
@@ -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
@@ -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

0 comments on commit 6f210ec

Please sign in to comment.
You can’t perform that action at this time.