Date: Mon, 16 Mar 2015 02:22:55 +1100 (EST) From: Ian Smith <smithi@nimnet.asn.au> To: Mehmet Erol Sanliturk <m.e.sanliturk@gmail.com> Cc: freebsd-questions@freebsd.org, Dirk E <cipher_nl@hotmail.com>, Eduardo Morras <emorrasg@yahoo.es> Subject: Re: Any pascal-source programs in the ports tree? [SOLVED] Message-ID: <20150316015230.X22641@sola.nimnet.asn.au> In-Reply-To: <mailman.59.1426334401.7682.freebsd-questions@freebsd.org> References: <mailman.59.1426334401.7682.freebsd-questions@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Re: freebsd-questions Digest, Vol 562, Issue 6, Message: 2 On Sat, 14 Mar 2015 01:06:43 +1100 (EST) Ian Smith <smithi@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@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@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@x200:/usr/ports % cat ./science/checkmol/Makefile # Created by: Fernan Aguero <fernan@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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150316015230.X22641>