diff options
| author | JackBoosY <47264268+JackBoosY@users.noreply.github.com> | 2019-10-05 22:51:07 +0800 |
|---|---|---|
| committer | Curtis J Bezault <curtbezault@gmail.com> | 2019-10-05 07:51:07 -0700 |
| commit | ad493fd8600c13f75dabcad60e6bd8d644f83c6b (patch) | |
| tree | 5ab2aef7c42141bc4b0fb36d155fe178e4cb6742 /ports/libosip2 | |
| parent | 47c6b3f557f305969bb271d10ad4b0b0d936ad23 (diff) | |
| download | vcpkg-ad493fd8600c13f75dabcad60e6bd8d644f83c6b.tar.gz vcpkg-ad493fd8600c13f75dabcad60e6bd8d644f83c6b.zip | |
Add function vcpkg_configure_make/vcpkg_build_make/vcpkg_install_make/vcpkg_build_nmake/vcpkg_install_nmake (#8267)
* Add function vcpkg_configure_make/vcpkg_build_make.
* Fix autoreconf command and add log.
* Add vcpkg_install_make.
* Fix call function name.
* support non-debug mode.
* Add nmake support.
* [tcl]Add new port for testing.
* [vcpkg_configure_make]Fix prefix in linux.
* restart CI systen.
* Separate vcpkg_build_nmake/vcpkg_install_nmake. Add arg PROJECT_NAME.
* fix copy source file. add samples.
* Remove uncommon options.
Add force install para to autoreconf.
* fix build error.
* fix options judgment.
* enable nmake in windows.
* fix some envs and macros. Disable NMAKE in vcpkg_configure_make currently.
* update docs.
* fix environments.
* Modify libosip2 to use vcpkg_configure_make/vcpkg_install_make.
* [tcl]Tcl separates PR.
* trigger PR-EAGER.
* [freexl]Fix options name and remove option NMAKE.
* use tool-chain instead of set environments manually.
* fix autoreconf para.
* use vcpkg_execute_build_process instead.
Diffstat (limited to 'ports/libosip2')
| -rw-r--r-- | ports/libosip2/CONTROL | 2 | ||||
| -rw-r--r-- | ports/libosip2/portfile.cmake | 49 |
2 files changed, 9 insertions, 42 deletions
diff --git a/ports/libosip2/CONTROL b/ports/libosip2/CONTROL index 6ec6246eb..32405dcb0 100644 --- a/ports/libosip2/CONTROL +++ b/ports/libosip2/CONTROL @@ -1,4 +1,4 @@ Source: libosip2 -Version: 5.1.0 +Version: 5.1.0-1 Homepage: https://www.gnu.org/software/osip/ Description: oSIP is an LGPL implementation of SIP. It's stable, portable, flexible and compliant! -may be more-! It is used mostly with eXosip2 stack (GPL) which provides simpler API for User-Agent implementation.
\ No newline at end of file diff --git a/ports/libosip2/portfile.cmake b/ports/libosip2/portfile.cmake index 145c771d5..94d24e591 100644 --- a/ports/libosip2/portfile.cmake +++ b/ports/libosip2/portfile.cmake @@ -17,50 +17,17 @@ vcpkg_extract_source_archive_ex( OUT_SOURCE_PATH SOURCE_PATH ) -find_program(autoreconf autoreconf) -if (NOT autoreconf) - message(FATAL_ERROR "autoreconf must be installed before libx11 can build. Install them with \"apt-get dh-autoreconf\".") -endif() - -find_program(MAKE make) -if (NOT MAKE) - message(FATAL_ERROR "MAKE not found") -endif() - -vcpkg_execute_required_process( - COMMAND "./autogen.sh" - WORKING_DIRECTORY ${SOURCE_PATH} - LOGNAME autoreconf-${TARGET_TRIPLET} +vcpkg_configure_make( + SOURCE_PATH ${SOURCE_PATH} + NO_DEBUG + AUTO_HOST + AUTO_DST + PRERUN_SHELL autogen.sh ) -message(STATUS "Configuring ${TARGET_TRIPLET}") -set(OUT_PATH ${CURRENT_BUILDTREES_DIR}/make-build-${TARGET_TRIPLET}) - -file(REMOVE_RECURSE ${OUT_PATH}) -file(MAKE_DIRECTORY ${OUT_PATH}) - -vcpkg_execute_required_process( - COMMAND "./configure" --prefix=${OUT_PATH} - WORKING_DIRECTORY ${SOURCE_PATH} - LOGNAME config-${TARGET_TRIPLET} -) - -message(STATUS "Building ${TARGET_TRIPLET}") -vcpkg_execute_required_process( - COMMAND make - WORKING_DIRECTORY ${SOURCE_PATH} - LOGNAME build-${TARGET_TRIPLET}-release -) - -message(STATUS "Installing ${TARGET_TRIPLET}") -vcpkg_execute_required_process( - COMMAND make install - WORKING_DIRECTORY ${SOURCE_PATH} - LOGNAME install-${TARGET_TRIPLET}-release -) -file(COPY ${OUT_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR}) -file(COPY ${OUT_PATH}/lib DESTINATION ${CURRENT_PACKAGES_DIR}) +vcpkg_install_make() +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(GLOB_RECURSE LIBOSIP2_BINARIES ${CURRENT_PACKAGES_DIR}/lib *.so) foreach(LIBOSIP2_BINARY LIBOSIP2_BINARIES) if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) |
