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
111
112
113
114
|
{
"name": "OpenZwave",
"description": "Library for selected Z-Wave PC controllers",
"url": "http://old.openzwave.com/downloads/openzwave-1.2.919.tar.gz",
"mirror": null,
"homepage": "http://www.openzwave.com",
"depends": [],
"resource": [],
"conflicts": [],
"patches": [
{
"url": null,
"data": [
"diff --git a/cpp/build/Makefile b/cpp/build/Makefile\n",
"index 24df4f5..b064029 100644\n",
"--- a/cpp/build/Makefile\n",
"+++ b/cpp/build/Makefile\n",
"@@ -23,16 +23,24 @@ top_srcdir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../../)\n",
"\n",
" include $(top_srcdir)/cpp/build/support.mk\n",
"\n",
"+#Mac prefers a dylib, not a so\n",
"+ifeq ($(UNAME),Darwin)\n",
"+SHARED_LIB_NAME=libopenzwave-$(VERSION).dylib\n",
"+SHARED_LIB_UNVERSIONED=libopenzwave.dylib\n",
"+else\n",
"+SHARED_LIB_NAME=libopenzwave.so.$(VERSION)\n",
"+SHARED_LIB_UNVERSIONED=libopenzwave.so\n",
"+endif\n",
"\n",
" #if we are on a Mac, add these flags and libs to the compile and link phases\n",
" ifeq ($(UNAME),Darwin)\n",
" CFLAGS\t+= -c -DDARWIN -arch i386 -arch x86_64\n",
"-LDFLAGS += -arch i386 -arch x86_64\n",
"+LDFLAGS += -arch i386 -arch x86_64 -dynamiclib\n",
" LIBS\t+= -framework IOKit -framework CoreFoundation -arch i386 -arch x86_64\n",
" else ifeq ($(UNAME),FreeBSD)\n",
" CFLAGS += -I/usr/local/include\n",
" else\n",
"-LDFLAGS += -Wl,-soname,libopenzwave.so.$(VERSION)\n",
"+LDFLAGS += -shared -Wl,-soname,$(SHARED_LIB_NAME)\n",
" LIBS \t+= -ludev\n",
" endif\n",
"\n",
"@@ -74,10 +82,10 @@ indep := $(notdir $(filter-out $(top_srcdir)/cpp/src/vers.cpp, $(wildcard $(top_\n",
" aes := $(notdir $(wildcard $(top_srcdir)/cpp/src/aes/*.c))\n",
"\n",
"\n",
"-default: $(LIBDIR)/libopenzwave.a $(LIBDIR)/libopenzwave.so.$(VERSION)\n",
"+default: $(LIBDIR)/libopenzwave.a $(LIBDIR)/$(SHARED_LIB_NAME)\n",
"\n",
" clean:\n",
"-\t@rm -rf $(DEPDIR) $(OBJDIR) $(LIBDIR)/libopenzwave.so* $(LIBDIR)/libopenzwave.a $(top_builddir)/libopenzwave.pc $(top_builddir)/docs/api $(top_builddir)/Doxyfile\n",
"+\t@rm -rf $(DEPDIR) $(OBJDIR) $(LIBDIR)/libopenzwave.so* $(LIBDIR)/libopenzwave-*.dylib $(LIBDIR)/libopenzwave.a $(top_builddir)/libopenzwave.pc $(top_builddir)/docs/api $(top_builddir)/Doxyfile\n",
"\n",
"\n",
" -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(tinyxml))\n",
"@@ -110,7 +118,7 @@ $(LIBDIR)/libopenzwave.a:\t$(patsubst %.cpp,$(OBJDIR)/%.o,$(tinyxml)) \\\n",
" \t@$(AR) $@ $+\n",
" \t@$(RANLIB) $@\n",
"\n",
"-$(LIBDIR)/libopenzwave.so.$(VERSION):\t$(patsubst %.cpp,$(OBJDIR)/%.o,$(tinyxml)) \\\n",
"+$(LIBDIR)/$(SHARED_LIB_NAME):\t$(patsubst %.cpp,$(OBJDIR)/%.o,$(tinyxml)) \\\n",
" \t\t\t$(patsubst %.c,$(OBJDIR)/%.o,$(hidapi)) \\\n",
" \t\t\t$(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \\\n",
" \t\t\t$(patsubst %.cpp,$(OBJDIR)/%.o,$(cclasses)) \\\n",
"@@ -120,7 +128,7 @@ $(LIBDIR)/libopenzwave.so.$(VERSION):\t$(patsubst %.cpp,$(OBJDIR)/%.o,$(tinyxml))\n",
" \t\t\t$(OBJDIR)/vers.o\n",
" \t@echo \"Linking Shared Library\"\n",
"-\t@$(LD) $(LDFLAGS) -shared -o $@ $+ $(LIBS)\n",
"-\t@ln -sf libopenzwave.so.$(VERSION) $(LIBDIR)/libopenzwave.so\n",
"+\t@$(LD) $(LDFLAGS) -o $@ $+ $(LIBS)\n",
"+\t@ln -sf $(SHARED_LIB_NAME) $(LIBDIR)/$(SHARED_LIB_UNVERSIONED)\n",
"\n",
" ifeq ($(PKGCONFIG),)\n",
" $(top_builddir)/libopenzwave.pc: $(top_srcdir)/cpp/build/libopenzwave.pc.in\n",
"@@ -155,10 +163,10 @@ doc: $(top_builddir)/Doxyfile\n",
" \t@cd $(top_builddir); $(DOXYGEN)\n",
" endif\n",
"\n",
"-install: $(LIBDIR)/libopenzwave.so.$(VERSION) doc $(top_builddir)/libopenzwave.pc\n",
"+install: $(LIBDIR)/$(SHARED_LIB_NAME) doc $(top_builddir)/libopenzwave.pc\n",
" \tinstall -d $(DESTDIR)/$(instlibdir)/\n",
"-\tcp $(LIBDIR)/libopenzwave.so.$(VERSION) $(DESTDIR)/$(instlibdir)/libopenzwave.so.$(VERSION)\n",
"-\tln -sf libopenzwave.so.$(VERSION) $(DESTDIR)/$(instlibdir)/libopenzwave.so\n",
"+\tcp $(LIBDIR)/$(SHARED_LIB_NAME) $(DESTDIR)/$(instlibdir)/$(SHARED_LIB_NAME)\n",
"+\tln -sf $(SHARED_LIB_NAME) $(DESTDIR)/$(instlibdir)/$(SHARED_LIB_UNVERSIONED)\n",
" \tinstall -d $(DESTDIR)/$(includedir)\n",
" \tinstall -m 0644 $(top_srcdir)/cpp/src/*.h $(DESTDIR)/$(includedir)\n",
" \tinstall -d $(DESTDIR)/$(includedir)/command_classes/\n",
"diff --git a/cpp/examples/MinOZW/Makefile b/cpp/examples/MinOZW/Makefile\n",
"index 0f1fd50..3805a39 100644\n",
"--- a/cpp/examples/MinOZW/Makefile\n",
"+++ b/cpp/examples/MinOZW/Makefile\n",
"@@ -19,7 +19,7 @@ top_srcdir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../../../)\n",
"\n",
"\n",
" INCLUDES\t:= -I $(top_srcdir)/cpp/src -I $(top_srcdir)/cpp/tinyxml/ -I $(top_srcdir)/cpp/hidapi/hidapi/\n",
"-LIBS = $(wildcard $(LIBDIR)/*.so $(top_builddir)/*.so $(top_builddir)/cpp/build/*.so )\n",
"+LIBS = $(wildcard $(LIBDIR)/*.so $(LIBDIR)/*.dylib $(top_builddir)/*.so $(top_builddir)/*.dylib $(top_builddir)/cpp/build/*.so $(top_builddir)/cpp/build/*.dylib )\n",
" LIBSDIR = $(abspath $(dir $(firstword $(LIBS))))\n",
" minozwsrc := $(notdir $(wildcard $(top_srcdir)/cpp/examples/MinOZW/*.cpp))\n",
" VPATH := $(top_srcdir)/cpp/examples/MinOZW\n"
]
}
],
"install": [
"ENV[\"BUILD\"] = \"release\"",
"ENV[\"PREFIX\"] = prefix",
"system \"make\", \"install\""
],
"version": "1.2.919",
"file": "open-zwave.rb"
}
|