[64037] trunk/dports/sysutils

ecronin at macports.org ecronin at macports.org
Sat Feb 20 07:40:31 PST 2010


Revision: 64037
          http://trac.macports.org/changeset/64037
Author:   ecronin at macports.org
Date:     2010-02-20 07:40:30 -0800 (Sat, 20 Feb 2010)
Log Message:
-----------
New port: iguanaIR

Added Paths:
-----------
    trunk/dports/sysutils/iguanaIR/
    trunk/dports/sysutils/iguanaIR/Portfile
    trunk/dports/sysutils/iguanaIR/files/
    trunk/dports/sysutils/iguanaIR/files/patch-Make.settings.in.diff
    trunk/dports/sysutils/iguanaIR/files/patch-Makefile.in.diff
    trunk/dports/sysutils/iguanaIR/files/patch-README.txt.diff
    trunk/dports/sysutils/iguanaIR/files/patch-compat.h.diff
    trunk/dports/sysutils/iguanaIR/files/patch-configure.diff
    trunk/dports/sysutils/iguanaIR/files/patch-daemon.c.diff
    trunk/dports/sysutils/iguanaIR/files/patch-drivers-Makefile.in.diff

Added: trunk/dports/sysutils/iguanaIR/Portfile
===================================================================
--- trunk/dports/sysutils/iguanaIR/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/iguanaIR/Portfile	2010-02-20 15:40:30 UTC (rev 64037)
@@ -0,0 +1,76 @@
+# $Id$
+
+PortSystem 1.0
+
+name            iguanaIR
+version         1.0pre2
+revision        0
+categories      sysutils
+maintainers     verizon.net:tomldavis
+platforms       darwin
+license         LGPLv2.1
+description     Driver for IguanaWorks USB IR Transceiver
+
+long_description \
+                The IguanaWorks USB IR Transceiver, available for purchase at the IguanaWorks \
+                website, is a simple USB device that can communicate with most home electronics \
+                and remote controls via infrared (IR). The transceiver can both send and receive \
+                IR codes and is fully compatible with LIRC. 
+                
+notes           \
+    ************************************************************************** \n\
+    * This note can be displayed at any time by executing the following command: \n\
+    *   >> port notes ${name} \n\
+    * \n\
+    * WARNING: Stop the iguanaIR daemon before uninstalling iguanaIR. \n\
+    * \n\
+    * Start the iguanaIR daemon (igdaemon) by executing the following command: \n\
+    *   >> sudo launchctl load -w /Library/LaunchDaemons/org.macports.iguanaIR.plist \n\
+    * \n\
+    * Stop the iguanaIR daemon (igdaemon) by executing the following command: \n\
+    *   >> sudo launchctl unload -w /Library/LaunchDaemons/org.macports.iguanaIR.plist \n\
+    * \n\
+    **************************************************************************
+   
+homepage        http://iguanaworks.net/projects/IguanaIR
+
+master_sites    http://iguanaworks.net/downloads
+
+use_bzip2       yes
+
+checksums       md5 719c41ab69350bc64e0fbfaadf604f13 \
+                sha1 5656e77fc82ca3a3e6b57223a8f7f8ef3d0e8f58 \
+                rmd160 5309808cd3b6620059c46a0ff62d3e5051f8b055
+                
+patchfiles      patch-compat.h.diff \
+                patch-daemon.c.diff \
+                patch-drivers-Makefile.in.diff \
+                patch-Make.settings.in.diff \
+                patch-Makefile.in.diff \
+                patch-README.txt.diff \
+                patch-configure.diff
+                
+configure.args  --disable-python    
+           
+depends_lib     port:popt \
+                port:libusb \
+                port:libusb-compat
+
+post-destroot {
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 ${worksrcpath}/docs/TroubleShooting \
+        ${destroot}${prefix}/share/doc/${name}/TroubleShooting
+    xinstall -m 644 ${worksrcpath}/docs/faq \
+        ${destroot}${prefix}/share/doc/${name}/faq
+    xinstall -m 644 ${worksrcpath}/README.txt \
+        ${destroot}${prefix}/share/doc/${name}/README.txt
+    xinstall -m 644 ${worksrcpath}/docs/hardware \
+        ${destroot}${prefix}/share/doc/${name}/hardware
+    xinstall -m 644 ${worksrcpath}/docs/lirc \
+        ${destroot}${prefix}/share/doc/${name}/lirc
+}
+
+
+startupitem.create  yes
+startupitem.executable ${prefix}/bin/igdaemon --no-daemon --driver-dir=${prefix}/lib/iguanaIR
+


Property changes on: trunk/dports/sysutils/iguanaIR/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/sysutils/iguanaIR/files/patch-Make.settings.in.diff
===================================================================
--- trunk/dports/sysutils/iguanaIR/files/patch-Make.settings.in.diff	                        (rev 0)
+++ trunk/dports/sysutils/iguanaIR/files/patch-Make.settings.in.diff	2010-02-20 15:40:30 UTC (rev 64037)
@@ -0,0 +1,11 @@
+--- Make.settings.in.org	2009-11-04 20:34:56.000000000 -0600
++++ Make.settings.in	2010-01-11 14:19:18.000000000 -0600
+@@ -32,7 +32,7 @@
+     PATH = $(shell getconf PATH):/usr/local/bin:/opt/local/bin:/sw/bin
+     export PATH
+     LIBDIR  = lib
+-    CFLAGS += -fPIC
++    CFLAGS += -fPIC -std=gnu99
+     CPPFLAGS += -I/usr/local/include -I/usr/include -I/opt/local/include -I/sw/include
+     LDFLAGS += -L/usr/local/lib -L/usr/lib -L/opt/local/lib -L/sw/lib -framework CoreFoundation -framework IOKit
+     # Python needs .so but library should be .dylib

Added: trunk/dports/sysutils/iguanaIR/files/patch-Makefile.in.diff
===================================================================
--- trunk/dports/sysutils/iguanaIR/files/patch-Makefile.in.diff	                        (rev 0)
+++ trunk/dports/sysutils/iguanaIR/files/patch-Makefile.in.diff	2010-02-20 15:40:30 UTC (rev 64037)
@@ -0,0 +1,21 @@
+--- Makefile.in.org	2009-11-09 07:42:09.000000000 -0600
++++ Makefile.in	2010-01-26 11:34:20.000000000 -0600
+@@ -3,7 +3,8 @@
+ CFLAGS += -I. -fvisibility=hidden -DIGUANAIR_EXPORTS
+ LINKARGS = -Wl,-soname=$(LIBNAME),--version-script=$(srcdir)/ig.ver
+ ifeq ($(shell uname -s),Darwin)
+-  LINKARGS = -Wl,-dylib_current_version,1.0.0,-dylib_compatibility_version,1.0.0
++  LINKARGS = -Wl,-dylib_current_version,1.0.0,-dylib_compatibility_version,1.0.0 \
++		-install_name $(prefix)/$(LIBDIR)/$(LIBNAME)
+ endif
+ 
+ .PHONY: all drivers
+@@ -19,7 +20,7 @@
+ igdaemon: daemon.o client-interface.o device-interface.o driver.o \
+           list.o protocol-versions.o pipes.o dataPackets.o compat.o \
+           support.c $(OSSUPPORT)
+-	$(CC) -Wl,-export-dynamic $(CPPFLAGS) $(CFLAGS) -DSUPPORT_EXPORTS \
++	$(CC)  $(CPPFLAGS) $(CFLAGS) -DSUPPORT_EXPORTS \
+               $(LDFLAGS) $^ -lpopt -lusb -lpthread -ldl $(LIBNAME) -o $@
+ 
+ igclient: client.o list.o support.o compat.o

Added: trunk/dports/sysutils/iguanaIR/files/patch-README.txt.diff
===================================================================
--- trunk/dports/sysutils/iguanaIR/files/patch-README.txt.diff	                        (rev 0)
+++ trunk/dports/sysutils/iguanaIR/files/patch-README.txt.diff	2010-02-20 15:40:30 UTC (rev 64037)
@@ -0,0 +1,14 @@
+--- README.txt.org	2009-09-26 10:00:11.000000000 -0500
++++ README.txt	2010-02-15 10:30:26.000000000 -0600
+@@ -24,6 +24,11 @@
+     These files contain the main() for the client and driver daemon
+     and are compiled into igclient and igdaemon, respectively.
+ 
++com.iguana.igdaemon.plist
++    A launched configuration file used to start igdaemon on MacOS X.
++    Use the following command to quit igdaemon: 
++    sudo launchctl unload -w /Library/LaunchDaemons/com.iguana.igdaemon.plist
++
+ dataPackets.{h,c}:
+     Defines the data packets used internally in the driver to hold
+     command requests and responses from the USB device.

Added: trunk/dports/sysutils/iguanaIR/files/patch-compat.h.diff
===================================================================
--- trunk/dports/sysutils/iguanaIR/files/patch-compat.h.diff	                        (rev 0)
+++ trunk/dports/sysutils/iguanaIR/files/patch-compat.h.diff	2010-02-20 15:40:30 UTC (rev 64037)
@@ -0,0 +1,11 @@
+--- compat.h.org	2009-10-17 14:09:18.000000000 -0500
++++ compat.h	2010-01-09 18:35:55.000000000 -0600
+@@ -82,7 +82,7 @@
+ 
+     #if __APPLE__
+         #define SwitchToThread() pthread_yield_np()
+-        #define DYNLIB_EXT ".dynlib"
++        #define DYNLIB_EXT ".so"
+     #else
+         #define SwitchToThread() pthread_yield()
+         #define DYNLIB_EXT ".so"

Added: trunk/dports/sysutils/iguanaIR/files/patch-configure.diff
===================================================================
--- trunk/dports/sysutils/iguanaIR/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/sysutils/iguanaIR/files/patch-configure.diff	2010-02-20 15:40:30 UTC (rev 64037)
@@ -0,0 +1,22 @@
+--- configure.org	2009-11-04 19:57:42.000000000 -0600
++++ configure	2010-02-18 11:33:51.000000000 -0600
+@@ -6736,7 +6736,7 @@
+ 
+ 
+ # Some default environment variable values
+-CFLAGS="-Wall -pedantic"
++CFLAGS="$CFLAGS -Wall -pedantic"
+ 
+ # use -Wextra when possible
+ { $as_echo "$as_me:$LINENO: checking CFLAGS for gcc -Wextra" >&5
+@@ -8226,7 +8226,8 @@
+ if test -n "$CONFIG_FILES"; then
+ 
+ 
+-ac_cr='
+'
++ac_cr='
++'
+ ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+ if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+   ac_cs_awk_cr='\\r'

Added: trunk/dports/sysutils/iguanaIR/files/patch-daemon.c.diff
===================================================================
--- trunk/dports/sysutils/iguanaIR/files/patch-daemon.c.diff	                        (rev 0)
+++ trunk/dports/sysutils/iguanaIR/files/patch-daemon.c.diff	2010-02-20 15:40:30 UTC (rev 64037)
@@ -0,0 +1,13 @@
+--- daemon.c.org	2009-10-17 14:10:52.000000000 -0500
++++ daemon.c	2010-01-10 11:06:05.000000000 -0600
+@@ -163,8 +163,8 @@
+ enum
+ {
+     /* generic actions */
+-    ARG_LOG_FILE,
+-    ARG_QUIETER,
++	ARG_LOG_FILE=1,			// popt on the Mac doesn't like these to start with zero (TLD)
++	ARG_QUIETER,
+     ARG_LOUDER,
+     ARG_LOG_LEVEL,
+ 

Added: trunk/dports/sysutils/iguanaIR/files/patch-drivers-Makefile.in.diff
===================================================================
--- trunk/dports/sysutils/iguanaIR/files/patch-drivers-Makefile.in.diff	                        (rev 0)
+++ trunk/dports/sysutils/iguanaIR/files/patch-drivers-Makefile.in.diff	2010-02-20 15:40:30 UTC (rev 64037)
@@ -0,0 +1,16 @@
+--- drivers/Makefile.in.org	2009-11-04 20:53:12.000000000 -0600
++++ drivers/Makefile.in	2010-02-15 10:13:32.000000000 -0600
+@@ -6,11 +6,10 @@
+ all: $(DRIVERS)
+ 
+ libusb.so: libusb.c $(LISTS) Makefile
+-#	$(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREARG) $(LDFLAGS) -lusb-1.0 $< $(LISTS) -o $@
+-	$(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREARG) -lusb-1.0 $< $(LISTS) -o $@
++	$(CC) -undefined dynamic_lookup $(CPPFLAGS) $(CFLAGS) $(SHAREARG) $(LDFLAGS) -lusb-1.0 $< $(LISTS) -o $@
+ 
+ libusbpre1.so: libusbpre1.c $(LISTS) Makefile
+-	$(CC) $(CPPFLAGS) $(CFLAGS) $(SHAREARG) -lusb $< $(LISTS) -o $@
++	$(CC) -undefined dynamic_lookup $(CPPFLAGS) $(CFLAGS) $(SHAREARG) $(LDFLAGS) -lusb $< $(LISTS) -o $@
+ 
+ .PHONY: clean
+ clean:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100220/10628499/attachment.html>


More information about the macports-changes mailing list