[45951] trunk/dports/devel/libdvdread

blb at macports.org blb at macports.org
Sun Jan 25 19:49:06 PST 2009


Revision: 45951
          http://trac.macports.org/changeset/45951
Author:   blb at macports.org
Date:     2009-01-25 19:49:05 -0800 (Sun, 25 Jan 2009)
Log Message:
-----------
devel/libdvdread - patch to get dvdread to properly find dvdcss and remove
defining HAVE_DVDCSS_DVDCSS_H so it dlopens

Modified Paths:
--------------
    trunk/dports/devel/libdvdread/Portfile

Added Paths:
-----------
    trunk/dports/devel/libdvdread/files/
    trunk/dports/devel/libdvdread/files/patch-src_dvd_input.c.diff

Modified: trunk/dports/devel/libdvdread/Portfile
===================================================================
--- trunk/dports/devel/libdvdread/Portfile	2009-01-26 02:16:17 UTC (rev 45950)
+++ trunk/dports/devel/libdvdread/Portfile	2009-01-26 03:49:05 UTC (rev 45951)
@@ -4,7 +4,7 @@
 
 name            libdvdread
 version         4.1.3
-revision        1
+revision        2
 categories      devel multimedia
 platforms       darwin
 maintainers     nomaintainer
@@ -38,6 +38,11 @@
 
 depends_build   port:autoconf port:automake port:libtool
 
+patchfiles      patch-src_dvd_input.c.diff
+post-patch {
+    reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/src/dvd_input.c
+}
+
 pre-configure {
     system "cd ${worksrcpath} && ./autogen.sh"
 }
@@ -46,7 +51,6 @@
 
 variant libdvdcss description {use libdvdcss to read CSS-encrypted DVDs} {
     depends_lib-append     port:libdvdcss
-    configure.cppflags-append   -DHAVE_DVDCSS_DVDCSS_H
 }
 
 livecheck.check regex

Added: trunk/dports/devel/libdvdread/files/patch-src_dvd_input.c.diff
===================================================================
--- trunk/dports/devel/libdvdread/files/patch-src_dvd_input.c.diff	                        (rev 0)
+++ trunk/dports/devel/libdvdread/files/patch-src_dvd_input.c.diff	2009-01-26 03:49:05 UTC (rev 45951)
@@ -0,0 +1,11 @@
+--- src/dvd_input.c.orig	2008-09-06 15:55:51.000000000 -0600
++++ src/dvd_input.c	2009-01-25 20:37:44.000000000 -0700
+@@ -283,7 +283,7 @@
+   /* dlopening libdvdcss */
+ 
+ #ifdef __APPLE__
+-  #define CSS_LIB "libdvdcss.2.dylib"
++  #define CSS_LIB "@@PREFIX@@/lib/libdvdcss.2.dylib"
+ #elif defined(WIN32)
+   #define CSS_LIB "libdvdcss.dll"
+ #else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090125/9e4bd238/attachment.html>


More information about the macports-changes mailing list