Changeset 1247
- Timestamp:
- 02/17/10 22:00:05 (2 years ago)
- Location:
- trunk/software/usb_ir
- Files:
-
- 3 added
- 8 edited
- 1 moved
-
Make.settings.in (modified) (1 diff)
-
Makefile.in (modified) (5 diffs)
-
compat.h (modified) (1 diff)
-
daemon.c (modified) (1 diff)
-
drivers/Makefile.in (modified) (1 diff)
-
drivers/libusbpre1.c (modified) (1 diff)
-
osx (added)
-
osx/README-OSX.txt (added)
-
osx/com.iguana.igdaemon.plist (added)
-
osx/daemonosx.c (moved) (moved from trunk/software/usb_ir/daemonosx.c)
-
reflasher/iguanaIR-reflasher (modified) (1 diff)
-
win32/service.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/software/usb_ir/Make.settings.in
r1100 r1247 40 40 LIBNAME=libiguanaIR.dylib 41 41 SHAREARG = -dynamiclib 42 OSSUPPORT = daemonosx.o42 OSSUPPORT = osx/daemonosx.o 43 43 endif 44 44 endif -
trunk/software/usb_ir/Makefile.in
r1245 r1247 2 2 3 3 CFLAGS += -I. -fvisibility=hidden -DIGUANAIR_EXPORTS 4 LINKARGS = -Wl,-soname=$(LIBNAME),--version-script=$(srcdir)/ig.ver 5 ifeq ($(shell uname -s),Darwin) 6 LINKARGS = -Wl,-dylib_current_version,1.0.0,-dylib_compatibility_version,1.0.0 4 5 ifdef DARWIN 6 LINKARGS = -Wl,-dylib_current_version,1.0.0,-dylib_compatibility_version,1.0.0 -install_name $(prefix)/$(LIBDIR)/$(LIBNAME) 7 EXPORTARGS = 8 else 9 LINKARGS = -Wl,-soname=$(LIBNAME),--version-script=$(srcdir)/ig.ver 10 EXPORTARGS = -Wl,-export-dynamic 7 11 endif 8 12 … … 21 25 list.o protocol-versions.o pipes.o dataPackets.o compat-unix.o \ 22 26 support.c $(OSSUPPORT) 23 $(CC) -Wl,-export-dynamic$(CPPFLAGS) $(CFLAGS) -DSUPPORT_EXPORTS \27 $(CC) $(EXPORTARGS) $(CPPFLAGS) $(CFLAGS) -DSUPPORT_EXPORTS \ 24 28 $(LDFLAGS) $^ -lpopt -lusb -lpthread -ldl $(LIBNAME) -o $@ 25 29 … … 108 112 install -d $(DESTDIR)$(prefix)/include 109 113 install $(srcdir)/iguanaIR.h $(DESTDIR)$(prefix)/include/iguanaIR.h 110 ifeq ($(DARWIN),) 114 ifdef DARWIN 115 install -D --mode 644 osx/com.iguana.igdaemon.plist \ 116 /Library/LaunchDaemons/com.iguana.igdaemon.plist 117 launchctl load -w /Library/LaunchDaemons/com.iguana.igdaemon.plist 118 else 111 119 install -D $(srcdir)/iguanaIR.init $(DESTDIR)/etc/init.d/iguanaIR 112 120 install -D --mode 644 $(srcdir)/iguanaIR.options $(DESTDIR)/etc/default/iguanaIR … … 119 127 .PHONY: uninstall 120 128 uninstall: 121 ifeq ($(DARWIN),) 129 ifdef DARWIN 130 launchctl unload -w /Library/LaunchDaemons/com.iguana.igdaemon.plist || true 131 rm -f /Library/LaunchDaemons/com.iguana.igdaemon.plist 132 else 122 133 /etc/init.d/iguanaIR stop || true 134 rm -f $(DESTDIR)/etc/init.d/iguanaIR 135 rm -f $(DESTDIR)/etc/default/iguanaIR 136 rm -f $(DESTDIR)/etc/udev/rules.d/iguanaIR.rules 137 rmdir $(DESTDIR)/lib/udev/devices/iguanaIR 2>/dev/null || true 138 rmdir $(DESTDIR)/dev/iguanaIR 2>/dev/null || true 123 139 endif 124 140 rm -f $(DESTDIR)$(prefix)/bin/igclient … … 127 143 rm -f $(DESTDIR)$(prefix)/$(LIBDIR)/libiguanaIR.$(SHAREEXT) 128 144 rm -f $(DESTDIR)$(prefix)/include/iguanaIR.h 129 ifeq ($(DARWIN),) 130 rm -f $(DESTDIR)/etc/init.d/iguanaIR 131 rm -f $(DESTDIR)/etc/default/iguanaIR 132 rm -f $(DESTDIR)/etc/udev/rules.d/iguanaIR.rules 133 rmdir $(DESTDIR)/lib/udev/devices/iguanaIR 2>/dev/null || true 134 rmdir $(DESTDIR)/dev/iguanaIR 2>/dev/null || true 135 endif 145 rm -fr $(DESTDIR)$(prefix)/$(LIBDIR)/iguanaIR 146 rm -fr $(DESTDIR)$(prefix)/$(LIBDIR)/iguanaIR-reflasher 136 147 137 148 .PHONY: clean drivers-clean -
trunk/software/usb_ir/compat.h
r1165 r1247 103 103 #if __APPLE__ 104 104 #define SwitchToThread() pthread_yield_np() 105 #define DYNLIB_EXT ".dy nlib"105 #define DYNLIB_EXT ".dylib" 106 106 #else 107 107 #define SwitchToThread() pthread_yield() -
trunk/software/usb_ir/daemon.c
r1162 r1247 130 130 { 131 131 /* generic actions */ 132 ARG_LOG_FILE ,132 ARG_LOG_FILE = 1, /* popt in MacPorts does not like starting w 0 */ 133 133 ARG_QUIETER, 134 134 ARG_LOUDER, -
trunk/software/usb_ir/drivers/Makefile.in
r1100 r1247 4 4 LISTS=../list.o 5 5 6 ifdef DARWIN 7 LDFLAGS += -undefined dynamic_lookup 8 endif 9 6 10 all: $(DRIVERS) 7 11 8 12 libusb.so: libusb.c $(LISTS) Makefile 9 # $(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREARG) $(LDFLAGS) -lusb-1.0 $< $(LISTS) -o $@ 10 $(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREARG) -lusb-1.0 $<$(LISTS) -o $@13 $(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREARG) $(LDFLAGS) -lusb-1.0 $< \ 14 $(LISTS) -o $@ 11 15 12 16 libusbpre1.so: libusbpre1.c $(LISTS) Makefile 13 $(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREARG) -lusb $< $(LISTS) -o $@ 17 $(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREARG) $(LDFLAGS) -lusb $< \ 18 $(LISTS) -o $@ 14 19 15 20 .PHONY: clean -
trunk/software/usb_ir/drivers/libusbpre1.c
r1164 r1247 192 192 } 193 193 194 /* the list must be allocated here where the struct is defined */ 194 195 static deviceList* prepareDeviceList(usbId *ids, deviceFunc ndf) 195 196 { -
trunk/software/usb_ir/reflasher/iguanaIR-reflasher
r1225 r1247 1063 1063 version != 3 and \ 1064 1064 version != 4: 1065 message(LOG_ERROR, 1066 "This script cannot test a version %s device.\n" % version) 1065 message(LOG_ERROR, "This script cannot test a version 0x%x device.\n" % version) 1067 1066 continue 1068 1067 -
trunk/software/usb_ir/win32/service.c
r1164 r1247 194 194 { "startsvc", 0, POPT_ARG_NONE, NULL, 's', "Start the system igdaemon service.", NULL }, 195 195 { "stopsvc", 0, POPT_ARG_NONE, NULL, 't', "Stop the system igdaemon service.", NULL }, 196 { "installinf", 0, POPT_ARG_NONE, NULL, 'i', " Stop the system igdaemon service.", NULL },196 { "installinf", 0, POPT_ARG_NONE, NULL, 'i', "Manually install the INF for the device.", NULL }, 197 197 198 198 /* options specific to the drivers */
Note: See TracChangeset
for help on using the changeset viewer.
