freebsd-ports/games/latrine/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

42 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
CATEGORIES= games
MASTER_SITES= http://www.godisch.de/debian/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>