diff options
Diffstat (limited to 'vcpkg/ports/libgwenhywfar')
| -rw-r--r-- | vcpkg/ports/libgwenhywfar/control-openssl.diff | 20 | ||||
| -rw-r--r-- | vcpkg/ports/libgwenhywfar/pkgconfig.diff | 11 | ||||
| -rw-r--r-- | vcpkg/ports/libgwenhywfar/portfile.cmake | 88 | ||||
| -rw-r--r-- | vcpkg/ports/libgwenhywfar/static-link-order.diff | 17 | ||||
| -rw-r--r-- | vcpkg/ports/libgwenhywfar/vcpkg.json | 58 |
5 files changed, 194 insertions, 0 deletions
diff --git a/vcpkg/ports/libgwenhywfar/control-openssl.diff b/vcpkg/ports/libgwenhywfar/control-openssl.diff new file mode 100644 index 0000000..191293c --- /dev/null +++ b/vcpkg/ports/libgwenhywfar/control-openssl.diff @@ -0,0 +1,20 @@ +diff --git a/configure.ac b/configure.ac +index 4e43f5c..7ce9511 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -709,7 +709,14 @@ PKG_CHECK_MODULES([LIBGNUTLS], [gnutls >= 2.9.8]) + # + # check for OpenSSL + # +-PKG_CHECK_MODULES([OPENSSL], [openssl], [ssl_available=yes], [ssl_available=no]) ++AC_ARG_WITH(openssl, [ --with-openssl=yes enable OpenSSL in gct-tool], ++ [with_openssl="$withval"], ++ [with_openssl="no"]) ++if test "x$with_openssl" = "xyes"; then ++ PKG_CHECK_MODULES([OPENSSL], [openssl], [ssl_available=yes], [AC_MSG_ERROR([unable to find OpenSSL (pkg-config)])]) ++else ++ ssl_available=no ++fi + if test "$ssl_available" = "yes"; then + AC_DEFINE_UNQUOTED(HAVE_OPENSSL, 1, [Defined if OpenSSL is available]) + fi diff --git a/vcpkg/ports/libgwenhywfar/pkgconfig.diff b/vcpkg/ports/libgwenhywfar/pkgconfig.diff new file mode 100644 index 0000000..c07b555 --- /dev/null +++ b/vcpkg/ports/libgwenhywfar/pkgconfig.diff @@ -0,0 +1,11 @@ +diff --git a/gwenhywfar.pc.in b/gwenhywfar.pc.in +index d4c61d8..72a4ef4 100644 +--- a/gwenhywfar.pc.in ++++ b/gwenhywfar.pc.in +@@ -31,3 +31,6 @@ Version: @VERSION@ + Libs: @gwenhywfar_ldflags@ @gwenhywfar_libs@ + Cflags: -I@gwenhywfar_headerdir@ + ++Libs.private: @all_libraries@ ++@WITH_LIBXML2_CODE_FALSE@Requires.private: libgcrypt, gnutls ++@WITH_LIBXML2_CODE_TRUE@Requires.private: libgcrypt, gnutls, libxml-2.0 diff --git a/vcpkg/ports/libgwenhywfar/portfile.cmake b/vcpkg/ports/libgwenhywfar/portfile.cmake new file mode 100644 index 0000000..a824c30 --- /dev/null +++ b/vcpkg/ports/libgwenhywfar/portfile.cmake @@ -0,0 +1,88 @@ +vcpkg_download_distfile(ARCHIVE
+ URLS "https://www.aquamaniac.de/rdm/attachments/download/529/gwenhywfar-5.12.0.tar.gz"
+ FILENAME "gwenhywfar-${VERSION}.tar.gz"
+ SHA512 0075eb626f0022ecd4ffdd59de7f0817d2def685e1d2cfbca9a32faa4b8d4d213bea631f24c5385da0b8c7743fd6d1887a46f08afa371195d911409ec7655791
+)
+
+vcpkg_download_distfile(osx_patch
+ URLS "https://www.aquamaniac.de/rdm/projects/gwenhywfar/repository/revisions/55d4b7b526df30e4003c92e2f504f480c01021f0/diff?format=diff"
+ FILENAME "gwenhywfar-5.12.0-55d4b7b.diff"
+ SHA512 87fa9ff3e9027c5a6839f800990b420a824efbd115ed67eeaef3c909b14c59c0b9bae41c539d400166862c0353ad730313ee4f9366928c333883d41429912731
+)
+
+vcpkg_extract_source_archive(
+ SOURCE_PATH
+ ARCHIVE "${ARCHIVE}"
+ SOURCE_BASE "${VERSION}"
+ PATCHES
+ control-openssl.diff
+ pkgconfig.diff
+ static-link-order.diff
+ ${osx_patch}
+)
+
+vcpkg_list(SET options)
+if ("libxml2" IN_LIST FEATURES)
+ vcpkg_list(APPEND options "--with-libxml2-code=yes")
+endif()
+
+if ("cpp" IN_LIST FEATURES)
+ list(APPEND FEATURES_GUI "cpp")
+endif()
+if ("qt5" IN_LIST FEATURES)
+ list(APPEND FEATURES_GUI "qt5")
+endif()
+list(JOIN FEATURES_GUI " " GUIS)
+vcpkg_list(APPEND options "--with-guis=${GUIS}")
+
+if ("openssl" IN_LIST FEATURES)
+ vcpkg_list(APPEND options "--with-openssl=yes")
+endif()
+
+set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/libgpg-error/aclocal/\" -I \"${CURRENT_INSTALLED_DIR}/share/libgcrypt/aclocal/\" -I \"${CURRENT_HOST_INSTALLED_DIR}/share/gettext/aclocal/\"")
+set(ENV{AUTOPOINT} true)
+vcpkg_make_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ AUTORECONF
+ OPTIONS
+ --disable-binreloc
+ --disable-network-checks
+ --disable-nls
+ ${options}
+ OPTIONS_RELEASE
+ "--with-qt5-qmake=${CURRENT_HOST_INSTALLED_DIR}/tools/qt5/bin/qmake"
+ "--with-qt5-moc=${CURRENT_HOST_INSTALLED_DIR}/tools/qt5/bin/moc"
+ "--with-qt5-uic=${CURRENT_HOST_INSTALLED_DIR}/tools/qt5/bin/uic"
+ "GPG_ERROR_CONFIG=${CURRENT_INSTALLED_DIR}/tools/libgpg-error/bin/gpgrt-config gpg-error"
+ "GPGRT_CONFIG=${CURRENT_INSTALLED_DIR}/tools/libgpg-error/bin/gpgrt-config"
+ "LIBGCRYPT_CONFIG=${CURRENT_INSTALLED_DIR}/tools/libgcrypt/bin/libgcrypt-config"
+ OPTIONS_DEBUG
+ "--with-qt5-qmake=${CURRENT_HOST_INSTALLED_DIR}/tools/qt5/debug/bin/qmake"
+ "--with-qt5-moc=${CURRENT_HOST_INSTALLED_DIR}/tools/qt5/debug/bin/moc"
+ "--with-qt5-uic=${CURRENT_HOST_INSTALLED_DIR}/tools/qt5/debug/bin/uic"
+ "GPG_ERROR_CONFIG=${CURRENT_INSTALLED_DIR}/tools/libgpg-error/debug/bin/gpgrt-config gpg-error"
+ "GPGRT_CONFIG=${CURRENT_INSTALLED_DIR}/tools/libgpg-error/debug/bin/gpgrt-config"
+ "LIBGCRYPT_CONFIG=${CURRENT_INSTALLED_DIR}/tools/libgcrypt/debug/bin/libgcrypt-config"
+)
+
+vcpkg_make_install()
+vcpkg_copy_pdbs()
+vcpkg_fixup_pkgconfig()
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
+ string(REGEX MATCH "^([0-9]*[.][0-9]*)" MAJOR_MINOR "${VERSION}")
+ foreach(GUI IN LISTS FEATURES_GUI)
+ vcpkg_cmake_config_fixup(PACKAGE_NAME gwengui-${GUI} CONFIG_PATH lib/cmake/gwengui-${GUI}-${MAJOR_MINOR} DO_NOT_DELETE_PARENT_CONFIG_PATH)
+ endforeach()
+ vcpkg_cmake_config_fixup(PACKAGE_NAME gwenhywfar CONFIG_PATH lib/cmake/gwenhywfar-${MAJOR_MINOR})
+else()
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake" "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
+endif()
+
+vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin")
+vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/gwenhywfar-config" [[dir="[^"]*"]] [[dir=""]] REGEX) # unused abs path
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
diff --git a/vcpkg/ports/libgwenhywfar/static-link-order.diff b/vcpkg/ports/libgwenhywfar/static-link-order.diff new file mode 100644 index 0000000..2cd0b46 --- /dev/null +++ b/vcpkg/ports/libgwenhywfar/static-link-order.diff @@ -0,0 +1,17 @@ +diff --git a/tools/gwenbuild/Makefile.am b/tools/gwenbuild/Makefile.am +index 14aa0e2..eb60988 100644 +--- a/tools/gwenbuild/Makefile.am ++++ b/tools/gwenbuild/Makefile.am +@@ -28,11 +28,11 @@ noinst_HEADERS=\ + + + gwbuild_LDADD = \ +- $(top_builddir)/src/$(gwenhywfar_internal_libname) \ + types/libgwb_types.la \ + parser/libgwb_parser.la \ + tools/libgwb_tools.la \ + builders/libgwb_builders.la \ + buildctx/libgwb_build.la \ ++ $(top_builddir)/src/$(gwenhywfar_internal_libname) \ + $(PROG_LIBRARIES) + diff --git a/vcpkg/ports/libgwenhywfar/vcpkg.json b/vcpkg/ports/libgwenhywfar/vcpkg.json new file mode 100644 index 0000000..88bfb4a --- /dev/null +++ b/vcpkg/ports/libgwenhywfar/vcpkg.json @@ -0,0 +1,58 @@ +{ + "name": "libgwenhywfar", + "version-semver": "5.12.0", + "description": "A helper library for networking and security applications and libraries", + "homepage": "https://www.aquamaniac.de/rdm/", + "supports": "!windows | mingw", + "dependencies": [ + { + "name": "gettext", + "host": true + }, + "libgcrypt", + "libgnutls", + { + "name": "vcpkg-cmake-config", + "host": true + }, + { + "name": "vcpkg-make", + "host": true + } + ], + "default-features": [ + "cpp", + "libxml2" + ], + "features": { + "cpp": { + "description": "A C++ binding for the C module GWEN_GUI" + }, + "libxml2": { + "description": "Enables libXML2-depending functionality", + "dependencies": [ + { + "name": "libxml2", + "default-features": false + } + ] + }, + "openssl": { + "description": "OpenSSL support in gct-tool", + "supports": "!arm64", + "dependencies": [ + "openssl" + ] + }, + "qt5": { + "description": "Qt bindings", + "supports": "!(osx & static)", + "dependencies": [ + { + "name": "qt5-base", + "default-features": false + } + ] + } + } +} |