From owner-freebsd-questions@FreeBSD.ORG Sun Mar 15 15:22:59 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 63AE12E8 for ; Sun, 15 Mar 2015 15:22:59 +0000 (UTC) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CF16CE2C for ; Sun, 15 Mar 2015 15:22:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id t2FFMtt0032713; Mon, 16 Mar 2015 02:22:55 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Mon, 16 Mar 2015 02:22:55 +1100 (EST) From: Ian Smith To: Mehmet Erol Sanliturk Subject: Re: Any pascal-source programs in the ports tree? [SOLVED] In-Reply-To: Message-ID: <20150316015230.X22641@sola.nimnet.asn.au> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org, Dirk E , Eduardo Morras X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Mar 2015 15:22:59 -0000 Re: freebsd-questions Digest, Vol 562, Issue 6, Message: 2 On Sat, 14 Mar 2015 01:06:43 +1100 (EST) Ian Smith 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 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 # $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 === Thanks, Ian