summaryrefslogtreecommitdiff
path: root/games/netmaj/Makefile
blob: 2f5d8210c04f541175b349d5d87fbb7c1d4da58a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $NetBSD: Makefile,v 1.29 2021/05/24 19:52:17 wiz Exp $
#

DISTNAME=		netmaj-2.0.7
PKGREVISION=		13
CATEGORIES=		games
MASTER_SITES=		http://www.sfc.wide.ad.jp/~kusune/netmaj/files/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.sfc.wide.ad.jp/~kusune/netmaj/
COMMENT=		Mahjongg game with network and 1-4 player(s) support

WRKSRC=			${WRKDIR}/netmaj
USE_TOOLS+=		perl:run
HAS_CONFIGURE=		yes
CONFIGURE_ENV+=		OPSYS=${OPSYS}
CONFIGURE_ENV+=		CURSES_LIBS=${BUILDLINK_LDADD.ncursesw:Q}

INSTALL_MAKE_FLAGS+=	PERL=${PERL5:Q}
INSTALL_TARGET=		install install-pf
DOCDIR=			${PREFIX}/share/doc/netmaj

pre-configure:
	cp ${FILESDIR}/configure.sh ${WRKSRC}/configure
	chmod +x ${WRKSRC}/configure
	chmod a-x ${WRKSRC}/auto.pf

post-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/html/* ${DESTDIR}${DOCDIR}

.include "../../devel/ncursesw/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"