aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoratkawa7 <atkawa7@yahoo.com>2017-11-04 15:52:07 -0700
committerAlexander Karatarakis <alex@karatarakis.com>2017-11-04 16:51:20 -0700
commit9e71c1810cd6f6a56848c794d51fc4c1960e4634 (patch)
treefe0b7264053ef8ae6483684e3670ce41d7561275
parent61c0a337842b50d4b914893030193f3a1faaedf4 (diff)
downloadvcpkg-9e71c1810cd6f6a56848c794d51fc4c1960e4634.tar.gz
vcpkg-9e71c1810cd6f6a56848c794d51fc4c1960e4634.zip
[alac] init
-rw-r--r--ports/alac/CMakeLists.txt65
-rw-r--r--ports/alac/CONTROL3
-rw-r--r--ports/alac/portfile.cmake21
3 files changed, 89 insertions, 0 deletions
diff --git a/ports/alac/CMakeLists.txt b/ports/alac/CMakeLists.txt
new file mode 100644
index 000000000..843189546
--- /dev/null
+++ b/ports/alac/CMakeLists.txt
@@ -0,0 +1,65 @@
+cmake_minimum_required (VERSION 3.9)
+project (alac)
+
+set(HEADERS
+ codec/EndianPortable.h
+ codec/aglib.h
+ codec/ALACAudioTypes.h
+ codec/ALACBitUtilities.h
+ codec/ALACDecoder.h
+ codec/ALACEncoder.h
+ codec/dplib.h
+ codec/matrixlib.h
+)
+
+
+set (SRCS
+ codec/EndianPortable.c
+ codec/ALACBitUtilities.c
+ codec/ALACDecoder.cpp
+ codec/ALACEncoder.cpp
+ codec/ag_dec.c
+ codec/ag_enc.c
+ codec/dp_dec.c
+ codec/dp_enc.c
+ codec/matrix_dec.c
+ codec/matrix_enc.c
+)
+
+set(EXE_SRCS
+ convert-utility/main.cpp
+ convert-utility/CAFFileALAC.cpp
+)
+
+if(MSVC)
+ add_compile_options(/W4 -D_CRT_SECURE_NO_WARNINGS -DTARGET_OS_WIN32)
+endif()
+
+if(BUILD_SHARED_LIBS)
+ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
+endif()
+
+include_directories(. codec convert-utility)
+
+add_library(libalac ${SRCS})
+
+add_executable(alacconvert ${EXE_SRCS})
+target_link_libraries(alacconvert libalac)
+
+install(
+ TARGETS libalac
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
+
+if(NOT DISABLE_INSTALL_TOOLS)
+ install (
+ TARGETS alacconvert
+ RUNTIME DESTINATION tools/alac
+ )
+endif()
+
+if(NOT DISABLE_INSTALL_HEADERS)
+ install(FILES ${HEADERS} DESTINATION include/alac)
+endif()
diff --git a/ports/alac/CONTROL b/ports/alac/CONTROL
new file mode 100644
index 000000000..f50b135e9
--- /dev/null
+++ b/ports/alac/CONTROL
@@ -0,0 +1,3 @@
+Source: alac
+Version: 2017-11-03-c38887c5
+Description: The Apple Lossless Audio Codec (ALAC) is a lossless audio codec developed by Apple and deployed on all of its platforms and devices.
diff --git a/ports/alac/portfile.cmake b/ports/alac/portfile.cmake
new file mode 100644
index 000000000..c04e3a7d1
--- /dev/null
+++ b/ports/alac/portfile.cmake
@@ -0,0 +1,21 @@
+include(vcpkg_common_functions)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO macosforge/alac
+ REF c38887c5c5e64a4b31108733bd79ca9b2496d987
+ SHA512 8da18df25807e76f9187f7bf30585aace303d55444f0a614ab00d98d11caca3fdc5c6f5b9fd11e5f4c92a2ab1e86fef73deeeada57e9d49951fea8b80ba383cc
+ HEAD_REF master
+)
+
+file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_TOOLS=ON
+)
+
+vcpkg_install_cmake()
+vcpkg_copy_pdbs()
+vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/alac)
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/alac RENAME copyright)