~cairo-dock-team/ubuntu/natty/cairo-dock-plug-ins/2.3.0-2.1

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
########### sources ###############

SET(cd-slider_LIB_SRCS
	applet-init.c
	applet-init.h
	applet-config.c
	applet-config.h
	applet-notifications.c
	applet-notifications.h
	applet-slider.c
	applet-slider.h
	applet-transitions.c
	applet-transitions.h
	applet-struct.h
)

add_library(${PACKAGE_SLIDER} SHARED ${cd-slider_LIB_SRCS})

########### compil ###############
add_definitions (-DMY_APPLET_SHARE_DATA_DIR="${sliderdatadir}")
add_definitions (-DMY_APPLET_PREVIEW_FILE="preview.jpg")
add_definitions (-DMY_APPLET_CONF_FILE="slider.conf")
add_definitions (-DMY_APPLET_USER_DATA_DIR="slider")
add_definitions (-DMY_APPLET_VERSION="${VERSION_SLIDER}")
add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_SLIDER}")
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")
add_definitions (-DMY_APPLET_ICON_FILE="icon.png")
add_definitions (-DCD_APPLET_MULTI_INSTANCE="1")
add_definitions (-DGL_GLEXT_PROTOTYPES="1")
if (${EXIF_FOUND})
	add_definitions (-DHAVE_EXIF="1")
endif()

include_directories (
	${PACKAGE_INCLUDE_DIRS}
	${EXIF_INCLUDE_DIRS})

link_directories (
	${PACKAGE_LIBRARY_DIRS}
	${EXIF_LIBRARY_DIRS})

target_link_libraries (${PACKAGE_SLIDER}
	${PACKAGE_LIBRARIES}
	${EXIF_LIBRARIES})

########### install files ###############

install(TARGETS ${PACKAGE_SLIDER} DESTINATION ${pluginsdir})


#original Makefile.am contents follow:

# #dnl Process this file with automake to produce Makefile.in
#
#lib_LTLIBRARIES = 
#	libcd-slider.la
#
#
#if WITH_EXIF
#have_exif=-DHAVE_EXIF="1"
#endif
#
#libcd_slider_la_SOURCES = 
#	applet-init.c
#	applet-init.h
#	applet-config.c
#	applet-config.h
#	applet-notifications.c
#	applet-notifications.h
#	applet-slider.c
#	applet-slider.h
#	applet-transitions.c
#	applet-transitions.h
#	applet-struct.h
#
#
#dock_version = `pkg-config --modversion cairo-dock`
#
#libcd_slider_la_CFLAGS = 
#	-I$(top_srcdir)/src
#	$(PACKAGE_CFLAGS)
#	$(EXIF_CFLAGS) 
#	$(have_exif)
#	-DMY_APPLET_SHARE_DATA_DIR=""${sliderdatadir)""
#	-DMY_APPLET_PREVIEW_FILE=""preview.jpg""
#	-DMY_APPLET_CONF_FILE=""slider.conf""
#	-DMY_APPLET_USER_DATA_DIR=""slider""
#	-DMY_APPLET_VERSION=""${VERSION_SLIDER)""
#	-DMY_APPLET_GETTEXT_DOMAIN=""${GETTEXT_SLIDER)""
#	-DMY_APPLET_DOCK_VERSION=""${dock_version)""
#	-DMY_APPLET_ICON_FILE=""icon.png""
#	-DCD_APPLET_MULTI_INSTANCE="1"
#	-DGL_GLEXT_PROTOTYPES=""1""
#	-Werror-implicit-function-declaration
#	-std=c99
##	-g -ggdb -W -Wall
#
#
#libcd_slider_la_LIBADD = 
#	$(EXIF_LIBS) 
#	$(PACKAGE_LIBS) -lm
#
#
#libcd_slider_la_LDFLAGS =
#	-avoid-version -module