Bug 124235

Summary: lang/fpc, lang/fpc-utils: some improvements needed
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Dmitry Marakasov 2008-06-03 15:30:03 UTC
I've just submitted PR for new port games/hedgewars (ports/124234), it's opensource worms clone. It uses fpc, and I've ran into some (non-critical) issues with it, so I think it could be improved is some ways.

First of all, there's no clear way to depend on fpc modules.

I've used

BUILD_DEPENDS=${LOCALBASE}/lib/fpc/2.2.0/units/i386-freebsd/opengl/Package.fpc:${PORTSDIR}/x11/fpc-x11

but this is badly broken because fpc version and arch are hardcoded here.

Next, many fpc modules depend on lang/fpc-utils, whict in turn depends on MANY things (almost all database client ports for instance). But actually in most cases only fpcmake is really needed.
I can confirm that in case of games/hedgewars, x11/fpc-x11, graphics/fpc-opengl: after hacking fpc-utils to only install fpcmake, everything went without any problems.

So I think fpcmake should really be moved into the separate port.

Last, but not least: fpc seem to support amd64, but the port doesn't.


Lately I've seen some new software written in fpc, and I think both users and port maintainers could benefit from improving fpc support in FreeBSD port system.
So we definitely need to move stuff from lang/fpc/Makefile.units to bsd.fpc.mk to handle dependencies and other stuff gracefully and improve fpc-utils port to not bring in useless depends.

I'm eager to help with this stuff when I have some more free time by the end of the month.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-06-03 15:30:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->acm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alonso Cárdenas Márquez 2008-06-10 04:50:19 UTC
Hi Dmitry :)

A new version of freepascal will be released soon, i'll begin to work
on bsd.fpc.mk file, i hope it is finish before of fpc-2.2.2 release.

the amd64 version of freepascal on FreeBSD doesn't work yet.

I'm thinking use fpcmake binary that i'm using to build fpc compiler
from source code. It could be used for all fpc ports that needs it.

I'll have news soon :)

Greetings
ACM
Comment 3 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2008-06-14 19:25:52 UTC
Finally, i have done the  work with bsd.fpc.mk file, i uploaded a
tar.bz2 file at

http://people.freebsd.org/~acm/ports/freepascal/

It contains all fpc stuff including bsd.fpc.mk file and a bsd.port.mk
patch file, i'll assign this PR to portmgr because now it's a portmgr
territory ;)

Greetings
ACM.
Comment 4 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2008-06-14 19:26:10 UTC
Responsible Changed
From-To: acm->portmgr

I need approval of portmgr for commit my new stuff
Comment 5 Pav Lucistnik freebsd_committer freebsd_triage 2008-06-24 08:56:21 UTC
Responsible Changed
From-To: portmgr->acm

portmgr is okay with the change
Comment 6 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2008-06-24 16:31:30 UTC
State Changed
From-To: open->closed

- New freepascal stuff was added, thanks :)