Ticket #4947: gpsbabel.Portfile.diff
File gpsbabel.Portfile.diff, 2.1 KB (added by rsorasen@…, 19 years ago) |
---|
-
Portfile
2 2 PortSystem 1.0 3 3 4 4 name gpsbabel 5 version 1.2. 45 version 1.2.7 6 6 categories textproc comms 7 7 maintainers thomas+darwinports@stromberg.org 8 8 description GPSBabel converts/uploads GPS waypoints, tracks, and routes … … 14 14 homepage http://gpsbabel.sourceforge.net 15 15 platforms darwin 16 16 master_sites sourceforge 17 checksums md5 90adf3f0aabbe2c63ed105446562952517 checksums md5 535da9798714e53a9584e22ac7d651d3 18 18 19 19 depends_lib lib:libexpat.0:expat 20 20 21 21 # Note: Not yet supported on MacOSX, but may work on others 22 22 variant usb { 23 23 depends_lib-append lib:libusb-0.1.4:libusb 24 build.args-delete LIBEXPAT="-L${prefix}/lib -lexpat" 25 build.args-append LIBEXPAT="-L${prefix}/lib -lexpat -lusb" \ 26 INHIBIT_USB="" 24 build.args-delete LIBUSB="" \ 25 INHIBIT_USB="-DNO_USB" 26 build.args-append LIBUSB="-lusb /System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation /System/Library/Frameworks/IOKit.framework/Versions/Current/IOKit" \ 27 INHIBIT_USB="" \ 28 27 29 } 28 30 29 31 variant tk { … … 36 38 37 39 use_configure no 38 40 build.args EXTRA_CFLAGS="-I${prefix}/include" \ 39 LIBEXPAT="-L${prefix}/lib -lexpat" 41 LIBEXPAT="-L${prefix}/lib -lexpat" \ 42 LIBUSB="" \ 43 INHIBIT_USB="-DNO_USB" 40 44 41 45 destroot { 42 46 cd ${worksrcpath} … … 52 56 } 53 57 54 58 platform darwin { 55 patchfiles-append patch-project.pbxproj56 59 post-patch { 57 60 # Patch with version from pre-compiled application for now. 58 61 # Authors have been notified of these changes for future … … 86 89 } 87 90 post-destroot { 88 91 if {[file exist ${worksrcpath}/macgpsbabel/conftest]} { 89 cd ${worksrcpath}/macgpsbabel/build 92 if {$xcodeversion == "2.1"} { 93 cd ${worksrcpath}/macgpsbabel/build/Deployment 94 } else { 95 cd ${worksrcpath}/macgpsbabel/build 96 } 90 97 xinstall -d -m 0755 ${destroot}/Applications/DarwinPorts 91 98 system "cp -R MacGPSBabel.app ${destroot}/Applications/DarwinPorts" 92 99 }