aboutsummaryrefslogtreecommitdiffstats
path: root/games/latrine
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2007-04-08 02:37:23 +0800
committernox <nox@FreeBSD.org>2007-04-08 02:37:23 +0800
commit3fb16537213e5fb0225a3834e2eb79672ca6251f (patch)
treeb9048f8a32f78e733325fbe95c45f990b62cdb34 /games/latrine
parent292c2d6f0ddddb8216854294376eb1ea5e14aed1 (diff)
downloadfreebsd-ports-gnome-3fb16537213e5fb0225a3834e2eb79672ca6251f.tar.gz
freebsd-ports-gnome-3fb16537213e5fb0225a3834e2eb79672ca6251f.tar.zst
freebsd-ports-gnome-3fb16537213e5fb0225a3834e2eb79672ca6251f.zip
Use ncursesw from base where available (HEAD and now RELENG_6 too)
Submitted by: rafan@ Approved by: miwi (mentor, implicit)
Diffstat (limited to 'games/latrine')
-rw-r--r--games/latrine/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/games/latrine/Makefile b/games/latrine/Makefile
index 752500575aa3..cfd34c9ab8d0 100644
--- a/games/latrine/Makefile
+++ b/games/latrine/Makefile
@@ -7,14 +7,13 @@
PORTNAME= latrine
PORTVERSION= 0.9.0
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.godisch.de/debian/latrine/
MAINTAINER= nox@FreeBSD.org
COMMENT= Curses-based LAnguage TRaINEr
-LIB_DEPENDS+= ncursesw.5:${PORTSDIR}/devel/ncurses
-
GNU_CONFIGURE= yes
CONFIGURE_ARGS= "CFLAGS=-I${LOCALBASE}/include -I${WRKDIR} -D_XOPEN_SOURCE_EXTENDED" LDFLAGS=-L${LOCALBASE}/lib --mandir=${PREFIX}/man
USE_GMAKE= yes
@@ -28,8 +27,17 @@ MAN1= latrine.1
IGNORE= needs libcursesw which doesnt work on this OSVERSION
.endif
-post-extract:
+.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>