aboutsummaryrefslogtreecommitdiff
path: root/ports/bzip2
diff options
context:
space:
mode:
authorLRFLEW <LRFLEW@aol.com>2019-01-29 14:43:39 -0700
committerRobert Schumacher <roschuma@microsoft.com>2019-01-29 13:43:39 -0800
commite6552f118071a9798a2ffada7ae4707f3b29ed14 (patch)
tree292331128100f5fd631ab071f4d969d871874db2 /ports/bzip2
parentcde34211a506a2efc7483c41d937b31dc8e24666 (diff)
downloadvcpkg-e6552f118071a9798a2ffada7ae4707f3b29ed14.tar.gz
vcpkg-e6552f118071a9798a2ffada7ae4707f3b29ed14.zip
[BZip2] Fix Unix Dynamic Builds (#5184)
* [BZip2] Fix Unix Dynamic Builds * [bzip2] Bump control version * [libgta] Only build one flavor * [vcpkg_configure_cmake] Resolve #2375 since we now use CMake >= 3.11
Diffstat (limited to 'ports/bzip2')
-rw-r--r--ports/bzip2/CMakeLists.txt19
-rw-r--r--ports/bzip2/CONTROL2
2 files changed, 11 insertions, 10 deletions
diff --git a/ports/bzip2/CMakeLists.txt b/ports/bzip2/CMakeLists.txt
index 2f70c5404..e2da221d7 100644
--- a/ports/bzip2/CMakeLists.txt
+++ b/ports/bzip2/CMakeLists.txt
@@ -5,7 +5,7 @@ if(CMAKE_BUILD_TYPE STREQUAL Debug)
add_definitions(-DBZ_DEBUG) # enable extra assertions
endif()
-set(LIBBZ2_SOURCES
+set(BZ2_SOURCES
blocksort.c
huffman.c
crctable.c
@@ -14,12 +14,13 @@ set(LIBBZ2_SOURCES
decompress.c
bzlib.c)
-add_library(libbz2 ${LIBBZ2_SOURCES})
-set_target_properties(libbz2 PROPERTIES
- ARCHIVE_OUTPUT_NAME bz2 # required for FindBzip2 to work
- DEBUG_POSTFIX d)
+add_library(bz2 ${BZ2_SOURCES})
+set_target_properties(bz2 PROPERTIES
+ DEBUG_POSTFIX d
+ VERSION 1.0.6
+ SOVERSION 1.0)
if(BUILD_SHARED_LIBS)
- target_compile_definitions(libbz2 PRIVATE -DBZ_BUILD_DLL)
+ target_compile_definitions(bz2 PRIVATE -DBZ_BUILD_DLL)
endif()
if(MSVC)
@@ -28,14 +29,14 @@ if(MSVC)
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
endif()
-install(TARGETS libbz2
+install(TARGETS bz2
RUNTIME DESTINATION bin
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib)
if(NOT BZIP2_SKIP_TOOLS)
- add_executable(bzip2 bzip2.c ${LIBBZ2_SOURCES})
- add_executable(bzip2recover bzip2recover.c ${LIBBZ2_SOURCES})
+ add_executable(bzip2 bzip2.c ${BZ2_SOURCES})
+ add_executable(bzip2recover bzip2recover.c ${BZ2_SOURCES})
install(TARGETS bzip2 bzip2recover DESTINATION tools/bzip2)
endif()
diff --git a/ports/bzip2/CONTROL b/ports/bzip2/CONTROL
index fad303399..00995aed9 100644
--- a/ports/bzip2/CONTROL
+++ b/ports/bzip2/CONTROL
@@ -1,3 +1,3 @@
Source: bzip2
-Version: 1.0.6-3
+Version: 1.0.6-4
Description: High-quality data compressor.