Makefile correction?
Sean
rsh.lists at comcast.net
Sat Jan 8 13:21:52 PST 2005
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 at 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>
More information about the freebsd-questions
mailing list