Opened 15 years ago

Closed 15 years ago

#19849 closed defect (fixed)

libgeotiff doesn't build correctly with universal variant

Reported by: rhys.hill@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: universal Cc: ryandesign (Ryan Carsten Schmidt)
Port: libgeotiff

Description

the libgeotiff port uses a custom post-build step to create a dynamic library, but if the universal variant is being built, you only get your native architecture at the end, even though the source static library is universal. If this:

-arch ppc -arch i386 -arch x86_64 -arch ppc64

is added to the post-build step, it works correctly.

Attachments (1)

Portfile.diff (1.5 KB) - added by tenomoto (Takeshi Enomoto) 15 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 15 years ago by rhys.hill@…

Cc: rhys.hill@… added

Cc Me!

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Cc: rhys.hill@… removed
Owner: changed from macports-tickets@… to shadow@…

comment:3 Changed 15 years ago by tenomoto (Takeshi Enomoto)

I created a patch. It also fix a problem that makegeo is linked against libgeotiff.dylib in ${prefix}/lib if libgeotiff is already installed.

comment:4 Changed 15 years ago by tenomoto (Takeshi Enomoto)

I would like to have static library installed for grads2. I update the patch.

Changed 15 years ago by tenomoto (Takeshi Enomoto)

Attachment: Portfile.diff added

comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from shadow@… to macports-tickets@…

Derrick no longer maintains this port; see #20502

comment:6 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed

I updated libgeotiff to 1.2.4 in r55379. libgeotiff now includes code to build the dylib, so I removed the code in the Portfile that did that manually, which thereby fixes this ticket as well.

The code libgeotiff includes for building dylibs is still a bit broken in that it doesn't use the right install_name and doesn't use the correct filenames according to Mac OS X conventions, so I added new code in post-destroot to fix that, since I didn't feel like dissecting their Makefiles at this time.

Note: See TracTickets for help on using tickets.