diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ea28af..0f29c37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -269,6 +269,9 @@ if(UNIX AND NOT CYGWIN) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/symlink-${ARIBB25_LIB_NAME} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} RENAME arib25) install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -DLDCONFIG_EXECUTABLE=${LDCONFIG_EXECUTABLE} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/PostInstall.cmake)") + configure_file(aribb25/${ARIBB25_LIB_NAME}.pc.in ${ARIBB25_LIB_NAME}.pc @ONLY) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${ARIBB25_LIB_NAME}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + add_custom_target(uninstall ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Uninstall.cmake) # ---------- install (Windows) ---------- diff --git a/aribb25/arib_std_b25.h b/aribb25/arib_std_b25.h index 922aec9..317edcb 100644 --- a/aribb25/arib_std_b25.h +++ b/aribb25/arib_std_b25.h @@ -52,6 +52,8 @@ typedef struct { } ARIB_STD_B25; +#define ARIB_STD_B25_TS_PROBING_MIN_DATA (320 * 9 - 1) + #ifdef __cplusplus extern "C" { #endif diff --git a/aribb25/aribb25.pc.in b/aribb25/aribb25.pc.in new file mode 100644 index 0000000..e536876 --- /dev/null +++ b/aribb25/aribb25.pc.in @@ -0,0 +1,11 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +libdir=@CMAKE_INSTALL_FULL_LIBDIR@ +includedir=${prefix}/include + +Name: @ARIBB25_LIB_NAME@ +Description: @ARIBB25_DESCRIPTION@ +URL: @ARIBB25_URL@ +Version: @ARIBB25_VERSION_STRING@ +Libs: -L${libdir} -l@ARIBB25_LIB_NAME@ +Cflags: -I${includedir}