2012-06-20 21:58:16 +02:00
|
|
|
# Description: Free Lossless Audio Codec.
|
2020-06-21 12:21:42 +02:00
|
|
|
# URL: https://xiph.org/flac/
|
2014-11-10 13:25:50 +01:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2006-02-23 16:26:10 +01:00
|
|
|
# Depends on: libogg
|
|
|
|
|
|
|
|
name=flac
|
2022-03-05 17:22:09 +01:00
|
|
|
version=1.3.4
|
|
|
|
release=1
|
|
|
|
source=(https://downloads.xiph.org/releases/flac/$name-$version.tar.xz)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
2022-03-05 18:12:16 +01: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_EXAMPLES=OFF \
|
|
|
|
-D BUILD_TESTING=OFF \
|
|
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2008-10-23 18:36:34 +02:00
|
|
|
|
2022-03-05 18:12:16 +01:00
|
|
|
mkdir $PKG/usr/share/man/1
|
|
|
|
mv $PKG/usr/share/man/{,meta}flac.1 $PKG/usr/share/man/1/.
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|