libAfterImage: build shared libs by default
This commit is contained in:
parent
3ec06bc2eb
commit
0b6dcc02cd
@ -1,4 +1,5 @@
|
|||||||
{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook, giflib, libjpeg, libpng, zlib }:
|
{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook, giflib, libjpeg, libpng, zlib
|
||||||
|
, static ? stdenv.hostPlatform.isStatic }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "libAfterImage";
|
pname = "libAfterImage";
|
||||||
@ -52,11 +53,16 @@ stdenv.mkDerivation {
|
|||||||
rm -rf {libjpeg,libpng,libungif,zlib}/
|
rm -rf {libjpeg,libpng,libungif,zlib}/
|
||||||
substituteInPlace Makefile.in \
|
substituteInPlace Makefile.in \
|
||||||
--replace "include .depend" ""
|
--replace "include .depend" ""
|
||||||
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace Makefile.in \
|
||||||
|
--replace "-soname," "-install_name,$out/lib/"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-gif"
|
"--with-gif"
|
||||||
"--disable-mmx-optimization"
|
"--disable-mmx-optimization"
|
||||||
|
"--${if static then "enable" else "disable"}-staticlibs"
|
||||||
|
"--${if !static then "enable" else "disable"}-sharedlibs"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user