Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#45142 closed submission (fixed)

pure-stldict @0.8: new port

Reported by: agraef (Albert Graef) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: pure-stldict

Description

This Pure module is currently missing in MacPorts. It is needed as a dependency for pd-faust.

Attachments (1)

Portfile (967 bytes) - added by agraef (Albert Graef) 10 years ago.
pure-stldict Portfile

Download all attachments as: .zip

Change History (8)

Changed 10 years ago by agraef (Albert Graef)

Attachment: Portfile added

pure-stldict Portfile

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

Thanks, I've been meaning to get this port added.

I disagree with these lines you've added:

# MacPorts wants to override these, but we really need them as they are.
build.post_args         CXXFLAGS="-g -O2 -std=c++0x -Wall"

The reason why the pure portgroup sets CXXFLAGS is to build with the right -arch flags. Overriding this would normally mean -arch flags would no longer be used. However in this case I see they are still used, because the build also uses the LDFLAGS variable which still contains them.

But let's step back and look at the real reason why you added this line. Looks like the pure-stldict Makefile sets CXXFLAGS, and the portgroup is overriding it. Generally, there needs to be a way to build a piece of software with additional CXXFLAGS (and other flags). Up until now, my understanding was that they correct way to do this with pure modules was to just supply CXXFLAGS=... as an argument to the make command. If that actually overrides the Makefile's CXXFLAGS, what do you suggest instead?

Also, I see that the Makefile has a hardcoded reference to g++ which needs to be changed to $(CXX).

comment:2 Changed 10 years ago by agraef (Albert Graef)

Yes, the Makefile sets CXXFLAGS, that's not really good practice but it's just the way it is right now. I can fix that (along with the g++ -> $(CXX)) in a future release, but what to do with the current version? The quickest way to make the port work was to just set the build.post_args (rather than patching the Makefile), do you have another suggestion?

comment:3 Changed 10 years ago by agraef (Albert Graef)

BTW, pure-stllib (ticket #45143) most likely has the same issues.

comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

For now we could have the portfile append to configure.cxxflags, since the portgroup includes that variable.

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Resolution: fixed
Status: assignedclosed

comment:6 in reply to:  3 Changed 10 years ago by agraef (Albert Graef)

Replying to aggraef@…:

BTW, pure-stllib (ticket #45143) most likely has the same issues.

No, actually it doesn't. I'll correct that portfile.

comment:7 in reply to:  4 Changed 10 years ago by agraef (Albert Graef)

Replying to ryandesign@…:

For now we could have the portfile append to configure.cxxflags, since the portgroup includes that variable.

Ok, thanks. I've fixed the Makefile in the Pure repo already, so this will become unnecessary in the next release.

Note: See TracTickets for help on using tickets.