From owner-freebsd-ports@FreeBSD.ORG Thu Mar 18 08:52:18 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 F19CB16A4CF for ; Thu, 18 Mar 2004 08:52:17 -0800 (PST) Received: from web41903.mail.yahoo.com (web41903.mail.yahoo.com [66.218.93.154]) by mx1.FreeBSD.org (Postfix) with SMTP id 6D7EC43D2D for ; Thu, 18 Mar 2004 08:52:17 -0800 (PST) (envelope-from patrick_dkt@yahoo.com.hk) Message-ID: <20040318165216.31395.qmail@web41903.mail.yahoo.com> Received: from [61.18.140.170] by web41903.mail.yahoo.com via HTTP; Fri, 19 Mar 2004 00:52:16 CST Date: Fri, 19 Mar 2004 00:52:16 +0800 (CST) From: =?big5?q?Patrick=20Dung?= To: Oliver Eikemeier In-Reply-To: <405975B0.7080804@fillmore-labs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 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 16:52:18 -0000 Good news!! It can compile cleanly, like self compiling in /usr/local/src. It works like charm. I have used part of your new code. Thank you. And I added @ inside the post-patch section. I need sometime to do more work: Test dependency. Write the list for package installation. Other cleanup. Testing... (fetch, builid, install and deinstall) To Sid Steward: I think there is no need to change gcj/gcjh to marco in every Makefile. (Also save your time.) We can do it in the ports (power of the ports system). Regards Patrick Oliver Eikemeier wrote: Patrick Dung wrote: > Thank you for helping. > > I am trying your solution. > > But the directory structure is like this: > # ls -l > total 26 > drwxr-xr-x 2 root wheel 512 Mar 8 09:04 debian > drwxr-xr-x 5 root wheel 512 Mar 18 18:03 itext-1.1 > drwxr-xr-x 2 root wheel 512 Mar 18 18:03 pdftk > -rw-r--r-- 1 root wheel 8404 Mar 8 09:05 pdftk.1.manpage.txt > > The problem Makefile is in itext-1.1. > > The post-patch doesn't seem to run recursively inside the itext-1.1. Debug the stuff, I haven't tried it. Try post-patch: ${FIND} ${WRKSRC} -type f -name Makefile ${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" \; 必殺技、飲歌、小星星... 浪漫鈴聲 情心連繫 http://ringtone.yahoo.com.hk/