Creating a new port
Gaspard Bucher
gaspard at teti.ch
Thu Oct 9 00:03:54 PDT 2008
Sorry for the reply-all (I'll make an effort to remember to use it).
I abandoned the idea of macporting to /Applications/zena.app/... For
those who do not want to compile, I'll try to adapt http://
www.mamp.info to include ruby stuff (they hard code the location into
the configure scritps of PHP, mysql et al). Hard coding to /
Application/MAMP/Library/... can be seen as a bad idea, but if it
eases deployment to none tech-savvy users that will not try to
relocate, then why not.
Anyway, I'll start putting energy in a zena portfile to start with.
Gaspard
>
> On Oct 9, 2008, at 01:15, Gaspard Bucher wrote:
>
>> I think you misunderstood my experiment. I am install ALL ports
>> into /Applications/zena.app/opt instead of /opt. This should
>> produce a drag&drop binary
>> with all dependencies. (It's just an experiment to use macports as
>> a way to produce a binary package).
>
> Sorry, yes, I did misunderstand.
>
> I don't think your plan is a good idea.
>
> MacPorts is designed for users to install software on their
> machines. It is not designed to be used by application developers to
> distribute their own software.
>
> Software installed with MacPorts is largely not relocatable. That
> means if you install in the prefix /Applications/zena.app/opt, that
> prefix is hardcoded into everything you build. Mac users expect to
> be able to rename their applications or put them in a place other
> than /Applications ($HOME/Applications is a common alternative
> choice), but they would not be able to do so if your app needs to
> use a MacPorts installation that's inside the app's bundle.
>
>
>> For the "zena" port itself, I will not need to install any
>> application (just a script in /$prefix/local/bin).
>
> The default MacPorts prefix is "/opt/local" (not "opt") thus your
> script would be in ${prefix}/bin.
>
>
> P.S: Please remember to Reply All so your reply goes to the list
> too, not just to me.
>
More information about the macports-dev
mailing list