2012-06-21 05:58:16 +10:00
|
|
|
# Description: Free Lossless Audio Codec.
|
2020-06-21 20:21:42 +10:00
|
|
|
# URL: https://xiph.org/flac/
|
2023-06-30 17:28:04 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2006-02-23 15:26:10 +00:00
|
|
|
# Depends on: libogg
|
|
|
|
|
|
|
|
name=flac
|
2023-06-30 17:28:04 +02:00
|
|
|
version=1.4.3
|
2022-03-05 17:22:09 +01:00
|
|
|
release=1
|
2022-10-22 16:42:55 +02:00
|
|
|
source=(https://github.com/xiph/flac/releases/download/$version/flac-$version.tar.xz)
|
2022-09-11 17:06:14 +02:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
build() {
|
2023-06-30 17:28:04 +02:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D BUILD_SHARED_LIBS=ON \
|
|
|
|
-D BUILD_EXAMPLES=OFF \
|
|
|
|
-D BUILD_TESTING=OFF \
|
|
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|