Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#24508 closed submission (fixed)

swarm - Portfile submission

Reported by: cristiano.fontana@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: swarm

Description

Swarm is a platform for agent-based models (ABMs).

It requires a JDK to work but I was not able to get openjdk6 to compile on my Snow Leopard. So I put the path to the Leopard's Java JDK. When the problem with openjdk6 will be fixed I guess that this can be fixed too.

Attachments (2)

Portfile (1.4 KB) - added by cristiano.fontana@… 11 years ago.
Portfile-ryandesign (1.4 KB) - added by ryandesign (Ryan Schmidt) 11 years ago.
revised portfile

Download all attachments as: .zip

Change History (7)

Changed 11 years ago by cristiano.fontana@…

Attachment: Portfile added

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

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

comment:2 Changed 11 years ago by ryandesign (Ryan Schmidt)

Thanks for the port.

The post-patch phase was a little overcomplicated; I simplified it to just reinplace the two configure scripts. No need to reinplace the configure.in files since their only purpose is to regenerate the configure scripts.

The --with-ffidir configure arg was a little peculiar too, and wouldn't work if libffi hadn't already been installed. (The glob would have been evaluated when the swarm portfile was parsed, which would have been before the libffi dependency was installed, so the glob would evaluate to the empty string.) I fixed this by using a pre-configure block, and felt it cleaner to use pkg-config.

Finally, I can't build this at all on my Mac, which has Snow Leopard, using either build_arch x86_64 or i386. I get this kind of error:

libtool: compile:  /usr/bin/gcc-4.2 -x none -c avcall-i386.s -o avcall-i386.o
avcall-i386.s:7:suffix or operands invalid for `push'
avcall-i386.s:9:suffix or operands invalid for `push'
avcall-i386.s:10:suffix or operands invalid for `push'
avcall-i386.s:39:suffix or operands invalid for `call'
avcall-i386.s:47:suffix or operands invalid for `call'
avcall-i386.s:53:suffix or operands invalid for `call'
avcall-i386.s:168:suffix or operands invalid for `pop'
avcall-i386.s:169:suffix or operands invalid for `pop'
avcall-i386.s:171:suffix or operands invalid for `pop'

On what Mac with what OS version are you able to build this port?

Attached is my revised portfile.

Changed 11 years ago by ryandesign (Ryan Schmidt)

Attachment: Portfile-ryandesign added

revised portfile

comment:3 Changed 11 years ago by ryandesign (Ryan Schmidt)

Well, the reason I can't build seems to be because of my modifications. Your version builds fine. I will play with this a bit and see how to make it work.

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

Resolution: fixed
Status: assignedclosed

Ok, we'll go back to the glob method of supplying the --with-ffidir argument; that works. r67861, r67862.

comment:5 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Marked nomaintainer in r92459

Note: See TracTickets for help on using tickets.