early-access version 2853
This commit is contained in:
13
externals/vcpkg/ports/mpfr/dll.patch
vendored
Executable file
13
externals/vcpkg/ports/mpfr/dll.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index fdee5978d..0791b2528 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -593,7 +593,7 @@ case $host in
|
||||
AC_MSG_CHECKING(for DLL/static GMP)
|
||||
if test "$enable_shared" = yes; then
|
||||
MPFR_LDFLAGS="$MPFR_LDFLAGS -no-undefined"
|
||||
- LIBMPFR_LDFLAGS="$LIBMPFR_LDFLAGS -Wl,--output-def,.libs/libmpfr-6.dll.def"
|
||||
+ LIBMPFR_LDFLAGS="$LIBMPFR_LDFLAGS -W1,--no-undefined"
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include "gmp.h"
|
||||
#if !__GMP_LIBGMP_DLL
|
||||
35
externals/vcpkg/ports/mpfr/portfile.cmake
vendored
Executable file
35
externals/vcpkg/ports/mpfr/portfile.cmake
vendored
Executable file
@@ -0,0 +1,35 @@
|
||||
if (VCPKG_TARGET_IS_LINUX)
|
||||
message(WARNING "${PORT} currently requires the following packages:\n autoconf-archive\nThese can be installed on Ubuntu systems via\n sudo apt-get update -y\n sudo apt-get install -y autoconf-archive\n")
|
||||
endif()
|
||||
|
||||
set(VERSION 4.1.0)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://www.mpfr.org/mpfr-${VERSION}/mpfr-${VERSION}.tar.xz" "https://ftp.gnu.org/gnu/mpfr/mpfr-${VERSION}.tar.xz"
|
||||
FILENAME "mpfr-${VERSION}.tar.xz"
|
||||
SHA512 1bd1c349741a6529dfa53af4f0da8d49254b164ece8a46928cdb13a99460285622d57fe6f68cef19c6727b3f9daa25ddb3d7d65c201c8f387e421c7f7bee6273
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE "${ARCHIVE}"
|
||||
PATCHES
|
||||
dll.patch
|
||||
src-only.patch
|
||||
)
|
||||
file(REMOVE_RECURSE "${SOURCE_PATH}/m4")
|
||||
|
||||
vcpkg_configure_make(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
AUTOCONFIG
|
||||
ADDITIONAL_MSYS_PACKAGES autoconf-archive
|
||||
)
|
||||
|
||||
vcpkg_install_make()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING.LESSER" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
20
externals/vcpkg/ports/mpfr/src-only.patch
vendored
Executable file
20
externals/vcpkg/ports/mpfr/src-only.patch
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 89242c6..662ce24 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -24,12 +24,14 @@ AUTOMAKE_OPTIONS = gnu
|
||||
# old Automake version.
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
-SUBDIRS = doc src tests tune tools/bench
|
||||
+SUBDIRS = src # Skipping: doc tests tune tools/bench
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = mpfr.pc
|
||||
|
||||
nobase_dist_doc_DATA = AUTHORS BUGS COPYING COPYING.LESSER NEWS TODO \
|
||||
+ # BREAK
|
||||
+VCPKG_SKIP_EXAMPLES = \
|
||||
examples/ReadMe examples/can_round.c examples/divworst.c \
|
||||
examples/rndo-add.c examples/sample.c examples/threads.c \
|
||||
examples/version.c
|
||||
11
externals/vcpkg/ports/mpfr/vcpkg.json
vendored
Executable file
11
externals/vcpkg/ports/mpfr/vcpkg.json
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "mpfr",
|
||||
"version": "4.1.0",
|
||||
"port-version": 4,
|
||||
"description": "The MPFR library is a C library for multiple-precision floating-point computations with correct rounding",
|
||||
"homepage": "https://www.mpfr.org",
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"dependencies": [
|
||||
"gmp"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user