Sun Jul 30 07:55:48 2023 UTC ()
7-zip: Honour CFLAGS and disable use of -Werror in the process.


(nia)
diff -r1.1 -r1.2 pkgsrc/archivers/7-zip/Makefile

cvs diff -r1.1 -r1.2 pkgsrc/archivers/7-zip/Makefile (expand / switch to unified diff)

--- pkgsrc/archivers/7-zip/Makefile 2023/07/21 22:42:04 1.1
+++ pkgsrc/archivers/7-zip/Makefile 2023/07/30 07:55:48 1.2
@@ -1,34 +1,37 @@ @@ -1,34 +1,37 @@
1# $NetBSD: Makefile,v 1.1 2023/07/21 22:42:04 ryoon Exp $ 1# $NetBSD: Makefile,v 1.2 2023/07/30 07:55:48 nia Exp $
2 2
3DISTNAME= 7z2301-src 3DISTNAME= 7z2301-src
4PKGNAME= 7-zip-23.01 4PKGNAME= 7-zip-23.01
5CATEGORIES= archivers 5CATEGORIES= archivers
6MASTER_SITES= https://www.7-zip.org/a/ 6MASTER_SITES= https://www.7-zip.org/a/
7EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
8 8
9MAINTAINER= ryoon@NetBSD.org 9MAINTAINER= ryoon@NetBSD.org
10HOMEPAGE= https://www.7-zip.org/ 10HOMEPAGE= https://www.7-zip.org/
11COMMENT= Latest command-line tool for .7z and some archive formats 11COMMENT= Latest command-line tool for .7z and some archive formats
12LICENSE= gnu-lgpl-v2.1 12LICENSE= gnu-lgpl-v2.1
13 13
14WRKSRC= ${WRKDIR} 14WRKSRC= ${WRKDIR}
15USE_LANGUAGES= c c++ 15USE_LANGUAGES= c c++
16 16
17USE_TOOLS+= gmake 17USE_TOOLS+= gmake
18 18
19BUILD_DIRS+= CPP/7zip/Bundles/Alone2 19BUILD_DIRS+= CPP/7zip/Bundles/Alone2
20MAKE_FILE= makefile.gcc 20MAKE_FILE= makefile.gcc
21 21
 22# Disable -Werror.
 23MAKE_FLAGS+= CFLAGS_WARN_WALL=${CFLAGS:Q}
 24
22.include "../../mk/dlopen.buildlink3.mk" 25.include "../../mk/dlopen.buildlink3.mk"
23BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q} 26BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}
24 27
25# Disable RAR archive file support licensed under unRAR license. 28# Disable RAR archive file support licensed under unRAR license.
26# You can see file listing and extract files without compression. 29# You can see file listing and extract files without compression.
27BUILD_MAKE_FLAGS+= DISABLE_RAR_COMPRESS=1 30BUILD_MAKE_FLAGS+= DISABLE_RAR_COMPRESS=1
28 31
29INSTALLATION_DIRS+= bin 32INSTALLATION_DIRS+= bin
30 33
31SUBST_CLASSES+= crlf 34SUBST_CLASSES+= crlf
32SUBST_MESSAGE.crlf= Converting CRLF to LF. 35SUBST_MESSAGE.crlf= Converting CRLF to LF.
33SUBST_STAGE.crlf= post-extract 36SUBST_STAGE.crlf= post-extract
34SUBST_FILES.crlf= CPP/7zip/Common/* 37SUBST_FILES.crlf= CPP/7zip/Common/*