freebsd-ports/games/garith/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

39 lines
930 B
Makefile

# 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>