pkgsrc-Changes archive

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

CVS commit: pkgsrc/archivers/unalz



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Jun 26 09:48:34 UTC 2017

Modified Files:
        pkgsrc/archivers/unalz: Makefile distinfo
Added Files:
        pkgsrc/archivers/unalz/patches: patch-UnAlz.cpp

Log Message:
Fix building with newer zlib; clean-up


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/archivers/unalz/Makefile
cvs rdiff -u -r1.26 -r1.27 pkgsrc/archivers/unalz/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/archivers/unalz/patches/patch-UnAlz.cpp

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

Modified files:

Index: pkgsrc/archivers/unalz/Makefile
diff -u pkgsrc/archivers/unalz/Makefile:1.18 pkgsrc/archivers/unalz/Makefile:1.19
--- pkgsrc/archivers/unalz/Makefile:1.18        Sun Jan 24 04:32:54 2016
+++ pkgsrc/archivers/unalz/Makefile     Mon Jun 26 09:48:34 2017
@@ -1,5 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2016/01/24 04:32:54 zafer Exp $
-#
+# $NetBSD: Makefile,v 1.19 2017/06/26 09:48:34 adam Exp $
 
 DISTNAME=              unalz-0.65
 CATEGORIES=            archivers
@@ -9,6 +8,7 @@ EXTRACT_SUFX=           .tgz
 MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=              https://kippler.com/win/unalz/
 COMMENT=               Alzip archive (.alz) extractor
+LICENSE=               zlib
 
 BUILD_TARGET=          posix-utf8
 USE_LANGUAGES=         c c++
@@ -16,17 +16,10 @@ WRKSRC=                     ${WRKDIR}/unalz
 
 INSTALLATION_DIRS=     bin
 
-SUBST_CLASSES+=                d2u
-SUBST_STAGE.d2u=       pre-configure
-SUBST_FILES.d2u=       bzip2/*.[ch] zlib/*.[ch]
-SUBST_FILTER_CMD.d2u=  ${TR} -d '\r'
-USE_TOOLS+=            tr
-
-.include "../../archivers/bzip2/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
-.include "../../converters/libiconv/buildlink3.mk"
-
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/unalz ${DESTDIR}${PREFIX}/bin
 
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/archivers/unalz/distinfo
diff -u pkgsrc/archivers/unalz/distinfo:1.26 pkgsrc/archivers/unalz/distinfo:1.27
--- pkgsrc/archivers/unalz/distinfo:1.26        Sun Jan 24 04:32:54 2016
+++ pkgsrc/archivers/unalz/distinfo     Mon Jun 26 09:48:34 2017
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.26 2016/01/24 04:32:54 zafer Exp $
+$NetBSD: distinfo,v 1.27 2017/06/26 09:48:34 adam Exp $
 
 SHA1 (unalz-0.65.tgz) = 98a64f799892f7adfffd4635bd19826fe8f18b26
 RMD160 (unalz-0.65.tgz) = bb55aee26e12c8bf0e4422b11feffa5c88844771
 SHA512 (unalz-0.65.tgz) = 6e22d1e28c956ced5c9dbfd4d7b5c03f36a8bd3e076801984cc4539e579cefbb1a6001d1086b33e14843e9d5be37a6cf811acffb52bb5dfb5d4a65518b735600
 Size (unalz-0.65.tgz) = 137985 bytes
+SHA1 (patch-UnAlz.cpp) = 81017389e58fc1900903c0d26697ca49467efa54
 SHA1 (patch-aa) = 327fd080040946fe7a0707698f90d7709a2d3c5b
 SHA1 (patch-ac) = 00c6255437f4ebdf3676787ed63cc838a16476d4
 SHA1 (patch-main.cpp) = 6a805a82b6bb762afd0b026f3f8b39e7c200163d

Added files:

Index: pkgsrc/archivers/unalz/patches/patch-UnAlz.cpp
diff -u /dev/null pkgsrc/archivers/unalz/patches/patch-UnAlz.cpp:1.1
--- /dev/null   Mon Jun 26 09:48:34 2017
+++ pkgsrc/archivers/unalz/patches/patch-UnAlz.cpp      Mon Jun 26 09:48:34 2017
@@ -0,0 +1,15 @@
+$NetBSD: patch-UnAlz.cpp,v 1.1 2017/06/26 09:48:34 adam Exp $
+
+Fix for newer zlib.
+
+--- UnAlz.cpp.orig     2017-06-26 09:30:31.000000000 +0000
++++ UnAlz.cpp
+@@ -1907,7 +1907,7 @@ void CUnAlz::DecryptingData(int nSize, B
+ ////////////////////////////////////////////////////////////////////////////////////////////////////
+ UINT32 CUnAlz::CRC32(UINT32 l, BYTE c)
+ {
+-      const unsigned long *CRC_TABLE = get_crc_table();
++      const unsigned int *CRC_TABLE = (unsigned int *)get_crc_table();
+       return CRC_TABLE[(l ^ c) & 0xff] ^ (l >> 8);
+ }
+ 



Home | Main Index | Thread Index | Old Index