2013-09-12 02:48:38 +02:00
|
|
|
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
2001-01-30 23:02:46 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mahjong
|
2012-05-10 14:54:00 +02:00
|
|
|
PORTVERSION= 1.12.1
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 1
|
2001-01-30 23:02:46 +01:00
|
|
|
CATEGORIES= games net
|
2011-08-09 18:27:36 +02:00
|
|
|
MASTER_SITES= http://mahjong.julianbradfield.org/Source/%SUBDIR%/
|
2004-04-19 13:01:06 +02:00
|
|
|
MASTER_SITE_SUBDIR= . Old
|
2001-01-30 23:02:46 +01:00
|
|
|
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
|
2001-01-30 23:02:46 +01:00
|
|
|
|
2011-11-25 17:30:49 +01:00
|
|
|
LICENSE= GPLv2 # (or later)
|
2011-08-02 19:04:00 +02:00
|
|
|
|
2013-09-12 02:48:38 +02:00
|
|
|
USES= perl5 gmake pkgconfig
|
2011-08-09 18:27:36 +02:00
|
|
|
USE_GNOME= gtk20
|
2013-08-03 15:44:00 +02:00
|
|
|
USE_PERL5= build
|
2011-11-25 17:30:49 +01:00
|
|
|
MAKE_ENV= CCLINK="${CC}" CDEBUGFLAGS="${CFLAGS}" PERL="${PERL}" \
|
|
|
|
INCLUDES="-I."
|
2001-01-30 23:02:46 +01:00
|
|
|
|
2002-03-12 01:59:55 +01:00
|
|
|
MAN1= xmj.1
|
|
|
|
MLINKS= xmj.1 mj-player.1 \
|
|
|
|
xmj.1 mj-server.1
|
2004-04-14 20:49:56 +02:00
|
|
|
PLIST_FILES= bin/mj-server bin/mj-player bin/xmj
|
2001-01-30 23:02:46 +01:00
|
|
|
|
2013-09-20 19:36:33 +02:00
|
|
|
NO_STAGE= yes
|
2002-01-05 12:52:36 +01:00
|
|
|
post-patch:
|
2011-11-25 17:30:49 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^CC|#CC|g ; \
|
2002-03-12 01:59:55 +01:00
|
|
|
s|^DESTDIR|#DESTDIR|g ; \
|
|
|
|
s|^CDEBUGFLAGS|#CDEBUGFLAGS|g ; \
|
|
|
|
s|^MAKE|#MAKE|g ; \
|
|
|
|
s|^PERL|#PERL|g ; \
|
2011-11-25 17:30:49 +01:00
|
|
|
s|^INST|#INST|g ; \
|
|
|
|
s|make |$$(MAKE) |g' ${WRKSRC}/Makefile.in
|
2012-06-03 09:51:18 +02:00
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|SOL_TCP|IPPROTO_TCP|' ${WRKSRC}/sysdep.c
|
2011-11-25 17:30:49 +01:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
|
|
|
|
Makefile.in Makefile)
|
2002-01-05 12:52:36 +01:00
|
|
|
|
2003-10-10 19:49:41 +02: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
|
|
|
|
|
2001-01-30 23:02:46 +01:00
|
|
|
.include <bsd.port.mk>
|