aboutsummaryrefslogtreecommitdiffstats
path: root/games/crafty/Makefile
blob: 661d0ce583192e8d6860cdd91b5ba55221998509 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# New ports collection makefile for:    crafty
# Date created:             31 May 1998
# Whom:                 Stefan Eggers <seggers@semyam.dinoco.de>
#
# $FreeBSD$
#

PORTNAME=   crafty
PORTVERSION=    18.14
CATEGORIES= games
MASTER_SITES=   ftp://ftp.cis.uab.edu/pub/hyatt/ \
        ftp://ftp.cis.uab.edu/pub/hyatt/common/ \
        ftp://ftp.cis.uab.edu/pub/hyatt/v18/ \
        ftp://ftp.jpunix.com/pub/hyatt/ \
        ftp://ftp.jpunix.com/pub/hyatt/common/ \
        ftp://ftp.jpunix.com/pub/hyatt/v18/
DISTFILES=  crafty-${PORTVERSION}.tar.gz crafty.doc.ascii crafty.doc.ps \
        crafty.faq read.me start.zip

MAINTAINER= seggers@semyam.dinoco.de

.if ${MACHINE_ARCH} == "i386"
ALL_TARGET= freebsd-i386
.else
ALL_TARGET= freebsd-generic
.endif
DIST_SUBDIR=    crafty
EXTRACT_ONLY=   crafty-${PORTVERSION}.tar.gz
IGNOREFILES=    crafty.faq read.me

MAN6=       crafty.6
NO_WRKSUBDIR=   yes

post-extract:
    (cd ${WRKDIR}; ${GUNZIP_CMD} <${DISTDIR}/${DIST_SUBDIR}/start.zip >${WRKDIR}/start.pgn)

post-build:
    (cd ${WRKDIR}; ./crafty <${FILESDIR}/books-building)

do-install:
    ${INSTALL_PROGRAM} ${WRKDIR}/crafty ${PREFIX}/bin/crafty
    ${MKDIR} ${PREFIX}/lib/crafty
    ${INSTALL_DATA} ${WRKDIR}/books.bin ${PREFIX}/lib/crafty/books.bin
    ${INSTALL_MAN} ${FILESDIR}/crafty.6 ${MANPREFIX}/man/man6/crafty.6
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for file in crafty.doc.ascii crafty.doc.ps crafty.faq read.me
    ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>