mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
duktape: use upstream pkg-config file
This commit is contained in:
parent
a0812c489d
commit
a37c5966a9
2 changed files with 3 additions and 13 deletions
|
@ -1,10 +0,0 @@
|
|||
prefix=@out@
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: duktape
|
||||
Description: An embeddable Javascript engine, with a focus on portability and compact footprint
|
||||
Version: @version@
|
||||
Libs: -L${libdir} -lduktape
|
||||
Cflags: -I${includedir}
|
|
@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
make -f Makefile.cmdline
|
||||
''
|
||||
+ lib.optionalString (!stdenv.hostPlatform.isStatic) ''
|
||||
make -f Makefile.sharedlibrary
|
||||
make INSTALL_PREFIX="$out" -f Makefile.sharedlibrary
|
||||
'';
|
||||
|
||||
installPhase =
|
||||
|
@ -37,8 +37,8 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
+ lib.optionalString (!stdenv.hostPlatform.isStatic) ''
|
||||
install -d $out/lib/pkgconfig
|
||||
install -d $out/include
|
||||
make -f Makefile.sharedlibrary install INSTALL_PREFIX=$out
|
||||
substituteAll ${./duktape.pc.in} $out/lib/pkgconfig/duktape.pc
|
||||
|
||||
make INSTALL_PREFIX="$out" -f Makefile.sharedlibrary install
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue