Ticket #33430 (closed submission: fixed)
levmar @2.6 new port
| Reported by: | lockhart@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.4 |
| Keywords: | Cc: | pixilla@… | |
| 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
Change History
Changed 16 months ago by lockhart@…
- Attachment levmar-shared.patch added
comment:1 in reply to: ↑ description Changed 16 months ago by 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:3 follow-up: ↓ 4 Changed 16 months ago by pixilla@…
Builds fine on Snow Leopard with Xcode 3.2.6. Not sure how to test functionality.
Changed 16 months ago by 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 16 months ago by 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 16 months ago by 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 16 months ago by pixilla@…
Nice work Tom. In post-destroot use the ln macro in place of "system ln".
Example:
$ port cat bzip2
Changed 16 months ago by lockhart@…
Complete Portfile now including a test section. Also installs lmdemo which is the test program.
Changed 16 months ago by pixilla@…
- Attachment Portfile-pixilla added
Use ln macro in place of "system ln". Place version string between name and .dylib suffix.
Changed 16 months ago by pixilla@…
- Attachment patch-Makefile.so.diff added
Place version string between name and .dylib suffix.


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