Hi! I've started to make a port for Crossfire (http://crossfire.real- time.com/). Currently I've got the game client working on my machine, but I don't know how to add dependencies. Which fine manual should I read? Attached are the two portfiles (one for the client and one for the image files). As this is my first serious try at making a port any comments are greatly appreciated. Should the game binary be installed in /opt/local/games instead of / opt/local/bin? I used the Nethack port as my reference and installed to /opt/local/bin. -Jarimatti -- Jarimatti Valkonen jarimatti@dnainternet.net
On Mar 25, 2007, at 03:54, Jarimatti Valkonen wrote:
I've started to make a port for Crossfire (http://crossfire.real- time.com/). Currently I've got the game client working on my machine, but I don't know how to add dependencies. Which fine manual should I read?
I'm not sure... I recommend looking at other existing ports. The php5 port is a fairly big port with lots of dependencies to give you some ideas.
Attached are the two portfiles (one for the client and one for the image files). As this is my first serious try at making a port any comments are greatly appreciated.
Should the game binary be installed in /opt/local/games instead of / opt/local/bin? I used the Nethack port as my reference and installed to /opt/local/bin.
No. There is no /opt/local/games, nor should there be. Binaries go in /opt/local/bin. Alternative: If this is a GUI application that is double-clicked to be started, then it should go in /Applications/MacPorts. See the neverball port for an example.
After trying everything including port uninstall installed, I couldn't get ncursesw to install. Finally I deleted the entire Darwinports installation and folder using sudo rm -rf /opt/local /Applications/MacPorts /Applications/DarwinPorts /Library/Tcl/darwinports1.0 /Library/LaunchDaemons/org.macports.* /Library/StartupItems/DarwinPortsStartup I reinstalled using MacPorts 1.4.0-rc2, reinstalled apache2 and I'm having no problems at all. Thanks for everyone's help. Does anyone have any suggestions about safe upgrade procedures that won't wreck my existing installation in the future? John Korchok
Ryan Schmidt kirjoitti 25.3.2007 kello 12:45:
On Mar 25, 2007, at 03:54, Jarimatti Valkonen wrote:
Currently I've got the game client working on my machine, but I don't know how to add dependencies. Which fine manual should I read?
I'm not sure... I recommend looking at other existing ports. The php5 port is a fairly big port with lots of dependencies to give you some ideas.
Thanks, I'll have a look at that.
Should the game binary be installed in /opt/local/games instead of /opt/local/bin? I used the Nethack port as my reference and installed to /opt/local/bin.
No. There is no /opt/local/games, nor should there be. Binaries go in /opt/local/bin.
Understood. I got my idea from the manpage porthier(7), so it seems to need some clarification. -- Jarimatti Valkonen jarimatti@dnainternet.net
On Mar 26, 2007, at 02:20, Jarimatti Valkonen wrote:
Should the game binary be installed in /opt/local/games instead of /opt/local/bin? I used the Nethack port as my reference and installed to /opt/local/bin.
No. There is no /opt/local/games, nor should there be. Binaries go in /opt/local/bin.
Understood. I got my idea from the manpage porthier(7), so it seems to need some clarification.
Ah. Indeed it does say that. First time I've seen that manpage. :-) I don't know if any portfile actually installs anything in /opt/local/ games. Seems to be like it would be a bad idea, since in order to use those items effectively, you'd have to add /opt/local/games to your PATH as well, and I've never seen that recommendation in any installation doc. Why make people add two paths to their PATH when adding just the one would be just fine if everything got installed in that one path?
On Mar 26, 2007, at 4:48 PM, Ryan Schmidt wrote:
On Mar 26, 2007, at 02:20, Jarimatti Valkonen wrote:
Should the game binary be installed in /opt/local/games instead of /opt/local/bin? I used the Nethack port as my reference and installed to /opt/local/bin.
No. There is no /opt/local/games, nor should there be. Binaries go in /opt/local/bin.
Understood. I got my idea from the manpage porthier(7), so it seems to need some clarification.
Ah. Indeed it does say that. First time I've seen that manpage. :-)
I don't know if any portfile actually installs anything in /opt/ local/games. Seems to be like it would be a bad idea, since in order to use those items effectively, you'd have to add /opt/local/ games to your PATH as well, and I've never seen that recommendation in any installation doc. Why make people add two paths to their PATH when adding just the one would be just fine if everything got installed in that one path?
Exactly. I believe this is herited from FreeBSD hier(7) page. Since mtree doesn't create ${prefix}/games/ on destroot, I believe this is just a bug in the documentation and binaries should be in bin/ or sbin/. I have just committed a fix for the man page. Paul
participants (4)
-
Jarimatti Valkonen
-
John Korchok
-
Paul Guyot
-
Ryan Schmidt