aboutsummaryrefslogtreecommitdiffstats
path: root/games/gnuchess/Makefile
blob: 589952137c5e88b1378074befcf7d737803800c7 (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
# New ports collection makefile for:    Gnu Chess
# Date created:     04 July 1996
# Whom:         markm
#
# $FreeBSD$
#

PORTNAME=   gnuchess
PORTVERSION=    5.06
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= chess

MAINTAINER= ports@FreeBSD.org
COMMENT=    "Classic" Gnu Chess

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

post-install:
    ${LN} -f ${PREFIX}/bin/gnuchess ${PREFIX}/bin/gnuchessx

.include <bsd.port.mk>