pkgsrc-Changes archive

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

CVS commit: pkgsrc/archivers/zstd



Module Name:    pkgsrc
Committed By:   nia
Date:           Fri Nov 10 11:49:31 UTC 2023

Modified Files:
        pkgsrc/archivers/zstd: Makefile

Log Message:
zstd: Allow building on legacy platforms, including those without native
pthreads and Darwin/ppc.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 pkgsrc/archivers/zstd/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/archivers/zstd/Makefile
diff -u pkgsrc/archivers/zstd/Makefile:1.48 pkgsrc/archivers/zstd/Makefile:1.49
--- pkgsrc/archivers/zstd/Makefile:1.48 Sun Apr 30 01:37:27 2023
+++ pkgsrc/archivers/zstd/Makefile      Fri Nov 10 11:49:31 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.48 2023/04/30 01:37:27 dholland Exp $
+# $NetBSD: Makefile,v 1.49 2023/11/10 11:49:31 nia Exp $
 
 DISTNAME=      zstd-1.5.5
 CATEGORIES=    archivers
@@ -40,12 +40,27 @@ MAKE_FLAGS=         MANDIR=${PREFIX}/${PKGMANDI
 MAKE_FLAGS+=           mandir=${PREFIX}/${PKGMANDIR}
 MAKE_FLAGS+=           INSTALL=${INSTALL:Q}
 
-BUILD_TARGET=          allmost
+PTHREAD_OPTS=          optional
+
+.include "../../mk/pthread.buildlink3.mk"
+
+.if ${PTHREAD_TYPE} == "native" || ${MACHINE_PLATFORM:MDarwin-*-powerpc*}
+BUILD_TARGET=          lib zstd zlibwrapper
 TEST_TARGET=           test
+.else
+BUILD_TARGET=          lib-nomt zstd zlibwrapper
+.endif
+
+.if ${MACHINE_PLATFORM:MDarwin-*-powerpc*}
+MAKE_FLAGS+=           LDFLAGS_DYNLIB="-single_module"
+MAKE_FLAGS+=           BACKTRACE=0
+.endif
 
 # Needed for nanosleep() on Solaris 10, PR pkg/56225
 LDFLAGS.SunOS+=                -lrt
 
+BUILDLINK_TRANSFORM.Darwin+=   opt:-shared:-dynamiclib
+
 .include "../../archivers/lz4/buildlink3.mk"
 .include "../../archivers/xz/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"



Home | Main Index | Thread Index | Old Index