From owner-freebsd-ports@FreeBSD.ORG Thu Mar 18 01:04:46 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8186916A4CF for ; Thu, 18 Mar 2004 01:04:46 -0800 (PST) Received: from postman.arcor.de (postman2.arcor-online.net [151.189.0.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id D294543D2D for ; Thu, 18 Mar 2004 01:04:45 -0800 (PST) (envelope-from eikemeier@fillmore-labs.com) Received: from fillmore.dyndns.org (port-212-202-51-138.reverse.qsc.de [212.202.51.138]) (authenticated bits=0)i2I94eko012644 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 18 Mar 2004 10:04:40 +0100 (MET) Received: from [172.16.0.2] (helo=fillmore-labs.com) by fillmore.dyndns.org with esmtp (Exim 4.30; FreeBSD) id 1B3tS1-0005uj-OU; Thu, 18 Mar 2004 10:04:29 +0100 Message-ID: <4059661D.1080807@fillmore-labs.com> Date: Thu, 18 Mar 2004 10:04:29 +0100 From: Oliver Eikemeier Organization: Fillmore Labs GmbH - http://www.fillmore-labs.com/ MIME-Version: 1.0 To: Patrick Dung References: <20040318060943.12391.qmail@web41905.mail.yahoo.com> In-Reply-To: <20040318060943.12391.qmail@web41905.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: ssteward@AccessPDF.com cc: freebsd-ports@freebsd.org Subject: Re: pdftk compiling problems on FreeBSD X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Mar 2004 09:04:46 -0000 Patrick Dung wrote: > Thank you. > > I am now making the files the the ports. > It can now fetch the tarball from the pdftk website. > I am fighting with the Makefile. > > Now I have encountered one problem. My machine is a FreeBSD 4.9. > It does not have gcj and gcjh (gcc 3.x stuff). After installing the > gcc33 port, gcc33, g++33, gcj33, gcjh33 are created. > The problem is that the Makefiles in the pdftk tarball hardcoded to use > the name of the binaries (e.g., g++, gcj, gcjh) instead of macros. > The number of Makefiles is not small, I think I would be silly to make > many patch files for them. Maybe something like USE_REINPLACE=yes post-patch: @${FIND} ${WRKSRC} -type f -name Makefile | \ ${XARGS} ${REINPLACE_CMD} -Ee "s/[[:<:]]g\+\+/g\1${CXX}/g" \ -e "s/[[:<:]]gc(c|jh?)[[:>:]]/gc\1${CC:S/^gcc//}/g" \; will help? Otherwise using macros in the Makefiles seems like a good idea to me. Oliver