make: cannot open Makefile?

Yuri Pankov yuri at darklight.org.ru
Fri Aug 3 16:07:08 UTC 2007


On Fri, Aug 03, 2007 at 11:00:25AM -0500, Paul Schmehl wrote:
> I'm working on a new port.  I cvsup every night, so my ports tree is up to 
> date.  I'm getting this error, which seems to indicate that the ports 
> system is trying to find a Makefile that doesn't exists in WRKSRC.
>
> make install PREFIX=/var/tmp/$(make -V PORTNAME)
> ===>  Extracting for afterglow-1.5
> => MD5 Checksum OK for afterglow-1.5.tar.gz.
> => SHA256 Checksum OK for afterglow-1.5.tar.gz.
> ===>   afterglow-1.5 depends on file: /usr/local/sbin/pkg_info - found
> ===>  Patching for afterglow-1.5
> ===>  Configuring for afterglow-1.5
> ===>  Installing for afterglow-1.5
> ===>   afterglow-1.5 depends on executable in : dot - found
> ===>   Generating temporary packing list
> ===>  Checking if security/afterglow already installed
> make: cannot open Makefile.
> *** Error code 2
>
> Stop in /usr/ports/security/afterglow.
>
> Here's the entire Makefile for the port:
>
> less Makefile
> # New ports collection makefile for:    afterglow
> # Date created:                         1 Aug 2007
> # Whom:                                 pauls
> #
> # $FreeBSD$
> #
>
> PORTNAME=       afterglow
> PORTVERSION=    1.5
> CATEGORIES=     security graphics
> MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
> MASTER_SITE_SUBDIR=     afterglow
>
> MAINTAINER=     pauls at utdallas.edu
> COMMENT=        A collection of graph-generating scripts
>
> RUN_DEPENDS=    dot:${PORTSDIR}/graphics/graphviz
>
> NO_BUILD=       yes
>
> WRKSRC=         ${WRKDIR}/${PORTNAME}
>
> post-install:
>        ${MKDIR} ${DATADIR}
>        ${MKDIR} ${DATADIR}/data
>        ${MKDIR} ${DATADIR}/database
>        ${MKDIR} ${DATADIR}/graph
>        ${MKDIR} ${DATADIR}/parsers
>        (cd ${WRKSRC}/data/ && ${COPYTREE_SHARE} \* ${DATADIR}/data)
>        (cd ${WRKSRC}/src/perl/database/ && ${COPYTREE_SHARE} \* 
> ${DATADIR}/database "! -name *.pl")
>        (cd ${WRKSRC}/src/perl/graph/ && ${COPYTREE_SHARE} \* 
> ${DATADIR}/graph "! -name *,pl")
>        (cd ${WRKSRC}/src/perl/parsers/ && ${COPYTREE_SHARE} \* 
> ${DATADIR}/parsers "! -name *.pl")
>        (cd ${WRKSRC}/src/perl/database/ && ${INSTALL_SCRIPT} \*.pl 
> ${DATADIR}/database)
>        (cd ${WRKSRC}/src/perl/graph/ && ${INSTALL_SCRIPT} \*.pl 
> ${DATADIR}/graph)
>        (cd ${WRKSRC}/src/perl/parsers/ && ${INSTALL_SCRIPT} \*.pl 
> ${DATADIR}/parsers)
>
> .include <bsd.port.mk>
>
> As you can see, I've included NO_BUILD= yes.  So what's causing this error?
>
> -- 
> Paul Schmehl (pauls at utdallas.edu)
> Senior Information Security Analyst
> The University of Texas at Dallas
> http://www.utdallas.edu/ir/security/

I guess you need do-install target and not post-install.


HTH,
Yuri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070803/c0903e68/attachment.pgp


More information about the freebsd-ports mailing list