aboutsummaryrefslogtreecommitdiffstats
path: root/games/garith/Makefile
blob: 7aa3643736f3d678981f999840fc2e39c8407583 (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
# New ports collection makefile for:    garith
# Date created:             5 August 1998
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   garith
PORTVERSION=    2.1
PORTREVISION=   5
CATEGORIES= games
MASTER_SITES=   http://www.cnm-vra.com/micah/garith/ CENKES
# Latest version (2.3.1) does not build with gtk 1.2.10

MAINTAINER= ports@FreeBSD.org
COMMENT=    Arithmetic quiz program for X Window System

USE_GNOME=  gtk12
WRKSRC=     ${WRKDIR}/garith
CFLAGS+=    `${GTK_CONFIG} --cflags`
LDFLAGS+=   `${GTK_CONFIG} --libs`
PORTDOCS=   BUGS HISTORY README TODO
PLIST_FILES=    bin/garith

post-patch:
    @${REINPLACE_CMD} -e 's|gldouble|double|;/gnome/d;/all.*apps/d'\
        ${WRKSRC}/garith.c

do-build:
    cd ${WRKSRC}&&${CC} ${CFLAGS} -o garith garith.c ${LDFLAGS}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/garith ${PREFIX}/bin/
.ifndef NOPORTDOCS
    @${INSTALL} -d ${DOCSDIR}/
    @cd ${WRKSRC}&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif

.include <bsd.port.mk>