Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Jan 2005 16:21:14 -0500
From:      Sean <rsh.lists@comcast.net>
To:        freebsd-questions@freebsd.org
Subject:   Makefile correction?
Message-ID:  <41E04ECA.80508@comcast.net>

next in thread | raw e-mail | index | archive | help
Hello All,

	I am trying to install gnuchess but when I start the build process it 
errors out as follows.

----------------------------------------
tardis# make install clean
===>  Vulnerability check disabled, database not found
===>  Found saved configuration for gnuchess-5.07
===>  Extracting for gnuchess-5.07
=> Checksum OK for book_1.01.pgn.gz.
/usr/ports/distfiles//gnuchess-5.07.tar.gz: No such file or directory
tar: Error opening archive: Empty input file: Inappropriate file type or 
format
*** Error code 1

Stop in /usr/ports/games/gnuchess.
----------------------------------------

 From what I make of this it looks like there is an extra / in the path 
to the distfile location.

I am trying to correct the Makefile, I figure this is where it would be, 
and cannot figure out what to change to correct this.
Can anyone help?
Thanks
Sean

----------------------------------------
Makefile below.
tardis# more Makefile
# New ports collection makefile for:    Gnu Chess
# Date created:         04 July 1996
# Whom:                 markm
#
# $FreeBSD: ports/games/gnuchess/Makefile,v 1.20 2004/12/28 23:19:42 
edwin Exp $
#

PORTNAME=       gnuchess
PORTVERSION=    5.07
CATEGORIES=     games
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=     chess

MAINTAINER=     conrads@cox.net
COMMENT=        "Classic" Gnu Chess

PLIST_FILES=    bin/gnuchess \
                 bin/gnuchessx

.if !defined(NOPORTDOCS)
PORTDOCS=       ChangeLog \
                 NEWS \
                 README
.endif

OPTIONS=    OPENING_BOOK "Install opening book (24 MB download)" on

.include <bsd.port.pre.mk>

.if defined(WITH_OPENING_BOOK)
DISTFILES+=     book_1.01.pgn.gz
PLIST_DIRS+=    %%DATADIR%%
PLIST_FILES+=   %%DATADIR%%/book.dat
EXTRACT_ONLY=   ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
.endif

USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=       --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  LIBS="${PTHREAD_LIBS}"

post-patch:
         @${REINPLACE_CMD} -e 
's|-D_THREAD_SAFE|${PTHREAD_CFLAGS:S/"//g}|g ; \
                  s|-pthread ||g' ${WRKSRC}/configure

pre-install:
.if defined(WITH_OPENING_BOOK)
         @${SH} ${SCRIPTDIR}/create_opening_book.sh ${DISTDIR} ${WRKSRC}
.endif

post-install:
         ${LN} -f ${PREFIX}/bin/gnuchess ${PREFIX}/bin/gnuchessx
.if defined(WITH_OPENING_BOOK)
         @${ECHO_CMD} Installing opening book
         ${MKDIR} ${DATADIR} && \
         ${CP} ${WRKSRC}/src/book.dat ${DATADIR}
.endif
.if !defined(NOPORTDOCS)
         @${ECHO_CMD} Installing documentation
         ${MKDIR} ${DOCSDIR} && \
         ${CP} ${WRKSRC}/NEWS ${DOCSDIR} && \
         ${CP} ${WRKSRC}/doc/* ${DOCSDIR}
.endif

.include <bsd.port.post.mk>






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41E04ECA.80508>