pkgsrc/games/netmaj/Makefile
jlam 37a5d3fb3a + Don't build our own, very old version of hacked BSD curses -- just
use other, better ones from pkgsrc through ncursesw/buildlink3.mk.

+ Add a configure script that lightly probes the system and write out
  some system-specific definitions for the Makefile.

This should fix PR pkg/29425.

+ Add necessary includes (<string.h> and <unistd.h>) to global.h to do
  silly C things like prototype functions before you use them.  Remove
  the unnecessary patches to lots of *.c files that added these same
  headers.

+ Include <string.h> in ss.c because it doesn't include global.h.

+ Move HTML documentation into ${PREFIX}/share/doc.

Bump the PKGREVISION to 2.
2008-02-29 20:53:02 +00:00

33 lines
883 B
Makefile

# $NetBSD: Makefile,v 1.14 2008/02/29 20:53:02 jlam Exp $
#
DISTNAME= netmaj-2.0.7
PKGREVISION= 2
CATEGORIES= games
MASTER_SITES= http://www.sfc.wide.ad.jp/~kusune/netmaj/files/
MAINTAINER= kei@NetBSD.org
HOMEPAGE= http://www.sfc.wide.ad.jp/~kusune/netmaj/
COMMENT= Mahjongg game with network and 1-4 player(s) support
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/netmaj
USE_TOOLS+= perl:run
HAS_CONFIGURE= yes
CONFIGURE_ENV+= OPSYS=${OPSYS:Q}
CONFIGURE_ENV+= CURSES_LIBS=${BUILDLINK_LDADD.ncursesw:Q}
INSTALL_TARGET= install install-pf
DOCDIR= ${PREFIX}/share/doc/netmaj
pre-configure:
cp ${FILESDIR}/configure.sh ${WRKSRC}/configure
chmod +x ${WRKSRC}/configure
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/html/* ${DESTDIR}${DOCDIR}
.include "../../devel/ncursesw/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"