Opened 19 years ago

Closed 19 years ago

Last modified 9 years ago

#4947 closed update (fixed)

UPDATE gpsbabel-1.2.7

Reported by: rsorasen@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port: gpsbabel

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The patch make gpsbable work with my Garmin GPSMAP 60C (Software Version 4.0) over USB cable!

Index: Portfile
===================================================================
--- Portfile	(revision 3746)
+++ Portfile	(working copy)
@@ -2,7 +2,7 @@
 PortSystem		1.0
 
 name	    	gpsbabel
-version	    	1.2.4
+version	    	1.2.7
 categories  	textproc comms
 maintainers 	thomas+darwinports@stromberg.org
 description    	GPSBabel converts/uploads GPS waypoints, tracks, and routes
@@ -14,16 +14,18 @@
 homepage		http://gpsbabel.sourceforge.net
 platforms		darwin
 master_sites	sourceforge
-checksums		md5 90adf3f0aabbe2c63ed1054465629525
+checksums		md5 535da9798714e53a9584e22ac7d651d3
 
 depends_lib		lib:libexpat.0:expat
 
 # Note: Not yet supported on MacOSX, but may work on others
 variant usb {
 	depends_lib-append	lib:libusb-0.1.4:libusb
-	build.args-delete	LIBEXPAT="-L${prefix}/lib -lexpat"
-	build.args-append	LIBEXPAT="-L${prefix}/lib -lexpat -lusb" \
-						INHIBIT_USB=""
+	build.args-delete	LIBUSB="" \
+	                    INHIBIT_USB="-DNO_USB"
+	build.args-append	LIBUSB="-lusb /System/Library/Frameworks/CoreFoundation.framework/Versions/Current/CoreFoundation /System/Library/Frameworks/IOKit.framework/Versions/Current/IOKit" \
+	                    INHIBIT_USB="" \
+						
 }
 
 variant tk {
@@ -36,7 +38,9 @@
 
 use_configure	no
 build.args		EXTRA_CFLAGS="-I${prefix}/include" \
-				LIBEXPAT="-L${prefix}/lib -lexpat"
+				LIBEXPAT="-L${prefix}/lib -lexpat" \
+				LIBUSB="" \
+				INHIBIT_USB="-DNO_USB"
 
 destroot {
 	cd ${worksrcpath}
@@ -52,7 +56,6 @@
 }
 
 platform darwin {
-	patchfiles-append	patch-project.pbxproj
 	post-patch {
 		# Patch with version from pre-compiled application for now.
 		# Authors have been notified of these changes for future
@@ -86,7 +89,11 @@
 	}
 	post-destroot {
 		if {[file exist ${worksrcpath}/macgpsbabel/conftest]} {
-			cd ${worksrcpath}/macgpsbabel/build
+			if {$xcodeversion == "2.1"} {
+			    cd ${worksrcpath}/macgpsbabel/build/Deployment
+			} else {
+			    cd ${worksrcpath}/macgpsbabel/build
+			}
 			xinstall -d -m 0755 ${destroot}/Applications/DarwinPorts
 			system "cp -R MacGPSBabel.app ${destroot}/Applications/DarwinPorts"
 		}

Attachments (1)

gpsbabel.Portfile.diff (2.1 KB) - added by rsorasen@… 19 years ago.
Diff for Portfile

Download all attachments as: .zip

Change History (3)

Changed 19 years ago by rsorasen@…

Attachment: gpsbabel.Portfile.diff added

Diff for Portfile

comment:1 Changed 19 years ago by toby@…

Resolution: fixed
Status: newclosed

Committed

comment:2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: gpsbabel added
Type: enhancementupdate
Note: See TracTickets for help on using tickets.