Opened 13 years ago

Closed 13 years ago

#33430 closed submission (fixed)

levmar @2.6 new port

Reported by: lockhart (Thomas Lockhart) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: pixilla (Bradley Giesbrecht)
Port: levmar

Description

Here is a port for the levmar C and C++ non-linear least squares fitting library. The port is based on code and patches in the levmar RPM by Eric Smith <eric@…>.

Attachments (6)

levmar-shared.patch (2.4 KB) - added by lockhart (Thomas Lockhart) 13 years ago.
Patch for the goofy levmar Makefile.so to compile on Mac OS X. Works on Lion but does not seem to be version-specific.
patch-Makefile.so.2.diff (2.4 KB) - added by lockhart (Thomas Lockhart) 13 years ago.
Complete patch file with addition of "@rpath" to the install_name of the library. This library now links successfully with a test application.
patch-Makefile.so.3.diff (2.4 KB) - added by lockhart (Thomas Lockhart) 13 years ago.
Patches ready for production including using .dylib rather than .so for shared library extension.
Portfile (4.1 KB) - added by lockhart (Thomas Lockhart) 13 years ago.
Complete Portfile now including a test section. Also installs lmdemo which is the test program.
Portfile-pixilla (4.1 KB) - added by pixilla (Bradley Giesbrecht) 13 years ago.
Use ln macro in place of "system ln". Place version string between name and .dylib suffix.
patch-Makefile.so.diff (2.4 KB) - added by pixilla (Bradley Giesbrecht) 13 years ago.
Place version string between name and .dylib suffix.

Download all attachments as: .zip

Change History (12)

Changed 13 years ago by lockhart (Thomas Lockhart)

Attachment: levmar-shared.patch added

Patch for the goofy levmar Makefile.so to compile on Mac OS X. Works on Lion but does not seem to be version-specific.

comment:1 in reply to:  description Changed 13 years ago by lockhart (Thomas Lockhart)

Replying to lockhart@…:

Here is a port for the levmar C and C++ non-linear least squares fitting library. The port is based on code and patches in the levmar RPM by Eric Smith <eric@…>.

I have placed this in devel/levmar/ in my local repository.

comment:2 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Thanks Tom.

comment:3 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Builds fine on Snow Leopard with Xcode 3.2.6. Not sure how to test functionality.

Changed 13 years ago by lockhart (Thomas Lockhart)

Attachment: patch-Makefile.so.2.diff added

Complete patch file with addition of "@rpath" to the install_name of the library. This library now links successfully with a test application.

Changed 13 years ago by lockhart (Thomas Lockhart)

Attachment: patch-Makefile.so.3.diff added

Patches ready for production including using .dylib rather than .so for shared library extension.

comment:4 in reply to:  3 Changed 13 years ago by lockhart (Thomas Lockhart)

Replying to pixilla@…:

Builds fine on Snow Leopard with Xcode 3.2.6. Not sure how to test functionality.

OK, I've just reposted Portfile and patches to use .dylib rather than .so for the library extension. This port seems ready for production use; my applications compile and link successfully against an installation. A previous comment mentioned testing; this package does have the "lmdemo" program and I could add this to the installation if desired. I suppose we could also implement the test feature of the port. Let me know what else you might need. Thanks!

comment:5 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Nice work Tom. In post-destroot use the ln macro in place of "system ln".

Example:

$ port cat bzip2

Changed 13 years ago by lockhart (Thomas Lockhart)

Attachment: Portfile added

Complete Portfile now including a test section. Also installs lmdemo which is the test program.

Changed 13 years ago by pixilla (Bradley Giesbrecht)

Attachment: Portfile-pixilla added

Use ln macro in place of "system ln". Place version string between name and .dylib suffix.

Changed 13 years ago by pixilla (Bradley Giesbrecht)

Attachment: patch-Makefile.so.diff added

Place version string between name and .dylib suffix.

comment:6 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: newclosed

See r90400

Note: See TracTickets for help on using tickets.