Any pascal-source programs in the ports tree? [SOLVED]
Ian Smith
smithi at nimnet.asn.au
Sun Mar 15 15:22:59 UTC 2015
Re: freebsd-questions Digest, Vol 562, Issue 6, Message: 2
On Sat, 14 Mar 2015 01:06:43 +1100 (EST) Ian Smith <smithi at nimnet.asn.au> wrote:
> On Thu, 12 Mar 2015 09:17:04 -0700, Mehmet Erol Sanliturk wrote:
> > On Thu, Mar 12, 2015 at 8:55 AM, Ian Smith <smithi at nimnet.asn.au> wrote:
> >
> > > Hi all,
> > >
> > > Does anyone know of any ports written IN freepascal (fpc)? I've spent
> > > some time trolling through ports (other than fpc itself) that mention
> > > 'pascal' anywhere, but so far have found nothing with pascal sources.
[..]
> > The ports tree is full of fpc-* ( fpc parts and units are separately
> > prepared as packages ) and Lazarus and its some parts .
> >
> > Therefore , you may imitate these ports by using them as samples .
> >
> > In
> >
> > http://www.freshports.org/
> >
> > search
> >
> > fpc
> > lazarus
> >
> > and see found parts for how they can be build from the sources .
>
> Thankyou Mehmet, but that's not what I'm looking for. All the fpc-*
> ports (and Lazarus) are part of the freepascal infrastructure itself,
> but what I'm after is something using fpc (or gpc, I suppose) to build
> programs outside of that infrastructure. I did browse freshports, but
> didn't find any fpc* standalone programs, just add-on units, libraries
> and such.
[..]
> Might anyone know a way to search the ports tree for anything with a
> build dependency of fpc (or gpc, I guess) that is not called fpc-* ?
Thanks again Mehmet, you pointed me in the right direction and with help
from Dirk E off-list and Eduardo Morras here, I finally found the clue I
needed, namely what USE_FPC in these Makefiles was about. From notes:
For USE_FPC see:
/usr/ports/Mk/bsd.port.mk
/usr/ports/Mk/bsd.fpc.mk
smithi at x200:/usr/ports % find . -name Makefile -exec grep -l USE_FPC {} + \
| egrep -v 'fpc-|lazarus'
./comms/cqrlog/Makefile
./games/hedgewars/Makefile
./lang/nbc/Makefile
./net-p2p/transmission-remote-gui/Makefile
./russian/emkatic/Makefile
./science/checkmol/Makefile
./science/mol2ps/Makefile
./x11-fm/doublecmd/Makefile
Eduardo pointed out hedgewars, Dirk transmission-remote-gui, but from
that list I started with science/checkmol and mol2ps which are just the
sort of thing I was after; single standalone programs built with fpc.
Even this monkey, having seen this Makefile, can do something similar :)
smithi at x200:/usr/ports % cat ./science/checkmol/Makefile
# Created by: Fernan Aguero <fernan at iib.unsam.edu.ar>
# $FreeBSD: head/science/checkmol/Makefile 357307 2014-06-10 12:52:48Z vanilla $
PORTNAME= checkmol
PORTVERSION= 0.5
PORTREVISION= 1
CATEGORIES= science
MASTER_SITES= http://merian.pch.univie.ac.at/pch/download/chemistry/checkmol/
EXTRACT_SUFX= .pas
MAINTAINER= ports at FreeBSD.org
COMMENT= Analyze molecules for the presence of functional groups
LICENSE= GPLv2 # (or later)
NO_WRKSUBDIR= yes
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS= #
EXTRACT_AFTER_ARGS= ${WRKDIR}
USE_FPC= yes
PLIST_FILES= bin/checkmol bin/matchmol
do-build:
(cd ${WRKSRC} && ${LOCALBASE}/bin/fpc ${EXTRACT_ONLY} -S2 -O3)
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${DISTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME})
(cd ${STAGEDIR}${PREFIX}/bin && ${LN} ${PORTNAME} matchmol)
.include <bsd.port.mk>
===
Thanks, Ian
More information about the freebsd-questions
mailing list