summaryrefslogtreecommitdiff
path: root/libmad/Pkgfile
blob: ac5d078bf1575f4addc1c6b936f14405cb3c0171 (plain)
    1 # Description: High-quality MPEG Audio Decoder library.
    2 # URL: http://www.underbit.com/products/mad/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: cmake
    5 
    6 name=libmad
    7 version=0.16.3
    8 release=1
    9 source=(https://github.com/tenacityteam/libmad/archive/$version/$name-$version.tar.gz)
   10 
   11 build() {
   12 	cmake -S $name-$version -B build \
   13 	  -D CMAKE_INSTALL_PREFIX=/usr \
   14 	  -D CMAKE_INSTALL_LIBDIR=lib \
   15 	  -D CMAKE_BUILD_TYPE=Release \
   16 	  -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   17 	  -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   18 	  -Wno-dev
   19 
   20 	cmake --build build
   21 	DESTDIR=$PKG cmake --install build
   22 }

Generated by cgit