On Sat, 2 Oct 2010 21:38:07 +0200
Jörg Klein <[email protected]> wrote:
> Hello,

Hello,
 
> I try to build my first port. For this port a found some slides from Bernd 
> Ahlers in the Internet. Please habe a look at my Makefile and the 
> dependencies at the homepage  
> http://quickfixengine.org/quickfix/doc/html/dependencies.html
> .
> 
> What I have to do which are the dependencies for libxml und all the other 
> stuff, glibc and so on?
> Please give me a little help 
> with regards
> Joerg Klein
> 
> ---------------------------------------------------------------------
> 
> /etc/mk.conf
> 
> SUDO=/usr/bin/sudo
> PLIST_DB=${PORTSDIR}/plist
> WRKOBJDIR=/usr/obj/ports
> USE_SYSTRACE=Yes
> ------------------------------------------------------------------
> 
> mkdir -p /usr/ports/mystuff/misc/quickfix
> 
> vi Makefile
> 
> COMMENT=                QuickFix is a full-features open sourse FIX engine
> 
> DISTNAME=               quickfix-1.13.3
> CATEGORIES=             misc
> 
> HOMEPAGE=               http://quickfixengine.org/
> 
> PERMIT_PACKAGE_CDROM=   Yes
> PERMIT_PACKAGE_FTP=     Yes
> PERMIT_DISTFILES_CDROM= Yes
> PERMIT_DISTFILES_FTP=   Yes
> 
> MASTER_SITES=           ${HOMEPAGE}
> 
> USE_GMAKE=              Yes
> CONFIGURE_STYLE= Yes
> 
> .include <bsd.port.mk>
> -------------------------------------------------------------------
> 
> Error messages:
> 
> # make build
> ===>  quickfix-1.13.3 depends on: gmake-* - found
> ===>  Checking files for quickfix-1.13.3
> `/usr/ports/distfiles/quickfix-1.13.3.tar.gz' is up to date.
> >> (SHA256) quickfix-1.13.3.tar.gz: OK
> ===>  Extracting for quickfix-1.13.3
> ===>  Patching for quickfix-1.13.3
> ===>  Configuring for quickfix-1.13.3
> ===>  Building for quickfix-1.13.3
> gmake: Makefile: No such file or directory
> gmake: *** No rule to make target `Makefile'.  Stop.
> *** Error code 2
> 
> Stop in /usr/ports/mystuff/misc/quickfix (line 2225 of 
> /usr/ports/infrastructure/mk/bsd.port.mk).

It means that WRKDIST is not correct (quickfix-1.13.3.tar.gz extracts quickfix/ 
directory instead of quickfix-1.13.3/ directory), so add :
WRKDIST =               ${WRKDIR}/quickfix
and set :
CONFIGURE_STYLE = gnu

Read /usr/ports/infrastructure/templates/Makefile.template for more details 
(about *_DEPENDS for example).

Remi.

Reply via email to