pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ldapsdk Make a first attempt at a MacOS config f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/295b05bac5d4
branches: trunk
changeset: 379327:295b05bac5d4
user: dholland <dholland%pkgsrc.org@localhost>
date: Sun May 15 02:19:36 2022 +0000
description:
Make a first attempt at a MacOS config for devel/ldapsdk.
Step towards PR 42040. (Next step is to actually make it work.)
diffstat:
devel/ldapsdk/Makefile | 4 ++-
devel/ldapsdk/distinfo | 3 +-
devel/ldapsdk/patches/patch-config_darwin.mk | 40 ++++++++++++++++++++++++++++
3 files changed, 45 insertions(+), 2 deletions(-)
diffs (77 lines):
diff -r 034efa437225 -r 295b05bac5d4 devel/ldapsdk/Makefile
--- a/devel/ldapsdk/Makefile Sun May 15 02:19:31 2022 +0000
+++ b/devel/ldapsdk/Makefile Sun May 15 02:19:36 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2021/05/24 19:49:59 wiz Exp $
+# $NetBSD: Makefile,v 1.44 2022/05/15 02:19:36 dholland Exp $
DISTNAME= ldapsdk_12311998
PKGNAME= ${DISTNAME:S/_/-/}
@@ -33,6 +33,8 @@
post-extract:
${LN} -s FreeBSD.mk ${WRKSRC}/config/DragonFly.mk
+ # copy rather than link this as it'll need to be patched
+ cp ${WRKSRC}/config/Rhapsody.mk ${WRKSRC}/config/Darwin.mk
do-configure:
${ECHO} "PKG_SYSCONFDIR=${PKG_SYSCONFDIR}" >> ${WRKSRC}/config/rules.mk
diff -r 034efa437225 -r 295b05bac5d4 devel/ldapsdk/distinfo
--- a/devel/ldapsdk/distinfo Sun May 15 02:19:31 2022 +0000
+++ b/devel/ldapsdk/distinfo Sun May 15 02:19:36 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2021/10/26 10:15:13 nia Exp $
+$NetBSD: distinfo,v 1.11 2022/05/15 02:19:36 dholland Exp $
BLAKE2s (ldapsdk_12311998.tar.gz) = eb99121e1a286a42be4f46cc1d818aebc38156e5b9be0caad45773ec979291cb
SHA512 (ldapsdk_12311998.tar.gz) = 0e6a1fc33d4d70bba2a376336a0cf93fe7aa1e2147256ba6bc5de323c62139824ac0df66b2ebef6edcda457ba6437ca251112370c9e154bc09960c40429416b4
@@ -10,4 +10,5 @@
SHA1 (patch-ae) = fe40aa1668206bd63861844fc34574c749aa22f0
SHA1 (patch-af) = 20869b8cbc7becee026adece14b9b9a250531d8a
SHA1 (patch-config-bsdecho.c) = a5f916c44c55a812793c25760771bff5a1400ed0
+SHA1 (patch-config_darwin.mk) = d713cd4d018825a1ad8c7631e25f3a070de3f9c2
SHA1 (patch-config_rules_mk) = 6ddd1ee99f4058eeddd3f34f6921c1573abcd125
diff -r 034efa437225 -r 295b05bac5d4 devel/ldapsdk/patches/patch-config_darwin.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ldapsdk/patches/patch-config_darwin.mk Sun May 15 02:19:36 2022 +0000
@@ -0,0 +1,40 @@
+$NetBSD: patch-config_darwin.mk,v 1.1 2022/05/15 02:19:36 dholland Exp $
+
+Halfassed attempt at a config for MacOS based on the existing one for
+Rhapsody (aka prelease MacOS from 25 years ago) -- probably won't
+work, but will work better than the prior state of not having one at
+all.
+
+--- config/Darwin.mk.orig 2022-05-15 02:08:50.742530570 +0000
++++ config/Darwin.mk
+@@ -23,11 +23,11 @@
+ # Version-independent
+ ######################################################################
+
+-ARCH := rhapsody
++ARCH := darwin
+ ifeq (86,$(findstring 86,$(OS_TEST)))
+ CPU_ARCH := i386
+ else
+-CPU_ARCH := ppc
++CPU_ARCH := $(OS_TEST)
+ endif
+ GFX_ARCH :=
+
+@@ -92,14 +92,12 @@ endif
+ CC = cc
+ AR = libtool -static -o $@
+
+-EMACS = /usr/bin/emacs
+-PERL = /usr/bin/perl
++EMACS = /usr/bin/true
+ RANLIB = ranlib
+
+ LDFLAGS =
+
+-# -nostdlib gets around the missing -lm problem.
+-DSO_LDFLAGS = -arch $(CPU_ARCH) -dynamiclib -nostdlib -lstdc++ -lcc_dynamic -compatibility_version 1 -current_version 1 -all_load -undefined suppress
++DSO_LDFLAGS =
+
+ # Comment out MKSHLIB to build only static libraries.
+ MKSHLIB = $(CC) $(DSO_LDFLAGS)
Home |
Main Index |
Thread Index |
Old Index