summarylogtreecommitdiffstats
path: root/dxflib-automake.diff
blob: 11f3f88c636c364b6d1af5672693ff3d111076db (plain)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
From: Jan Engelhardt <jengelh@medozas.de>
Date: 2011-10-18 01:13:18.085596872 +0200
Upstream: tbd

Use automake+libtool, it's _so_ much easier.

---
 Makefile.am      |   23 +++++++++++++++++++++++
 autogen.sh       |    3 +++
 configure.in     |   24 +++++++-----------------
 test/Makefile.am |    8 ++++++++
 4 files changed, 41 insertions(+), 17 deletions(-)

Index: dxflib-2.5.0.0-1.src/Makefile.am
===================================================================
--- /dev/null
+++ dxflib-2.5.0.0-1.src/Makefile.am
@@ -0,0 +1,25 @@
+# -*- Makefile -*-
+
+SUBDIRS = . test
+
+AM_CPPFLAGS = -I${top_srcdir}/src
+
+lib_LTLIBRARIES = lib/libdxflib.la
+
+lib_libdxflib_la_SOURCES = src/dl_dxf.cpp src/dl_writer_ascii.cpp
+lib_libdxflib_la_LDFLAGS = -release ${PACKAGE_VERSION}
+
+pkginclude_HEADERS = \
+	src/dl_attributes.h \
+	src/dl_codes.h \
+	src/dl_creationadapter.h \
+	src/dl_creationinterface.h \
+	src/dl_dxf.h \
+	src/dl_entities.h \
+	src/dl_exception.h \
+	src/dl_extrusion.h \
+	src/dl_writer.h \
+	src/dl_writer_ascii.h
+
+docu:
+	-doxygen ./doxygen.cfg
Index: dxflib-2.5.0.0-1.src/autogen.sh
===================================================================
--- /dev/null
+++ dxflib-2.5.0.0-1.src/autogen.sh
@@ -0,0 +1,3 @@
+#!/bin/sh -ex
+
+autoreconf -fi;
Index: dxflib-2.5.0.0-1.src/configure.in
===================================================================
--- dxflib-2.5.0.0-1.src.orig/configure.in
+++ dxflib-2.5.0.0-1.src/configure.in
@@ -2,7 +2,9 @@
 #
 # Check for one project file
 #
-AC_INIT(src/dl_dxf.cpp)
+AC_INIT([dxflib], [2.5.0.0.1])
+AC_CONFIG_SRCDIR([src/dl_dxf.cpp])
+AM_INIT_AUTOMAKE([-Wall foreign])
 
 PRODUCT=dxflib
 
@@ -23,17 +25,8 @@ AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_CXX
 AC_PROG_INSTALL
-AC_CHECK_PROG(FIND, find, find, :)
-AC_CHECK_PROG(MAKEDEPEND, makedepend, makedepend, :)
-
-#
-# Try to locate the X Window System include files and libraries
-# and add /usr/local to include and lib path and add -lm (for testing)
-#
-AC_PATH_XTRA
-CFLAGS="$CFLAGS $X_CFLAGS"
-LDFLAGS="$LDFLAGS $X_LIBS -L/usr/local/lib"
-
+AC_DISABLE_STATIC
+LT_INIT
 
 #
 # Declare variables which we want substituted in the Makefile.in's
@@ -48,8 +41,5 @@ AC_CHECK_HEADERS(limits.h)
 # finally create makefiles using Makefile.in
 #
 echo
-AC_OUTPUT(Makefile test/Makefile)
-
-echo
-echo "Run 'make depend' to create dependencies."
-echo
+AC_CONFIG_FILES([Makefile test/Makefile])
+AC_OUTPUT
Index: dxflib-2.5.0.0-1.src/test/Makefile.am
===================================================================
--- /dev/null
+++ dxflib-2.5.0.0-1.src/test/Makefile.am
@@ -0,0 +1,8 @@
+# -*- Makefile -*-
+
+AM_CPPFLAGS = -I${top_srcdir}/src
+
+check_PROGRAMS = test
+
+test_SOURCES = main.cpp test_creationclass.cpp
+test_LDADD   = ../lib/libdxflib.la