1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/games/tvp/Makefile
Edwin Groothuis cba55abbeb Martin Tournoij <carpetsmoker@xs4all.nl>
Use TCL/TK 8.4
	Inform the user of the different binaries

PR:		ports/110326
Submitted by:	Martin Tournoij <carpetsmoker@xs4all.nl>
2007-09-25 12:08:18 +00:00

56 lines
1.5 KiB
Makefile

# New ports collection makefile for: tvp
# Date Created: 3 Jul 1996
# Whom: Tim Vanderhoek <ac199@hwcn.org>
#
# $FreeBSD$
#
PORTNAME= tvp
PORTVERSION= 0.9.7.1
PORTREVISION= 2
CATEGORIES= games tk84
MASTER_SITES= http://www3.sympatico.ca/john.vanderhoek/tim/src/president/
MAINTAINER= ports@FreeBSD.org
COMMENT= Play the cardgame President (or Ass) against 3 AIs
USE_TK= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-carddir=${PREFIX}/share/games/tvp \
--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/tcl8.4 \
-I${LOCALBASE}/include/tk8.4" \
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib \
-ltcl84 -ltk84 -lX11 -lm"
#CFLAGS+= -lX11 -lm -ltcl84 -ltk84 \
# -L${LOCALBASE}/lib -L${X11BASE}/lib
USE_PERL5_BUILD=yes
MAN6= tvp.6
MLINKS= tvp.6 xprez.6 - aprez.6 - prez.6
DOCFILES= aprez.txt libass.txt president.txt prez.txt xprez.txt
.include <bsd.port.pre.mk>
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/tvp
.for f in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/docs/${f} ${PREFIX}/share/doc/tvp
.endfor
.endif
${INSTALL_MAN} ${FILESDIR}/tvp.6 ${PREFIX}/man/man6/tvp.6
a='${PREFIX}/share/doc/tvp/' ${PERL} -pi -e 's/TOKEN/$$ENV{a}/' \
${PREFIX}/man/man6/tvp.6
${STRIP_CMD} ${PREFIX}/bin/aprez ${PREFIX}/bin/prez ${PREFIX}/bin/xpwish
@${ECHO_CMD} ""
@${ECHO_CMD} "Use one of the following commands:"
@${ECHO_CMD} "prez - CLI version"
@${ECHO_CMD} "aprez - Curses version"
@${ECHO_CMD} "xprex - X11 version"
@${ECHO_CMD} ""
.include <bsd.port.post.mk>