[55081] trunk/dports/devel/libusb-legacy/Portfile

toby at macports.org toby at macports.org
Thu Aug 6 10:33:32 PDT 2009


Revision: 55081
          http://trac.macports.org/changeset/55081
Author:   toby at macports.org
Date:     2009-08-06 10:33:31 -0700 (Thu, 06 Aug 2009)
Log Message:
-----------
fix conflicts with libusb-compat, final fix for #20423 (please create libusb-legacy)

Modified Paths:
--------------
    trunk/dports/devel/libusb-legacy/Portfile

Modified: trunk/dports/devel/libusb-legacy/Portfile
===================================================================
--- trunk/dports/devel/libusb-legacy/Portfile	2009-08-06 17:30:57 UTC (rev 55080)
+++ trunk/dports/devel/libusb-legacy/Portfile	2009-08-06 17:33:31 UTC (rev 55081)
@@ -5,6 +5,7 @@
 
 name                libusb-legacy
 version             0.1.12
+revision            1
 categories          devel
 maintainers         snc openmaintainer
 description         Library providing access to USB devices
@@ -20,15 +21,22 @@
                     sha1    599a5168590f66bc6f1f9a299579fd8500614807 \
                     rmd160  63848df717e00fff67ab30ba86a85466370d4e8e
 
-patchfiles          patch-Makefile.in.diff patch-darwin.c.diff
+patchfiles          patch-Makefile.in.diff patch-darwin.c.diff patch-configure
 
-configure.args      --disable-build-docs
+configure.args      --disable-build-docs \
+                    --libdir=${prefix}/lib/libusb-legacy \
+                    --includedir=${prefix}/include/libusb-legacy
 post-configure {
     if {[variant_isset universal]} {
         reinplace "s|CC -dynamiclib|CC -dynamiclib ${configure.universal_ldflags}|g" ${worksrcpath}/libtool
     }
 }
 
+post-destroot {
+    file rename ${destroot}${prefix}/bin/libusb-config ${destroot}${prefix}/bin/libusb-legacy-config
+    file rename ${destroot}${prefix}/lib/pkgconfig/libusb.pc ${destroot}${prefix}/lib/pkgconfig/libusb-legacy.pc
+}
+
 livecheck.check     regex
 livecheck.url       http://sourceforge.net/projects/libusb/files/libusb-0.1%20(LEGACY)/
 livecheck.regex     "libusb-(\\d+\\.\\d+\\.\\d+.?)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090806/ad23e739/attachment.html>


More information about the macports-changes mailing list