freebsd-ports/games/latrine/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

43 lines
1.1 KiB
Makefile

# New ports collection makefile for: latrine
# Date created: Sun Feb 18 01:13:42 CET 2007
# Whom: Juergen Lock <nox@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= latrine
PORTVERSION= 0.10.0
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://people.debian.org/~godisch/latrine/
MAINTAINER= nox@FreeBSD.org
COMMENT= Curses-based LAnguage TRaINEr
GNU_CONFIGURE= yes
CONFIGURE_ARGS= "CFLAGS=-I${LOCALBASE}/include -I${WRKDIR} -D_XOPEN_SOURCE_EXTENDED" LDFLAGS=-L${LOCALBASE}/lib
USE_GMAKE= yes
USE_GETTEXT= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/src
MAN1= latrine.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 503000
IGNORE= needs libcursesw which doesnt work on this OSVERSION
.endif
.if ${OSVERSION} < 602107 || (${OSVERSION} > 700000 && ${OSVERSION} < 700033)
LIB_DEPENDS+= ncursesw.5:${PORTSDIR}/devel/ncurses
.endif
post-patch:
.if ${OSVERSION} < 602107 || (${OSVERSION} > 700000 && ${OSVERSION} < 700033)
${MKDIR} ${WRKDIR}/ncursesw
${LN} -s ${LOCALBASE}/include/ncurses/ncurses.h ${WRKDIR}/ncursesw/ncurses.h
.else
@${REINPLACE_CMD} -e 's,ncursesw/ncurses.h,ncurses.h,' \
${WRKSRC}/charset.h ${WRKSRC}/screen.c
.endif
.include <bsd.port.post.mk>