Fix optional gtk-mac-integration
This commit is contained in:
parent
b484164017
commit
c0fcdb5484
|
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
patches = [ ./gtkflags.patch ];
|
||||
|
||||
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
string1='-shared ''${LDFLAGS} -o $@ ''$(OBJECTS) ''${LIBS}'
|
||||
string2='-Wl,-dylib_install_name,''${PLUGIN}.dylib -Wl,-bundle_loader,${zathura_core}/bin/.zathura-wrapped -bundle ''${LDFLAGS} -o $@ ''${OBJECTS} ''${LIBS}'
|
||||
makefileC1=$(sed -r 's/\.so/.dylib/g' Makefile)
|
||||
|
|
|
@ -15,10 +15,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [
|
||||
zathura_core gtk girara openssl mupdf libjpeg jbig2dec openjpeg
|
||||
] ++ stdenv.lib.optional stdenv.isDarwin [
|
||||
gtk-mac-integration
|
||||
];
|
||||
|
||||
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
string1='-shared ''${LDFLAGS} -o $@ ''$(OBJECTS) ''${LIBS}'
|
||||
string2='-Wl,-dylib_install_name,''${PLUGIN}.dylib -Wl,-bundle_loader,${zathura_core}/bin/.zathura-wrapped -bundle ''${LDFLAGS} -o $@ ''${OBJECTS} ''${LIBS}'
|
||||
makefileC1=$(sed -r 's/\.so/.dylib/g' Makefile)
|
||||
|
|
|
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
makeFlags = [ "PREFIX=$(out)" "PLUGINDIR=$(out)/lib" ];
|
||||
|
||||
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
string1='-shared ''${LDFLAGS} -o $@ ''$(OBJECTS) ''${LIBS}'
|
||||
string2='-Wl,-dylib_install_name,''${PLUGIN}.dylib -Wl,-bundle_loader,${zathura_core}/bin/.zathura-wrapped -bundle ''${LDFLAGS} -o $@ ''${OBJECTS} ''${LIBS}'
|
||||
makefileC1=$(sed -r 's/\.so/.dylib/g' Makefile)
|
||||
|
|
|
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
patches = [ ./gtkflags.patch ];
|
||||
|
||||
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
makefileC1=$(sed -r 's/\.so/.dylib/g' Makefile)
|
||||
makefileC2=$(echo "$makefileC1" | sed 's|-shared ''${LDFLAGS} -o $@ ''$(OBJECTS) ''${LIBS}|-Wl,-dylib_install_name,''${PLUGIN}.dylib -Wl,-bundle_loader,${zathura_core}/bin/.zathura-wrapped -bundle ''${LDFLAGS} -o $@ ''${OBJECTS} ''${LIBS}|g' )
|
||||
echo "$makefileC2" > Makefile
|
||||
|
|
Loading…
Reference in New Issue