File: update_autotools.patch

package info (click to toggle)
wmclockmon 0.8.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,388 kB
  • sloc: ansic: 3,567; sh: 2,692; makefile: 143
file content (42 lines) | stat: -rw-r--r-- 1,129 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Description: Update autotools files to work with dh_autoreconf.
 Prior to version 0.8.1-3, many of the patches were applied directly to
 the various Makefile.in's.  Now with dh_autoreconf, these would be
 overwritten.
 .
 In particular, we define the DATADIR macro and make sure that the auxiliary
 programs wmclockmon-cal and wmclockmon-config are built properly.
Author: Doug Torrance <dtorrance@piedmont.edu>
Last-Update: 2016-01-28

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -15,6 +15,8 @@
 
 CPPFLAGS = @CPPFLAGS@ @DFLAGS@
 
+AM_CPPFLAGS = -DDATADIR="\"$(pkgdatadir)\""
+
 INCLUDES = @HEADER_SEARCH_PATH@
 
 wmclockmon_LDADD = @LIBRARY_SEARCH_PATH@ @XLIBS@
--- a/wmclockmon-cal/Makefile.am
+++ b/wmclockmon-cal/Makefile.am
@@ -1,6 +1,6 @@
 bin_PROGRAMS = wmclockmon-cal
 
-wmclockmon_SOURCES =   \
+wmclockmon_cal_SOURCES =   \
 	defines.h \
 	main.c \
 	main.h \
--- a/wmclockmon-config/Makefile.am
+++ b/wmclockmon-config/Makefile.am
@@ -1,6 +1,6 @@
-bin_PROGRAMS = wmclockmon
+bin_PROGRAMS = wmclockmon-config
 
-wmclockmon_SOURCES =   \
+wmclockmon_config_SOURCES =   \
 	actions.c \
 	actions.h \
 	configfile.h \