freebsd-ports/games/mahjong/Makefile

45 lines
1.1 KiB
Makefile
Raw Normal View History

# ex:ts=8
# New ports collection makefile for: mahjong
# Date created: Jan 31, 2001
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mahjong
PORTVERSION= 1.6.3
CATEGORIES= games net
2003-04-03 11:22:02 +02:00
MASTER_SITES= http://www.stevens-bradfield.com/MahJong/Source/%SUBDIR%/
2004-04-19 13:01:06 +02:00
MASTER_SITE_SUBDIR= . Old
DISTNAME= mj-${PORTVERSION}-src
2001-05-19 07:46:19 +02:00
MAINTAINER= ports@FreeBSD.org
2003-02-20 18:32:26 +01:00
COMMENT= A networked Mah Jong program, together with a computer player
USE_PERL5_BUILD= yes
USE_GNOME= gtk12
USE_GMAKE= yes
MAKE_ENV= CCLINK="${CC}" CDEBUGFLAGS="${CFLAGS}" PERL="${PERL}"
MAN1= xmj.1
MLINKS= xmj.1 mj-player.1 \
xmj.1 mj-server.1
PLIST_FILES= bin/mj-server bin/mj-player bin/xmj
2002-01-05 12:52:36 +01:00
post-patch:
@${PERL} -pi -e 's|^CC|#CC|g ; \
s|^DESTDIR|#DESTDIR|g ; \
s|^CDEBUGFLAGS|#CDEBUGFLAGS|g ; \
s|^MAKE|#MAKE|g ; \
s|^PERL|#PERL|g ; \
s|^INST|#INST|g ; \
s|gtk-config|\$$\{GTK_CONFIG\}|g' ${WRKSRC}/Makefile
2002-01-05 12:52:36 +01:00
do-install:
.for file in mj-server mj-player xmj
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin/${file}
.endfor
${INSTALL_MAN} ${WRKSRC}/xmj.man ${MANPREFIX}/man/man1/xmj.1
.include <bsd.port.mk>