| @@ -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 | |
3 | DISTNAME= 7z2301-src | | 3 | DISTNAME= 7z2301-src |
4 | PKGNAME= 7-zip-23.01 | | 4 | PKGNAME= 7-zip-23.01 |
5 | CATEGORIES= archivers | | 5 | CATEGORIES= archivers |
6 | MASTER_SITES= https://www.7-zip.org/a/ | | 6 | MASTER_SITES= https://www.7-zip.org/a/ |
7 | EXTRACT_SUFX= .tar.xz | | 7 | EXTRACT_SUFX= .tar.xz |
8 | | | 8 | |
9 | MAINTAINER= ryoon@NetBSD.org | | 9 | MAINTAINER= ryoon@NetBSD.org |
10 | HOMEPAGE= https://www.7-zip.org/ | | 10 | HOMEPAGE= https://www.7-zip.org/ |
11 | COMMENT= Latest command-line tool for .7z and some archive formats | | 11 | COMMENT= Latest command-line tool for .7z and some archive formats |
12 | LICENSE= gnu-lgpl-v2.1 | | 12 | LICENSE= gnu-lgpl-v2.1 |
13 | | | 13 | |
14 | WRKSRC= ${WRKDIR} | | 14 | WRKSRC= ${WRKDIR} |
15 | USE_LANGUAGES= c c++ | | 15 | USE_LANGUAGES= c c++ |
16 | | | 16 | |
17 | USE_TOOLS+= gmake | | 17 | USE_TOOLS+= gmake |
18 | | | 18 | |
19 | BUILD_DIRS+= CPP/7zip/Bundles/Alone2 | | 19 | BUILD_DIRS+= CPP/7zip/Bundles/Alone2 |
20 | MAKE_FILE= makefile.gcc | | 20 | MAKE_FILE= makefile.gcc |
21 | | | 21 | |
| | | 22 | # Disable -Werror. |
| | | 23 | MAKE_FLAGS+= CFLAGS_WARN_WALL=${CFLAGS:Q} |
| | | 24 | |
22 | .include "../../mk/dlopen.buildlink3.mk" | | 25 | .include "../../mk/dlopen.buildlink3.mk" |
23 | BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q} | | 26 | BUILDLINK_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. |
27 | BUILD_MAKE_FLAGS+= DISABLE_RAR_COMPRESS=1 | | 30 | BUILD_MAKE_FLAGS+= DISABLE_RAR_COMPRESS=1 |
28 | | | 31 | |
29 | INSTALLATION_DIRS+= bin | | 32 | INSTALLATION_DIRS+= bin |
30 | | | 33 | |
31 | SUBST_CLASSES+= crlf | | 34 | SUBST_CLASSES+= crlf |
32 | SUBST_MESSAGE.crlf= Converting CRLF to LF. | | 35 | SUBST_MESSAGE.crlf= Converting CRLF to LF. |
33 | SUBST_STAGE.crlf= post-extract | | 36 | SUBST_STAGE.crlf= post-extract |
34 | SUBST_FILES.crlf= CPP/7zip/Common/* | | 37 | SUBST_FILES.crlf= CPP/7zip/Common/* |