diff --git a/Mk/Uses/minizip.mk b/Mk/Uses/minizip.mk new file mode 100644 --- /dev/null +++ b/Mk/Uses/minizip.mk @@ -0,0 +1,19 @@ +# handle minizip version +# +# Feature: minizip +# Usage: USES=minizip[:ng] +# +# MAINTAINER: lbartoletti@FreeBSD.org + +.if !defined(_INCLUDE_USES_MINIZIP_MK) +_INCLUDE_USES_MINIZIP_MK= yes + +. if empty(minizip_ARGS) +LIB_DEPENDS+= libminizip.so:archivers/minizip +. elif ${minizip_ARGS} == "ng" +LIB_DEPENDS+= libminizip-ng.so:archivers/minizip-ng +. else +IGNORE= Incorrect 'USES+=minizip:${minizip_ARGS}' expecting 'USES+=minizip[:ng]' +. endif + +.endif diff --git a/archivers/Makefile b/archivers/Makefile --- a/archivers/Makefile +++ b/archivers/Makefile @@ -88,6 +88,7 @@ SUBDIR += mar SUBDIR += maxcso SUBDIR += minizip + SUBDIR += minizip-ng SUBDIR += mscompress SUBDIR += mtf SUBDIR += nfpm @@ -265,6 +266,7 @@ SUBDIR += zip-ada SUBDIR += zipmix SUBDIR += zipper + SUBDIR += zlib-ng SUBDIR += zoo SUBDIR += zopfli SUBDIR += zstd diff --git a/archivers/minizip-ng/Makefile b/archivers/minizip-ng/Makefile new file mode 100644 --- /dev/null +++ b/archivers/minizip-ng/Makefile @@ -0,0 +1,22 @@ +PORTNAME= minizip-ng +DISTVERSION= 3.0.4 +CATEGORIES= archivers + +MAINTAINER= lbartoletti@FreeBSD.org +COMMENT= Fork of the popular minizip found in the zlib distribution + +LICENSE= ZLIB + +LIB_DEPENDS= libzstd.so:archivers/zstd + +USES= cmake:testing iconv pkgconfig ssl +USE_LDCONFIG= yes +USE_GITHUB= yes +GH_ACCOUNT= zlib-ng + +CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_ARGS= -DMZ_PROJECT_SUFFIX=-ng \ + -DCMAKE_INSTALL_INCLUDEDIR=${LOCALBASE}/include/minizip-ng +CMAKE_TESTING_ON= MZ_BUILD_TEST MZ_BUILD_UNIT_TEST + +.include diff --git a/archivers/minizip-ng/distinfo b/archivers/minizip-ng/distinfo new file mode 100644 --- /dev/null +++ b/archivers/minizip-ng/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1641396331 +SHA256 (zlib-ng-minizip-ng-3.0.4_GH0.tar.gz) = 2ab219f651901a337a7d3c268128711b80330a99ea36bdc528c76b591a624c3c +SIZE (zlib-ng-minizip-ng-3.0.4_GH0.tar.gz) = 638956 diff --git a/archivers/minizip-ng/pkg-descr b/archivers/minizip-ng/pkg-descr new file mode 100644 --- /dev/null +++ b/archivers/minizip-ng/pkg-descr @@ -0,0 +1,14 @@ +Minizip was originally developed in 1998. It was first included in the zlib +distribution as an additional code contribution starting in zlib 1.1.2. Since +that time, it has been continually improved upon and contributed to by many +people. + ++ Creating and extracting zip archives. ++ Adding and removing entries from zip archives. ++ Read and write raw zip entry data. ++ Reading and writing zip archives from memory. ++ Zlib, BZIP2, LZMA, and ZSTD compression methods. ++ Password protection through Traditional PKWARE and WinZIP AES encryption. ++ Buffered streaming for improved I/O performance. + +WWW: https://github.com/zlib-ng/minizip-ng diff --git a/archivers/minizip-ng/pkg-plist b/archivers/minizip-ng/pkg-plist new file mode 100644 --- /dev/null +++ b/archivers/minizip-ng/pkg-plist @@ -0,0 +1,27 @@ +include/minizip-ng/mz.h +include/minizip-ng/mz_compat.h +include/minizip-ng/mz_crypt.h +include/minizip-ng/mz_os.h +include/minizip-ng/mz_strm.h +include/minizip-ng/mz_strm_buf.h +include/minizip-ng/mz_strm_bzip.h +include/minizip-ng/mz_strm_lzma.h +include/minizip-ng/mz_strm_mem.h +include/minizip-ng/mz_strm_os.h +include/minizip-ng/mz_strm_pkcrypt.h +include/minizip-ng/mz_strm_split.h +include/minizip-ng/mz_strm_wzaes.h +include/minizip-ng/mz_strm_zlib.h +include/minizip-ng/mz_strm_zstd.h +include/minizip-ng/mz_zip.h +include/minizip-ng/mz_zip_rw.h +include/minizip-ng/unzip.h +include/minizip-ng/zip.h +lib/cmake/minizip-ng/minizip-ng-config-version.cmake +lib/cmake/minizip-ng/minizip-ng-config.cmake +lib/cmake/minizip-ng/minizip-ng-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/minizip-ng/minizip-ng.cmake +lib/libminizip-ng.so +lib/libminizip-ng.so.3 +lib/libminizip-ng.so.3.0.4 +libdata/pkgconfig/minizip-ng.pc diff --git a/archivers/zlib-ng/Makefile b/archivers/zlib-ng/Makefile new file mode 100644 --- /dev/null +++ b/archivers/zlib-ng/Makefile @@ -0,0 +1,16 @@ +PORTNAME= zlib-ng +DISTVERSION= 2.0.6 +CATEGORIES= archivers + +MAINTAINER= lbartoletti@FreeBSD.org +COMMENT= Fork of the zlib data compression library + +LICENSE= ZLIB + +USES= cmake:testing +USE_LDCONFIG= yes +USE_GITHUB= yes + +CMAKE_TESTING_ON= ZLIB_ENABLE_TESTS + +.include diff --git a/archivers/zlib-ng/distinfo b/archivers/zlib-ng/distinfo new file mode 100644 --- /dev/null +++ b/archivers/zlib-ng/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1641394914 +SHA256 (zlib-ng-zlib-ng-2.0.6_GH0.tar.gz) = 8258b75a72303b661a238047cb348203d88d9dddf85d480ed885f375916fcab6 +SIZE (zlib-ng-zlib-ng-2.0.6_GH0.tar.gz) = 817951 diff --git a/archivers/zlib-ng/pkg-descr b/archivers/zlib-ng/pkg-descr new file mode 100644 --- /dev/null +++ b/archivers/zlib-ng/pkg-descr @@ -0,0 +1,13 @@ +Zlib replacement with optimizations for next generation systems. + +The motivation for this fork came after seeing several 3rd party contributions +containing new optimizations not getting implemented into the official zlib +repository. + +Mark Adler has been maintaining zlib for a very long time, and he has done a +great job and hopefully he will continue for a long time yet. + +The idea of zlib-ng is not to replace zlib, but to co-exist as a drop-in +replacement with a lower threshold for code change. + +WWW: https://github.com/zlib-ng/zlib-ng diff --git a/archivers/zlib-ng/pkg-plist b/archivers/zlib-ng/pkg-plist new file mode 100644 --- /dev/null +++ b/archivers/zlib-ng/pkg-plist @@ -0,0 +1,7 @@ +include/zconf-ng.h +include/zlib-ng.h +lib/libz-ng.a +lib/libz-ng.so +lib/libz-ng.so.2 +lib/libz-ng.so.2.0.6 +libdata/pkgconfig/zlib-ng.pc diff --git a/databases/spatialite-tools/Makefile b/databases/spatialite-tools/Makefile --- a/databases/spatialite-tools/Makefile +++ b/databases/spatialite-tools/Makefile @@ -13,11 +13,10 @@ libfreexl.so:textproc/freexl \ libexpat.so:textproc/expat2 \ libspatialite.so:databases/spatialite \ - libreadosm.so:astro/readosm \ - libminizip.so:archivers/minizip + libreadosm.so:astro/readosm GNU_CONFIGURE= yes -USES= gmake gnome pkgconfig iconv sqlite +USES= gmake gnome iconv minizip pkgconfig sqlite USE_GNOME= libxml2 CFLAGS+= -I${LOCALBASE}/include diff --git a/databases/spatialite/Makefile b/databases/spatialite/Makefile --- a/databases/spatialite/Makefile +++ b/databases/spatialite/Makefile @@ -15,11 +15,10 @@ LIB_DEPENDS= libgeos_c.so:graphics/geos \ libproj.so:graphics/proj \ libfreexl.so:textproc/freexl \ - libminizip.so:archivers/minizip \ librttopo.so:devel/librttopo GNU_CONFIGURE= yes -USES= gmake gnome iconv libtool pathfix pkgconfig sqlite +USES= gmake gnome iconv libtool pathfix minizip pkgconfig sqlite USE_GNOME= libxml2 CFLAGS+= -I${WRKSRC}/src/headers -I${LOCALBASE}/include diff --git a/deskutils/anydesk/Makefile b/deskutils/anydesk/Makefile --- a/deskutils/anydesk/Makefile +++ b/deskutils/anydesk/Makefile @@ -19,9 +19,8 @@ libinotify.so:devel/libinotify \ libpolkit-gobject-1.so:sysutils/polkit \ libxkbfile.so:x11/libxkbfile \ - libminizip.so:archivers/minizip \ -USES= cpe gl gnome xorg +USES= cpe gl gnome minizip xorg USE_GL= gl glu USE_GNOME= cairo gdkpixbuf2 glib20 gtk20 pangox-compat diff --git a/devel/axmldec/Makefile b/devel/axmldec/Makefile --- a/devel/axmldec/Makefile +++ b/devel/axmldec/Makefile @@ -12,10 +12,9 @@ LICENSE= ISCL LICENSE_FILE= ${WRKSRC}/LICENSE.md -LIB_DEPENDS= libminizip.so:archivers/minizip \ - libboost_system.so:devel/boost-libs +LIB_DEPENDS= libboost_system.so:devel/boost-libs -USES= cmake compiler:c++14-lang cpe pkgconfig +USES= cmake compiler:c++14-lang cpe minizip:ng pkgconfig CPE_VENDOR= ${PORTNAME}_project USE_GITHUB= yes GH_ACCOUNT= ytsutano diff --git a/devel/axmldec/files/patch-CMakeLists.txt b/devel/axmldec/files/patch-CMakeLists.txt --- a/devel/axmldec/files/patch-CMakeLists.txt +++ b/devel/axmldec/files/patch-CMakeLists.txt @@ -9,7 +9,7 @@ - + include (FindPkgConfig) + if (PKG_CONFIG_FOUND) -+ pkg_check_modules(MINIZIP minizip) ++ pkg_check_modules(MINIZIP minizip-ng) + endif() + include_directories(${MINIZIP_INCLUDE_DIRS}) + find_library(MINIZIP_FROM_PORTS ${MINIZIP_LIBRARIES} diff --git a/devel/collada-dom/Makefile b/devel/collada-dom/Makefile --- a/devel/collada-dom/Makefile +++ b/devel/collada-dom/Makefile @@ -9,12 +9,11 @@ LICENSE= MIT -LIB_DEPENDS= libminizip.so:archivers/minizip \ - libpcre.so:devel/pcre \ +LIB_DEPENDS= libpcre.so:devel/pcre \ libboost_filesystem.so:devel/boost-libs \ libboost_system.so:devel/boost-libs -USES= cmake gnome +USES= cmake gnome minizip USE_LDCONFIG= yes USE_GNOME= libxml2 USE_GITHUB= yes diff --git a/emulators/mupen64plus-core/Makefile.common b/emulators/mupen64plus-core/Makefile.common --- a/emulators/mupen64plus-core/Makefile.common +++ b/emulators/mupen64plus-core/Makefile.common @@ -11,8 +11,8 @@ .if ${PKGNAMESUFFIX} == "-core" LIB_DEPENDS+= libfreetype.so:print/freetype2 \ - libpng.so:graphics/png \ - libminizip.so:archivers/minizip + libpng.so:graphics/png +USES+= minizip .else PLIST= ${WRKDIR}/pkg-plist .endif diff --git a/games/mrboom/Makefile b/games/mrboom/Makefile --- a/games/mrboom/Makefile +++ b/games/mrboom/Makefile @@ -12,10 +12,9 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= libminizip.so:archivers/minizip \ - libmodplug.so:audio/libmodplug +LIB_DEPENDS= libmodplug.so:audio/libmodplug -USES= compiler:c++11-lang gmake sdl +USES= compiler:c++11-lang gmake minizip sdl USE_SDL= mixer2 sdl2 MAKE_ENV+= LIBSDL2=1 diff --git a/games/oolite/Makefile b/games/oolite/Makefile --- a/games/oolite/Makefile +++ b/games/oolite/Makefile @@ -18,10 +18,9 @@ LIB_DEPENDS= libespeak.so:audio/espeak \ libnspr4.so:devel/nspr \ libvorbisfile.so:audio/libvorbis \ - libpng.so:graphics/png \ - libminizip.so:archivers/minizip + libpng.so:graphics/png -USES= gl gnustep openal:al perl5 python:3.5+,build sdl \ +USES= gl gnustep openal:al minizip perl5 python:3.5+,build sdl \ tar:bzip2 xorg USE_CXXSTD= gnu++98 USE_GL= gl glu diff --git a/graphics/comical/Makefile b/graphics/comical/Makefile --- a/graphics/comical/Makefile +++ b/graphics/comical/Makefile @@ -12,10 +12,9 @@ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= libminizip.so:archivers/minizip \ - libunrar.so.6:archivers/libunrar6 +LIB_DEPENDS= libunrar.so.6:archivers/libunrar6 -USES= compiler:c++11-lang gmake +USES= compiler:c++11-lang gmake minizip USE_WX= 2.8+ MAKE_ENV= WX_CONFIG=${WX_CONFIG} diff --git a/misc/xiphos/Makefile b/misc/xiphos/Makefile --- a/misc/xiphos/Makefile +++ b/misc/xiphos/Makefile @@ -22,14 +22,13 @@ libdbus-glib-1.so:devel/dbus-glib \ libenchant.so:textproc/enchant \ libicui18n.so:devel/icu \ - libminizip.so:archivers/minizip \ libsoup-2.4.so:devel/libsoup \ libsword.so:misc/sword \ libuuid.so:misc/e2fsprogs-libuuid \ libwebkit2gtk-4.0.so:www/webkit2-gtk3 # gettext is always needed, even if NLS is off -USES= cmake compiler:c11 gettext gnome pkgconfig +USES= cmake compiler:c11 gettext gnome minizip pkgconfig USE_GNOME= cairo gconf2 gtk30 gtkhtml4 intltool libgsf CMAKE_OFF= EPUB diff --git a/multimedia/assimp/Makefile b/multimedia/assimp/Makefile --- a/multimedia/assimp/Makefile +++ b/multimedia/assimp/Makefile @@ -9,9 +9,7 @@ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= libminizip.so:archivers/minizip - -USES= cmake:testing compiler:c++11-lib localbase:ldflags pkgconfig +USES= cmake:testing compiler:c++11-lib localbase:ldflags minizip pkgconfig USE_GITHUB= yes USE_LDCONFIG= yes diff --git a/multimedia/vlc/Makefile b/multimedia/vlc/Makefile --- a/multimedia/vlc/Makefile +++ b/multimedia/vlc/Makefile @@ -299,9 +299,8 @@ SIDPLAY_CONFIGURE_ENABLE= sid CONFIGURE_ARGS+= --disable-sid -SKINS_USE= XORG=xext,xinerama,xpm -SKINS_LIB_DEPENDS= libminizip.so:archivers/minizip \ - libtar.so:devel/libtar +SKINS_USE= XORG=xext,xinerama,xpm minizip +SKINS_LIB_DEPENDS= libtar.so:devel/libtar SKINS_CONFIGURE_ENABLE= skins2 libtar SKINS_IMPLIES= QT5 diff --git a/net-im/psi/Makefile b/net-im/psi/Makefile --- a/net-im/psi/Makefile +++ b/net-im/psi/Makefile @@ -10,10 +10,9 @@ LICENSE= GPLv2+ -LIB_DEPENDS= libidn.so:dns/libidn \ - libminizip.so:archivers/minizip +LIB_DEPENDS= libidn.so:dns/libidn -USES= cmake compiler:c++11-lang desktop-file-utils pkgconfig \ +USES= cmake compiler:c++11-lang desktop-file-utils minizip pkgconfig \ qca qt:5 tar:xz xorg USE_QT= concurrent core dbus gui multimedia network svg widgets \ x11extras xml buildtools_build qmake_build imageformats_run diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile --- a/net-im/telegram-desktop/Makefile +++ b/net-im/telegram-desktop/Makefile @@ -31,7 +31,6 @@ libhunspell-1.7.so:textproc/hunspell \ libjpeg.so:graphics/jpeg-turbo \ liblz4.so:archivers/liblz4 \ - libminizip.so:archivers/minizip \ librnnoise.so:audio/rnnoise \ libopenal.so:audio/openal-soft \ libopenh264.so:multimedia/openh264 \ diff --git a/science/libkml/Makefile b/science/libkml/Makefile --- a/science/libkml/Makefile +++ b/science/libkml/Makefile @@ -12,17 +12,15 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= boost-libs>=1.44.0:devel/boost-libs \ - googletest>=1.7.0:devel/googletest \ - minizip>=1.2.8:archivers/minizip + googletest>=1.7.0:devel/googletest LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ libexpat.so:textproc/expat2 \ libgtest.so:devel/googletest \ - libminizip.so:archivers/minizip \ liburiparser.so:net/uriparser OPTIONS_DEFINE= EXAMPLES -USES= cmake compiler:c11 pathfix +USES= cmake compiler:c11 minizip pathfix CMAKE_OFF= WITH_JAVA WITH_PYTHON WITH_SWIG USE_CXXSTD= gnu++98 diff --git a/textproc/sigil/Makefile b/textproc/sigil/Makefile --- a/textproc/sigil/Makefile +++ b/textproc/sigil/Makefile @@ -10,14 +10,13 @@ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING.txt -LIB_DEPENDS= libminizip.so:archivers/minizip \ - libpcre.so:devel/pcre \ +LIB_DEPENDS= libpcre.so:devel/pcre \ libhunspell-1.7.so:textproc/hunspell RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dulwich>=0.15.0:devel/dulwich@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} USES= cmake compiler:c++11-lib cpe desktop-file-utils \ - pkgconfig python:3.4+ qt:5 shebangfix + minizip pkgconfig python:3.4+ qt:5 shebangfix CPE_VENDOR= ${PORTNAME}-ebook USE_GITHUB= yes diff --git a/www/domoticz/Makefile b/www/domoticz/Makefile --- a/www/domoticz/Makefile +++ b/www/domoticz/Makefile @@ -10,10 +10,10 @@ LICENSE_FILE= ${WRKSRC}/License.txt LIB_DEPENDS= libcurl.so:ftp/curl libboost_system.so:devel/boost-libs \ - libminizip.so:archivers/minizip libjsoncpp.so:devel/jsoncpp + libjsoncpp.so:devel/jsoncpp BUILD_DEPENDS= cereal>=1.2.2:devel/cereal -USES= cmake compiler:c++11-lang cpe pkgconfig ssl lua:53 sqlite +USES= cmake compiler:c++11-lang cpe minizip pkgconfig ssl lua:53 sqlite OPTIONS_SUB= YES OPTIONS_DEFINE= SMQTT PYTHON TELLDUS OPENZWAVE PRECOMP