summaryrefslogtreecommitdiff
path: root/graphics/iulib/files/patch-genAM.py
blob: b2e25b12d6ef76cf27b5c951e4ec3191f6e73f35 (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
--- ./genAM.py.orig	2009-06-10 07:32:20.000000000 +0900
+++ ./genAM.py	2009-06-11 18:24:46.000000000 +0900
@@ -25,12 +25,12 @@
 # Primary Repository: http://ocropus.googlecode.com/svn/trunk/
 # Web Sites: www.iupr.org, www.dfki.de
 
-AM_CPPFLAGS = -I$(srcdir)/colib -I$(srcdir)/imgio -I$(srcdir)/imglib
+AM_CPPFLAGS = -I$(srcdir)/colib -I$(srcdir)/imgio -I$(srcdir)/imglib -I$(srcdir)/imgbits -I$(srcdir)/utils -I$(srcdir)/vidio
 
 includedir = ${prefix}/include/iulib
 colibdir = ${prefix}/include/colib
 
-lib_LIBRARIES = libiulib.a
+lib_LTLIBRARIES = libiulib.la
 """
 
 dirs = """
@@ -39,7 +39,7 @@
     imgbits
 """.split()
 
-print "libiulib_a_SOURCES = ",
+print "libiulib_la_SOURCES = ",
 for d in dirs:
     print '\\'
     for cc in glob.glob(d + "/*.cc"):
@@ -82,35 +82,23 @@
 print """
 # conditionals
 if have_sdl
-    libiulib_a_SOURCES += $(srcdir)/utils/dgraphics.cc
-    libiulib_a_SOURCES += $(srcdir)/utils/SDL_lines.cc
+    libiulib_la_SOURCES += $(srcdir)/utils/dgraphics.cc
+    libiulib_la_SOURCES += $(srcdir)/utils/SDL_lines.cc
     include_HEADERS += $(srcdir)/utils/SDL_lines.h
 else
-    libiulib_a_SOURCES += $(srcdir)/utils/dgraphics_nosdl.cc
+    libiulib_la_SOURCES += $(srcdir)/utils/dgraphics_nosdl.cc
 endif
 
 if have_vidio
-    libiulib_a_SOURCES += $(srcdir)/vidio/vidio.cc
+    libiulib_la_SOURCES += $(srcdir)/vidio/vidio.cc
 endif
 
 # We install it always because iulib.h always includes it.
 include_HEADERS += $(srcdir)/vidio/vidio.h
 
 if have_v4l2
-    libiulib_a_SOURCES += $(srcdir)/vidio/v4l2cap.cc
+    libiulib_la_SOURCES += $(srcdir)/vidio/v4l2cap.cc
 endif
-
-# make installation of colib a separate target
-
-install-colib:
-	install -d $(colibdir)
-	install $(colib_HEADERS) $(colibdir)
-
-install: all install-colib
-	install -d $(includedir)
-	install -d $(libdir)
-	install $(include_HEADERS) $(includedir)
-	install $(lib_LIBRARIES) $(libdir)
 """
 
 print