File: 0002-use-autotools.patch

package info (click to toggle)
xdesktopwaves 1.3-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 316 kB
  • sloc: ansic: 3,842; makefile: 50
file content (63 lines) | stat: -rw-r--r-- 1,587 bytes parent folder | download
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
From: Boyuan Yang <byang@debian.org>
Date: Thu, 9 Sep 2021 20:40:56 -0400
Subject: use autotools

---
 Makefile.am  | 10 ++++++++++
 configure.ac | 30 ++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 Makefile.am
 create mode 100644 configure.ac

diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..4b04474
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,10 @@
+gamesdir = $(prefix)/games
+games_PROGRAMS = xdesktopwaves
+
+xdesktopwaves_SOURCES = xdesktopwaves.c
+xdesktopwaves_CPPFLAGS = -DXDW_MAX_OPTIMIZATION=2
+
+dist_man_MANS = xdesktopwaves.1
+
+pixmapsdir = $(datadir)/pixmaps/
+pixmaps_DATA = xdesktopwaves.xpm
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..10010f1
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,30 @@
+#                                               -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.69])
+AC_INIT([xdesktopwaves], [1.3], [xdesktopwaves.sourceforge.net])
+AC_CONFIG_SRCDIR([xdesktopwaves.c])
+AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE([foreign])
+
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_INSTALL
+
+# Checks for libraries.
+AC_CHECK_LIB([X11], [XOpenDisplay])
+AC_CHECK_LIB([Xext], [XextCreateExtension])
+AC_CHECK_LIB([m], [sin])
+
+# Checks for header files.
+AC_PATH_X
+AC_CHECK_HEADERS([unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+AC_CHECK_FUNCS([memset sqrt strerror])
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT