54 lines
1.4 KiB
Makefile
54 lines
1.4 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 tk
|
|
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= 84
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-carddir=${PREFIX}/share/games/tvp
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/tcl8.4 \
|
|
-I${LOCALBASE}/include/tk8.4" \
|
|
LIBS="-L${LOCALBASE}/lib \
|
|
-ltcl84 -ltk84 -lX11 -lm"
|
|
#CFLAGS+= -lX11 -lm -ltcl84 -ltk84 \
|
|
# -L${LOCALBASE}/lib
|
|
USE_PERL5_BUILD=yes
|
|
|
|
MAN6= tvp.6
|
|
MLINKS= tvp.6 xprez.6 - aprez.6 - prez.6
|
|
|
|
PORTDOCS= 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 ${PORTDOCS}
|
|
${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>
|