Opened 10 years ago

Closed 10 years ago

#45002 closed submission (fixed)

Request for a new port - freealut

Reported by: lubodiakov@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: freealut Cc: lubodiakov@…, kurthindenburg (Kurt Hindenburg)
Port: freealut

Description

I'm trying to compile an Open Source project, and so far all the other dependencies have existing Portfiles, which has helped greatly. Sadly this is not the case for freealut:

https://github.com/vancegroup/freealut

The development system I'm using: OS X 10.5 (i386) (32 bit) Xcode 3.1.x (last version for 10.5) GCC from Xcode - 4.0 and 4.2

I've managed to compile the source code from github above as a Universal ppc/i386 .dylib and would like it added to MacPorts (with the +universal variant). I'm putting together a Portfile (first time for me so it may take some time for that).

Attachments (2)

Portfile.txt (1.1 KB) - added by lubodiakov@… 10 years ago.
Second attempt at a Portfile
Portfile (966 bytes) - added by lubodiakov@… 10 years ago.
Deleted fetch.type git and included checksums from sudo port -d checksum

Download all attachments as: .zip

Change History (10)

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

Thanks. Some observations:

  • since this project is hosted at github, the port should use the github portgroup (see documentation in comments in the github portgroup file)
  • the revision should be 0 (you can just remove the revision line to do that)
  • the maintainers line should be your valid email address in our obfuscated host:user format

comment:2 in reply to:  1 Changed 10 years ago by lubodiakov@…

Replying to ryandesign@…:

Thanks. Some observations:

  • since this project is hosted at github, the port should use the github portgroup (see documentation in comments in the github portgroup file)
  • the revision should be 0 (you can just remove the revision line to do that)
  • the maintainers line should be your valid email address in our obfuscated host:user format

I think I took care of all three suggestions. Uploading revised Portfile. P.S. Your link to the documentation for how to put something in the github portgroup works inside trac.macports.org but when it arrives via email the first part (i.e. trac.macports.org ) gets cut off and what's left is: browser/trunk/dports/_resources/port1.0/group/github-1.0.tcl

Changed 10 years ago by lubodiakov@…

Attachment: Portfile.txt added

Second attempt at a Portfile

comment:3 Changed 10 years ago by lubodiakov@…

Forgot to add:

I used CMAKE rather than configure, make, make install to build, since the author says CMAKE is more modern and capable at making cross platform software. And as you can tell I'm NOT a programmer so the easier it is, the better :-)

The command I used with cmake was:

cmake .. -DCMAKE_INSTALL_PREFIX:STRING="/opt" -DCMAKE_C_FLAGS:STRING=" -arch ppc -arch i386"

comment:4 Changed 10 years ago by lubodiakov@…

Cc: lubodiakov@… added

Cc Me!

comment:5 Changed 10 years ago by lubodiakov@…

I now have what I hope is the final (or nearly final) version of the Portfile for freealut.

Made myself a local MacPorts repo, put it in there, checked for errors with:

port lint --nitpick freealut

ran portindex

it all worked. (Only odd thing is despite pulling the source from github, it still tries to fetch from 3 macports mirrors, fails, then falls back to git. Is this expected?)

But anyway after it finished, I had the library ready to go. Somehow it made the universal binary too, even though I have no variants in the Portfile.

comment:6 Changed 10 years ago by lubodiakov@…

Updated Portfile with same changes I made to: https://trac.macports.org/ticket/45294

i.e. removed fetch.type git and added checksums with

sudo port -d checksum freealut

Changed 10 years ago by lubodiakov@…

Attachment: Portfile added

Deleted fetch.type git and included checksums from sudo port -d checksum

comment:7 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:8 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed

done r128706

Note: See TracTickets for help on using tickets.