aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2016-12-07 13:02:46 -0800
committerGitHub <noreply@github.com>2016-12-07 13:02:46 -0800
commit3aa906c5920ce45593560c9f4ebb96ba753d50f4 (patch)
tree7cff075419cb0a44306fe8702724642bc42c28f8
parented2994a5e930b27fd5dbe121b35fe0abba428376 (diff)
parentabc8c375209b0ee8d99e50a6ac9172a83ee61e6d (diff)
downloadvcpkg-3aa906c5920ce45593560c9f4ebb96ba753d50f4.tar.gz
vcpkg-3aa906c5920ce45593560c9f4ebb96ba753d50f4.zip
Merge pull request #401 from codicodi/fix-flac
[libflac] link to correct version of ogg
-rw-r--r--ports/libflac/CMakeLists.txt11
-rw-r--r--ports/libflac/CONTROL2
-rw-r--r--ports/libflac/portfile.cmake2
3 files changed, 6 insertions, 9 deletions
diff --git a/ports/libflac/CMakeLists.txt b/ports/libflac/CMakeLists.txt
index 2f3dedbdb..afe55f55e 100644
--- a/ports/libflac/CMakeLists.txt
+++ b/ports/libflac/CMakeLists.txt
@@ -3,10 +3,6 @@ cmake_policy(SET CMP0005 NEW) # do not escape preprocessor defines
project(libflac)
-if(NOT DEFINED LIBFLAC_OGG_LIB OR NOT DEFINED LIBFLAC_OGG_INCLUDES)
- message(FATAL_ERROR "Ogg library required")
-endif()
-
if(NOT DEFINED LIBFLAC_ARCHITECTURE)
message(FATAL_ERROR "Target architecture not specified")
endif()
@@ -20,7 +16,6 @@ file(GLOB LIBFLACXX_SOURCES
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/src/libFLAC/include)
-include_directories(${LIBFLAC_OGG_INCLUDES})
if(NOT LIBFLAC_ARCHITECTURE MATCHES arm)
add_definitions(-DFLAC__SSE_OS)
@@ -49,7 +44,11 @@ add_library(libFLACXX ${LIBFLACXX_SOURCES})
set_target_properties(libFLAC PROPERTIES OUTPUT_NAME flac)
set_target_properties(libFLACXX PROPERTIES OUTPUT_NAME flac++)
-target_link_libraries(libFLAC ${LIBFLAC_OGG_LIB})
+find_library(OGG_LIBRARY ogg)
+find_path(OGG_INCLUDE_DIR ogg/ogg.h)
+
+include_directories(${OGG_INCLUDE_DIR})
+target_link_libraries(libFLAC ${OGG_LIBRARY})
target_link_libraries(libFLACXX libFLAC)
if(BUILD_SHARED_LIBS)
diff --git a/ports/libflac/CONTROL b/ports/libflac/CONTROL
index 557b30123..9b1a37531 100644
--- a/ports/libflac/CONTROL
+++ b/ports/libflac/CONTROL
@@ -1,4 +1,4 @@
Source: libflac
-Version: 1.3.1
+Version: 1.3.1-1
Description: Library for manipulating FLAC files
Build-Depends: libogg
diff --git a/ports/libflac/portfile.cmake b/ports/libflac/portfile.cmake
index 38b4846be..4ed496fb8 100644
--- a/ports/libflac/portfile.cmake
+++ b/ports/libflac/portfile.cmake
@@ -18,8 +18,6 @@ vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DLIBFLAC_ARCHITECTURE=${VCPKG_TARGET_ARCHITECTURE}
- -DLIBFLAC_OGG_LIB=${VCPKG_ROOT_DIR}/installed/${TARGET_TRIPLET}/lib/ogg.lib
- -DLIBFLAC_OGG_INCLUDES=${VCPKG_ROOT_DIR}/installed/${TARGET_TRIPLET}/include
OPTIONS_DEBUG
-DLIBFLAC_SKIP_HEADERS=ON)