Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Mar 2004 10:04:29 +0100
From:      Oliver Eikemeier <eikemeier@fillmore-labs.com>
To:        Patrick Dung <patrick_dkt@yahoo.com.hk>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: pdftk compiling problems on FreeBSD
Message-ID:  <4059661D.1080807@fillmore-labs.com>
In-Reply-To: <20040318060943.12391.qmail@web41905.mail.yahoo.com>
References:  <20040318060943.12391.qmail@web41905.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4059661D.1080807>