diff options
| author | Kuntal Majumder <12135951+hellozee@users.noreply.github.com> | 2020-08-08 04:08:18 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-07 15:38:18 -0700 |
| commit | 9e853cf17ca6fb77a8877da61419b913805c71cc (patch) | |
| tree | eb19c229e6098695e97788775fc912a1b6bf1a9e /ports/quazip | |
| parent | c74bc921fecbc9c9c629b348b584dd128758e148 (diff) | |
| download | vcpkg-9e853cf17ca6fb77a8877da61419b913805c71cc.tar.gz vcpkg-9e853cf17ca6fb77a8877da61419b913805c71cc.zip | |
[many ports] Adding libraries needed to build Krita (#11861)
* Add KF5Config
* Add KF5WidgetsAddons
* Add KF5Completion
* Add KF5CoreAddons
* Add KF5WindowSystem
* Add KF5GuiAddons
* Add KF5ItemModels
* Add KF5ItemViews
* Add KF5i18n
* Initial attempt to port quazip
* Fixed Quazip post installation checks
* Fixed linux builds
* Fixed x64-linux dynamic builds
* Temporary patch for KF5Completion until fixed in upstream
* Add Vc
* Add libde265
* Add libheif
* Don't build examples and gdk pixbuf for libheif
* Add KF5Crash
* Fix windows builds
* Add gettext as a dependency of kf5i18n
* Formatting changes applied
* Add homepages of all the ports
* Removed deprecated functions
* Fix quazip builds for x64-windows-static triplet
* Put support directives and fixed windows static builds
* Fix KF5Archive branch
* fixing libheif for unix systems
* Some linux specific changes
* Apply suggestions to kde frameworks
* Update quazip patch as suggested
Diffstat (limited to 'ports/quazip')
| -rw-r--r-- | ports/quazip/CONTROL | 5 | ||||
| -rw-r--r-- | ports/quazip/portfile.cmake | 20 | ||||
| -rw-r--r-- | ports/quazip/vcpkg_remove_extra_static.patch | 30 |
3 files changed, 55 insertions, 0 deletions
diff --git a/ports/quazip/CONTROL b/ports/quazip/CONTROL new file mode 100644 index 000000000..853be24c0 --- /dev/null +++ b/ports/quazip/CONTROL @@ -0,0 +1,5 @@ +Source: quazip
+Version: 0.9.1
+Homepage: https://stachenov.github.io/quazip/
+Description: Qt/C++ wrapper over minizip
+Build-Depends: qt5-base, zlib
diff --git a/ports/quazip/portfile.cmake b/ports/quazip/portfile.cmake new file mode 100644 index 000000000..4c8602b69 --- /dev/null +++ b/ports/quazip/portfile.cmake @@ -0,0 +1,20 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO stachenov/quazip
+ REF v0.9.1
+ SHA512 db31f3c7e3d7e95c25090ceb8379643e0b49ed69ece009dd015bee120b2b60f42e73408f580caed3138fa19ca64dcd23a05f16435abb54e2b8df21105c7b42c0
+ PATCHES
+ vcpkg_remove_extra_static.patch
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/QuaZip5/)
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/ RENAME copyright)
\ No newline at end of file diff --git a/ports/quazip/vcpkg_remove_extra_static.patch b/ports/quazip/vcpkg_remove_extra_static.patch new file mode 100644 index 000000000..e60042475 --- /dev/null +++ b/ports/quazip/vcpkg_remove_extra_static.patch @@ -0,0 +1,30 @@ +diff --git a/quazip/CMakeLists.txt b/quazip/CMakeLists.txt
+index 1efb5e2..2412b8a 100644
+--- a/quazip/CMakeLists.txt
++++ b/quazip/CMakeLists.txt
+@@ -10,22 +10,13 @@ ADD_DEFINITIONS(-DQUAZIP_BUILD)
+ qt_wrap_cpp(MOC_SRCS ${PUBLIC_HEADERS})
+ set(SRCS ${SRCS} ${MOC_SRCS})
+
+-add_library(${QUAZIP_LIB_TARGET_NAME} SHARED ${SRCS})
+-add_library(quazip_static STATIC ${SRCS})
+-
+-# Windows uses .lib extension for both static and shared library
+-# *nix systems use different extensions for SHARED and STATIC library and by convention both libraries have the same name
+-if (NOT WIN32)
+- set_target_properties(quazip_static PROPERTIES OUTPUT_NAME quazip${QUAZIP_LIB_VERSION_SUFFIX})
+-endif ()
++add_library(${QUAZIP_LIB_TARGET_NAME} ${SRCS})
+
+ target_include_directories(${QUAZIP_LIB_TARGET_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${ZLIB_INCLUDE_DIRS})
+-target_include_directories(quazip_static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${ZLIB_INCLUDE_DIRS})
+-set_target_properties(${QUAZIP_LIB_TARGET_NAME} quazip_static PROPERTIES VERSION ${QUAZIP_LIB_VERSION} SOVERSION ${QUAZIP_LIB_SOVERSION} DEBUG_POSTFIX d)
++set_target_properties(${QUAZIP_LIB_TARGET_NAME} PROPERTIES VERSION ${QUAZIP_LIB_VERSION} SOVERSION ${QUAZIP_LIB_SOVERSION} DEBUG_POSTFIX d)
+
+ # Link against ZLIB_LIBRARIES if needed (on Windows this variable is empty)
+ target_link_libraries(${QUAZIP_LIB_TARGET_NAME} ${QT_QTMAIN_LIBRARY} ${QTCORE_LIBRARIES} ${ZLIB_LIBRARIES})
+-target_link_libraries(quazip_static ${QT_QTMAIN_LIBRARY} ${QTCORE_LIBRARIES} ${ZLIB_LIBRARIES})
+
+ install(FILES ${PUBLIC_HEADERS} DESTINATION include/quazip${QUAZIP_LIB_VERSION_SUFFIX})
+-install(TARGETS ${QUAZIP_LIB_TARGET_NAME} quazip_static LIBRARY DESTINATION ${LIB_DESTINATION} ARCHIVE DESTINATION ${LIB_DESTINATION} RUNTIME DESTINATION ${LIB_DESTINATION})
++install(TARGETS ${QUAZIP_LIB_TARGET_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
