From owner-freebsd-ports@FreeBSD.ORG Fri Oct 26 00:46:07 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CE9216A417 for ; Fri, 26 Oct 2007 00:46:07 +0000 (UTC) (envelope-from michael@dtcorp.com.au) Received: from mail.dtcorp.com.au (teksup41.lnk.telstra.net [165.228.0.35]) by mx1.freebsd.org (Postfix) with ESMTP id C583713C4BF for ; Fri, 26 Oct 2007 00:46:06 +0000 (UTC) (envelope-from michael@dtcorp.com.au) Received: from ws10.lan (ws10.lan [192.168.200.31]) by mail.dtcorp.com.au (8.12.9/8.12.9) with ESMTP id l9Q0jsev050154; Fri, 26 Oct 2007 10:45:54 +1000 (EST) (envelope-from michael@dtcorp.com.au) Message-ID: <472138BA.2070902@dtcorp.com.au> Date: Fri, 26 Oct 2007 10:45:46 +1000 From: Michael Pope User-Agent: Thunderbird 2.0.0.6 (X11/20070905) MIME-Version: 1.0 To: Jose Alonso Cardenas Marquez References: <471ED07B.2020502@dtcorp.com.au> <7c58fcfc0710241104h1bb74777r319173eb67724798@mail.gmail.com> In-Reply-To: <7c58fcfc0710241104h1bb74777r319173eb67724798@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: Scanned by F-Prot Antivirus (http://www.f-prot.com) X-Antivirus-Summary: Mod score: 0 X-Spam-Status: No, hits=0.3 required=5.0 tests=UPPERCASE_25_50 autolearn=no version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on gateway.dtcorp.com.au Cc: freebsd-ports@freebsd.org Subject: Re: Porting pdfedit-0.3.1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2007 00:46:07 -0000 Thanks for you help guys, I have done what you both suggested and are stuck again. I've simplified the steps to compile this port manually to these steps: # tar zxvf pdfedit-0.3.1.tar.bz2 # cd pdfedit-0.3.1 Edit src/utils/Makefile INCPATH line and add '-I/usr/local/include' to the end. # export QTDIR=/usr/local # export QMAKESPEC=/usr/local/share/qt/mkspecs/freebsd-g++ # export LOCALBASE=/usr/local # export CPPFLAGS="-I /usr/local/include" # export LDFLAG="-L /usr/local/include" # ./configure --with-t1-library="${LOCALBASE}/lib" --with-t1-includes="${LOCALBASE}/include" # cd src/xpdf # ./configure --with-t1-library="${LOCALBASE}/lib" --with-t1-includes="${LOCALBASE}/include" The port really needs that second configure to be executed in that src/xpdf directory, how do I configure my Makefile to run the configure in the pdfedit-0.3.1 directory as well as the pdfedit-0.3.1/src/xpdf directory? Should I be using a post-configure section? Here is my current Makefile # New ports collection makefile for: xpdf # Date created: 02 Feb 1996 # Whom: chuckr@glue.umd.edu # # $FreeBSD: ports/graphics/xpdf/Makefile,v 1.80 2007/09/30 04:46:55 linimon Exp $ # PORTNAME= pdfedit PORTVERSION= 0.3.1 CATEGORIES= graphics print MASTER_SITES= http://optusnet.dl.sourceforge.net/sourceforge/pdfedit/ MAINTAINER= michael@dtcorp.com.au COMMENT= a pdf editor which allows you to annotate and save back to a pdf. BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2 LIB_DEPENDS= t1.5:${PORTSDIR}/devel/t1lib \ freetype.9:${PORTSDIR}/print/freetype2 RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/n021003l.pfb:${PORTSDIR}/print/gsfonts USE_AUTOTOOLS= autoconf:261 USE_QT_VER= 3 CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} # QT_PREFIX is defined in bsd.kde.mk CONFIGURE_ENV= QTDIR="${QT_PREFIX}" \ QMAKESPEC="${LOCALBASE}/share/qt/mkspecs/freebsd-g++" \ CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" INCPATH= -I/usr/local/include CONFIGURE_ARGS= --with-t1-library="${LOCALBASE}/lib" \ --with-t1-includes="${LOCALBASE}/include" # This may solve some incpath problems on build time. MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" MAN1= pdfedit.1 .include Michael Jose Alonso Cardenas Marquez wrote: > 2007/10/23, Michael Pope : > > Hi Michael :) > > >> I would like to port and application across and have read the porters >> handbook, but I'm still having trouble porting this app to freebsd6.2. >> >> The procedure I use to manually install pdfedit 0.3.1 under bsd is: >> >> FreeBSD build >> ------------------------------------------------------------------------ >> Here is the short howto for PDFedit compilation and installation on FreeBSD 6.2 >> (Qt 3.38, Xorg 7.2). Thanks to Hao Chen. >> # New ports collection makefile for: pdfedit >> # >> >> PORTNAME= pdfedit >> PORTVERSION= 0.3.1 >> PORTREVISION= 1 >> > > Remove PORTREVISION, it is not neccesary at moment > > >> CATEGORIES= graphics print >> MASTER_SITES= http://optusnet.dl.sourceforge.net/sourceforge/pdfedit/ >> >> MAINTAINER= michael@dtcorp.com.au >> COMMENT= a pdf editor which allows you to annotate and save back >> to a pdf. >> >> BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2 >> LIB_DEPENDS= t1.5:${PORTSDIR}/devel/t1lib \ >> freetype.9:${PORTSDIR}/print/freetype2 >> RUN_DEPENDS= >> ${LOCALBASE}/share/ghostscript/fonts/n021003l.pfb:${PORTSDIR}/print/gsfonts >> >> USE_AUTOTOOLS= autoconf:261 >> > > If this port will use qt3, you must to add the line USE_QT_VER= 3 > > >> CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} >> CONFIGURE_ENV= QTDIR="${LOCALBASE}/usr/local" \ >> QMAKESPEC="${LOCALBASE}/share/qt/mkspecs/freebsd-g++" \ >> CPPFLAGS="-I${LOCALBASE}/include" \ >> LDFLAGS="-L${LOCALBASE}/lib" >> > > Set QTDIR to ${QT_PREFIX}, It is a defined variable at bsd.kde.mk file > > >> INCPATH= -I/usr/local/include >> > > INCPATH could not be necessary, you could use CPPFLAGS instead of that > > >> CONFIGURE_ARGS= --with-t1-library="/usr/local/lib" \ >> --with-t1-includes="/usr/local/include" >> >> > > Replace /usr/local by ${LOCALBASE} > > you could define MAKE_ENV variable, it could solve some incpath > problems on build time > > MAKE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" > > >> MAN1= pdfedit.1 >> >> >> .include >> >> >> So should I be making a patch file for the extra include I have to enter >> into src/utils/Makefile? >> >> If so how do I automate that patch for that file? Currently i've >> created a little patch called 'patch-src-utils-Makefile' but every time >> I run make it asks me which file I want to patch. >> >> > > See ijliao@ mail about that :) > > Greetings > ACM > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > > . > >