Skip to content

Commit

Permalink
fix faad2 compile
Browse files Browse the repository at this point in the history
  • Loading branch information
duhow committed Jan 5, 2024
1 parent f260dd2 commit 9b74eb3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/faad2/package.mk
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
PACKAGE_NAME="FAAD2"
PACKAGE_VERSION="2.11.1"
PACKAGE_SRC="https://github.com/knik0/faad2/archive/${PACKAGE_VERSION}.tar.gz"

preconfigure_package() {
./bootstrap
}
PACKAGE_USE_SEPARATE_BUILD_DIR="true"

configure_package() {
CC="${BUILD_CC}" CXX="${BUILD_CXX}" CFLAGS="${BUILD_CFLAGS}" CXXFLAGS="${BUILD_CFLAGS}" CPPFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}" PKG_CONFIG_LIBDIR="${BUILD_PKG_CONFIG_LIBDIR}" PKG_CONFIG_SYSROOT_DIR="${BUILD_PKG_CONFIG_SYSROOT_DIR}" ./configure --prefix=${INSTALL_PREFIX} --build=${MACHTYPE} --host=${BUILD_TARGET}
PKG_CONFIG_LIBDIR="${BUILD_PKG_CONFIG_LIBDIR}" \
PKG_CONFIG_SYSROOT_DIR="${BUILD_PKG_CONFIG_SYSROOT_DIR}" \
cmake \
-DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_CMAKE} \
-DBUILD_SHARED_LIBS=ON \
${PACKAGE_SRC_DIR}
}

make_package() {
Expand Down

0 comments on commit 9b74eb3

Please sign in to comment.