APT-RPM in MacPorts

Ralf Corsepius rc040203 at freenet.de
Wed Jul 11 03:23:02 PDT 2007


On Wed, 2007-07-11 at 09:52 +0200, Anders F Björklund wrote:
> Panu Matilainen wrote:
> 
> >> Will try the "make distcheck" then, but I do want both RPM and APT-RPM
> >> under the ${prefix} which is normally /opt/local in regular MacPorts.
> >
> > Yeah, I understand what you want to do there but $includedir isn't the
> > right thing.
> >
> > One thing you can of course do is just set
> > CXXFLAGS=-I/opt/local/include/rpm (or whatever the includepath there 
> > is)
> > when calling configure, that should work without patching configure.ac 
> > at
> > all.
> 
> I can do this (wouldn't it be CPPFLAGS though ?)
Yes, it should be CPPFLAGS, though passing -I-flags through CXXFLAGS
also should not do much harm.

> > Another alternative would be adding some configure flag like
> > --with-rpm-includes=<path> to configure.
> 
> This would probably be best in the long-run,
> or maybe even have it auto-detect <rpm/rpm.h> ?
No, please don't do this.

Letting users pass the appropriate CPPFLAGS/CXXFLAGS etc. to configure
is the way to go.

Ralf





More information about the Apt-Rpm mailing list