mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
ddccontrol: use autoreconfHook and fix for newer automake
This commit is contained in:
parent
cc69ea38a5
commit
4370f487fa
14
pkgs/tools/misc/ddccontrol/automake.patch
Normal file
14
pkgs/tools/misc/ddccontrol/automake.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/src/gnome-ddcc-applet/Makefile.am b/src/gnome-ddcc-applet/Makefile.am
|
||||
index d85ff56..b13e74c 100644
|
||||
--- a/src/gnome-ddcc-applet/Makefile.am
|
||||
+++ b/src/gnome-ddcc-applet/Makefile.am
|
||||
@@ -6,7 +6,8 @@ DDCC_LDADD = ../lib/libddccontrol.la
|
||||
|
||||
EXTRA_DIST = GNOME_ddcc-applet.server.in.in GNOME_ddcc-applet.xml
|
||||
|
||||
-pkglib_PROGRAMS = ddcc-applet
|
||||
+programfilesdir = $(pkglibdir)
|
||||
+programfiles_PROGRAMS = ddcc-applet
|
||||
ddcc_applet_SOURCES = ddcc-applet.c ddcc-applet.h
|
||||
|
||||
ddcc_applet_LDADD = $(GNOME_LDFLAGS) $(DDCC_LDADD)
|
@ -1,16 +1,5 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, intltool
|
||||
, libtool
|
||||
, autoconf
|
||||
, automake110x
|
||||
, perl
|
||||
, perlPackages
|
||||
, libxml2
|
||||
, pciutils
|
||||
, pkgconfig
|
||||
, gtk
|
||||
, ddccontrol-db
|
||||
{ stdenv, fetchurl, autoreconfHook, intltool, perl, perlPackages, libxml2
|
||||
, pciutils, pkgconfig, gtk, ddccontrol-db
|
||||
}:
|
||||
|
||||
let version = "0.4.2"; in
|
||||
@ -22,20 +11,13 @@ stdenv.mkDerivation {
|
||||
sha1 = "fd5c53286315a61a18697a950e63ed0c8d5acff1";
|
||||
};
|
||||
|
||||
buildInputs =
|
||||
[
|
||||
intltool
|
||||
libtool
|
||||
autoconf
|
||||
automake110x
|
||||
perl
|
||||
perlPackages.libxml_perl
|
||||
libxml2
|
||||
pciutils
|
||||
pkgconfig
|
||||
gtk
|
||||
ddccontrol-db
|
||||
];
|
||||
nativeBuildInputs = [ autoreconfHook intltool pkgconfig ];
|
||||
|
||||
buildInputs = [
|
||||
perl perlPackages.libxml_perl libxml2 pciutils gtk ddccontrol-db
|
||||
];
|
||||
|
||||
patches = [ ./automake.patch ];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
@ -47,9 +29,6 @@ stdenv.mkDerivation {
|
||||
sed "s/$oldPath/$newPath/" <configure.ac.old >configure.ac
|
||||
rm configure.ac.old
|
||||
'';
|
||||
preConfigure = ''
|
||||
autoreconf --install
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A program used to control monitor parameters by software";
|
||||
|
Loading…
Reference in New Issue
Block a user