make: cannot open Makefile?

Paul Schmehl pauls at utdallas.edu
Fri Aug 3 16:00:29 UTC 2007


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/


More information about the freebsd-ports mailing list