mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +00:00
Merge pull request #314507 from ShamrockLee/libdvdnav_4_2_1-cross
libdvdnav_4_2_1: fix cross-compilation
This commit is contained in:
commit
ac4054068e
@ -12,12 +12,31 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [libdvdread];
|
||||
|
||||
configureScript = "./configure2"; # wtf?
|
||||
# The upstream supports two configuration workflow:
|
||||
# one is to generate ./configure via `autoconf`,
|
||||
# the other is to run ./configure2.
|
||||
# ./configure2 is a configureation script included in the upstream source
|
||||
# that supports common "--<name>" flags and generates config.mak and config.h.
|
||||
# See INSTALL inside the upstream source for detail.
|
||||
configureScript = "./configure2";
|
||||
|
||||
configureFlags = [
|
||||
"--cc=${stdenv.cc.targetPrefix}cc"
|
||||
# Let's strip the binaries ourselves,
|
||||
# as unprefixed `strip` command is not available during cross compilation.
|
||||
"--disable-strip"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
mkdir -p $out
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"AR=${stdenv.cc.targetPrefix}ar"
|
||||
"LD=${stdenv.cc.targetPrefix}ld"
|
||||
"RANLIB=${stdenv.cc.targetPrefix}ranlib"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "http://dvdnav.mplayerhq.hu/";
|
||||
description = "Library that implements DVD navigation features such as DVD menus";
|
||||
|
Loading…
Reference in New Issue
Block a user