[78270] trunk/dports/net/hdhomerun
ecronin at macports.org
ecronin at macports.org
Sat Apr 30 19:08:17 PDT 2011
Revision: 78270
http://trac.macports.org/changeset/78270
Author: ecronin at macports.org
Date: 2011-04-30 19:08:15 -0700 (Sat, 30 Apr 2011)
Log Message:
-----------
net/hdhomerun: build&install libhdhomerun for hdhomerun_gui
Modified Paths:
--------------
trunk/dports/net/hdhomerun/Portfile
Added Paths:
-----------
trunk/dports/net/hdhomerun/files/Makefile-libpath.diff
Modified: trunk/dports/net/hdhomerun/Portfile
===================================================================
--- trunk/dports/net/hdhomerun/Portfile 2011-05-01 01:18:57 UTC (rev 78269)
+++ trunk/dports/net/hdhomerun/Portfile 2011-05-01 02:08:15 UTC (rev 78270)
@@ -5,6 +5,7 @@
name hdhomerun
version 20110323
+revision 1
set firm_version ${version}
categories net multimedia
platforms darwin
@@ -16,7 +17,7 @@
master_sites http://download.silicondust.com/hdhomerun
distname lib${name}_${version}
-patchfiles Makefile-universal.diff
+patchfiles Makefile-universal.diff Makefile-libpath.diff
patch.args -p1
extract.suffix .tgz
distfiles-append ${name}_atsc_firmware_${firm_version}.bin \
@@ -38,7 +39,10 @@
use_configure no
-build.target hdhomerun_config
+post-patch {
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
+}
+
build.args-append CC=${configure.cc} \
CXX=${configure.cxx} \
CPP=${configure.cpp}
@@ -51,6 +55,15 @@
destroot {
xinstall -m 0755 ${worksrcpath}/hdhomerun_config \
${destroot}${prefix}/bin/hdhomerun_config
+ xinstall -m 0755 ${worksrcpath}/libhdhomerun.dylib \
+ ${destroot}${prefix}/lib/libhdhomerun.dylib
+ xinstall -m 0644 -W ${worksrcpath} \
+ hdhomerun.h hdhomerun_os.h hdhomerun_os_posix.h \
+ hdhomerun_types.h hdhomerun_pkt.h hdhomerun_sock.h \
+ hdhomerun_debug.h hdhomerun_discover.h hdhomerun_control.h \
+ hdhomerun_video.h hdhomerun_channels.h hdhomerun_channelscan.h \
+ hdhomerun_device.h hdhomerun_device_selector.h \
+ ${destroot}${prefix}/include/
xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/
xinstall -m 0644 ${distpath}/${name}_atsc_firmware_${firm_version}.bin \
${destroot}${prefix}/share/${name}/${name}_atsc_firmware_${firm_version}.bin
Added: trunk/dports/net/hdhomerun/files/Makefile-libpath.diff
===================================================================
--- trunk/dports/net/hdhomerun/files/Makefile-libpath.diff (rev 0)
+++ trunk/dports/net/hdhomerun/files/Makefile-libpath.diff 2011-05-01 02:08:15 UTC (rev 78270)
@@ -0,0 +1,12 @@
+diff -u libhdhomerun.orig/Makefile libhdhomerun/Makefile
+--- libhdhomerun.orig/Makefile 2011-04-30 19:32:36.000000000 -0400
++++ libhdhomerun/Makefile 2011-04-30 19:33:11.000000000 -0400
+@@ -34,7 +34,7 @@
+ ifeq ($(OS),Darwin)
+ CFLAGS += -arch i386 -arch ppc
+ LIBEXT := .dylib
+- SHARED := -dynamiclib -install_name libhdhomerun$(LIBEXT)
++ SHARED := -dynamiclib -install_name @PREFIX@/lib/libhdhomerun$(LIBEXT)
+ endif
+ endif
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110430/dc6a13ef/attachment.html>
More information about the macports-changes
mailing list