2019-10-07 19:35:13 +02:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
2019-10-07 19:35:13 +02:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-06-27 06:06:30 +08:00
|
|
|
REPO argtable/argtable
|
|
|
|
REF argtable-2.13
|
|
|
|
FILENAME "argtable2-13.tar.gz"
|
|
|
|
SHA512 3d8303f3ba529e3241d918c0127a16402ece951efb964d14a06a3a7d29a252812ad3c44e96da28798871e9923e73a2cfe7ebc84139c1397817d632cae25c4585
|
2020-09-24 15:15:06 -07:00
|
|
|
PATCHES
|
|
|
|
0001-fix-install-dirs.patch
|
|
|
|
0002-include-correct-headers.patch
|
2022-12-28 13:07:26 -08:00
|
|
|
0003-add-dependence-getopt.patch
|
2019-10-07 19:35:13 +02:00
|
|
|
)
|
|
|
|
|
2022-12-28 13:07:26 -08:00
|
|
|
set(HAVE_GETOPT_H "")
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
|
|
|
set(HAVE_GETOPT_H 1)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-10-07 19:35:13 +02:00
|
|
|
OPTIONS
|
|
|
|
-DCMAKE_DEBUG_POSTFIX=d
|
2022-12-28 13:07:26 -08:00
|
|
|
-DHAVE_GETOPT_H=${HAVE_GETOPT_H}
|
2019-10-07 19:35:13 +02:00
|
|
|
)
|
|
|
|
|
2022-12-28 13:07:26 -08:00
|
|
|
vcpkg_cmake_install()
|
2019-10-07 19:35:13 +02:00
|
|
|
|
2022-12-28 13:07:26 -08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-10-07 19:35:13 +02:00
|
|
|
|
2022-12-28 13:07:26 -08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|