Making lynx, yacas and alsa-lib crossbuild
svn path=/nixpkgs/branches/stdenv-updates/; revision=23130
This commit is contained in:
parent
3ece765eed
commit
039b660b5b
@ -15,6 +15,7 @@ stdenv.mkDerivation {
|
|||||||
configureFlags = if sslSupport then "--with-ssl" else "";
|
configureFlags = if sslSupport then "--with-ssl" else "";
|
||||||
|
|
||||||
buildInputs = [ ncurses ] ++ stdenv.lib.optional sslSupport openssl;
|
buildInputs = [ ncurses ] ++ stdenv.lib.optional sslSupport openssl;
|
||||||
|
buildNativeInputs = [ ncurses ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://lynx.isc.org/;
|
homepage = http://lynx.isc.org/;
|
||||||
|
@ -9,10 +9,29 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Perl is only for the documentation
|
# Perl is only for the documentation
|
||||||
buildInputs = [ perl ];
|
buildNativeInputs = [ perl ];
|
||||||
|
|
||||||
patches = [ ./gcc43.patch ];
|
patches = [ ./gcc43.patch ];
|
||||||
|
|
||||||
|
crossAttrs = {
|
||||||
|
# Trick to get host-built programs needed for the cross-build.
|
||||||
|
# If yacas had proper makefiles, this would not be needed.
|
||||||
|
preConfigure = ''
|
||||||
|
./configure
|
||||||
|
pushd src
|
||||||
|
make mkfastprimes
|
||||||
|
cp mkfastprimes ../..
|
||||||
|
popd
|
||||||
|
pushd manmake
|
||||||
|
make manripper removeduplicates
|
||||||
|
cp manripper removeduplicates ../..
|
||||||
|
popd
|
||||||
|
'';
|
||||||
|
preBuild = ''
|
||||||
|
cp ../mkfastprimes ../manripper ../removeduplicates src
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Easy to use, general purpose Computer Algebra System";
|
description = "Easy to use, general purpose Computer Algebra System";
|
||||||
homepage = http://yacas.sourceforge.net/;
|
homepage = http://yacas.sourceforge.net/;
|
||||||
|
@ -14,6 +14,12 @@ stdenv.mkDerivation rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i -e 's|//int snd_pcm_mixer_element(snd_pcm_t \*pcm, snd_mixer_t \*mixer, snd_mixer_elem_t \*\*elem);|/\*int snd_pcm_mixer_element(snd_pcm_t \*pcm, snd_mixer_t \*mixer, snd_mixer_elem_t \*\*elem);\*/|' include/pcm.h
|
sed -i -e 's|//int snd_pcm_mixer_element(snd_pcm_t \*pcm, snd_mixer_t \*mixer, snd_mixer_elem_t \*\*elem);|/\*int snd_pcm_mixer_element(snd_pcm_t \*pcm, snd_mixer_t \*mixer, snd_mixer_elem_t \*\*elem);\*/|' include/pcm.h
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
crossAttrs = {
|
||||||
|
patchPhase = ''
|
||||||
|
sed -i s/extern/static/g include/iatomic.h
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "ALSA, the Advanced Linux Sound Architecture libraries";
|
description = "ALSA, the Advanced Linux Sound Architecture libraries";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user