From owner-freebsd-ports@FreeBSD.ORG Wed Oct 24 18:29:52 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 9442D16A417 for ; Wed, 24 Oct 2007 18:29:52 +0000 (UTC) (envelope-from jacardenasm@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by mx1.freebsd.org (Postfix) with ESMTP id 709A113C465 for ; Wed, 24 Oct 2007 18:29:52 +0000 (UTC) (envelope-from jacardenasm@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so345280waf for ; Wed, 24 Oct 2007 11:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=AxnKc8bUEz8qmTR7DzMYU0OegzX1Dm3GCJ/lkQ4TMGA=; b=lQV5Kcnoc0KDOzYSSWCRsLVzHrwUijjKaTYc7H5BjY/k4eo8VOqPxTdlNyMNQVKFbWaZFN+bR3ggDa6HLjBbVllQuRzLBh/N+whwnU5PUr21H2lyjj4lMQUmcM2TAJuFJwviKlZ62H91kdN090yF9W4GB2W0uCvhaWyZS51dmR0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=r/BjNGYxq3jZPhm3N2/9Y5gQ8iKA7TaO+nK3sZ9cDcwT4wkKvkMZOIgZPGQsf8ABA8L1b03KYQfUURwcTlcDEwgs3xscJ51+FN532zkz3q62h3OmU7Z2nyFq+lg1TSjmr8yJv3ssaA6h86TteBuvVTt4C7YjOg63iJENUi7iryM= Received: by 10.114.134.1 with SMTP id h1mr1009943wad.1193249094672; Wed, 24 Oct 2007 11:04:54 -0700 (PDT) Received: by 10.115.18.9 with HTTP; Wed, 24 Oct 2007 11:04:54 -0700 (PDT) Message-ID: <7c58fcfc0710241104h1bb74777r319173eb67724798@mail.gmail.com> Date: Wed, 24 Oct 2007 13:04:54 -0500 From: "Jose Alonso Cardenas Marquez" Sender: jacardenasm@gmail.com To: "Michael Pope" , freebsd-ports@freebsd.org In-Reply-To: <471ED07B.2020502@dtcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <471ED07B.2020502@dtcorp.com.au> X-Google-Sender-Auth: 2aab03010ddbf220 Cc: 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: Wed, 24 Oct 2007 18:29:52 -0000 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