openbsd-ports/games/connect4/Makefile
brad bf2c4bc9d1 - remove one unnecessary patch and replace with use of
MAKE_FLAGS/ALL_TARGET
- rename patches
- store the score file in /var/games instead of ${PREFIX}/lib/connect4
- add proper INSTALL/DEINSTALL scripts to setup the score file and to
remind to remove it on deinstallation.
2001-08-11 03:17:12 +00:00

35 lines
916 B
Makefile

# $OpenBSD: Makefile,v 1.17 2001/08/11 03:17:12 brad Exp $
COMMENT= "curses version of the classic game"
DISTNAME= connect4
PKGNAME= connect4-3.2
CATEGORIES= games
NEED_VERSION= 1.413
MASTER_SITES= ftp://scitsc.wlv.ac.uk/pub/infomagic/usenet/games/volume6/
EXTRACT_SUFX= # empty
EXTRACT_CASES= connect4) ${_SED_FIX_SHAR} ${FULLDISTDIR}/$$archive | /bin/sh;;
MAINTAINER= Angelos D. Keromytis <angelos@openbsd.org>
# License: NONE
PERMIT_PACKAGE_CDROM= "no license"
PERMIT_PACKAGE_FTP= "no license"
PERMIT_DISTFILES_CDROM= "no license"
PERMIT_DISTFILES_FTP= "no license"
MAKE_FLAGS= CFLAGS='${CFLAGS} -DSCOREFILE=\"/var/games/connect4.scores\"'
ALL_TARGET= c4
WRKDIST= ${WRKDIR}
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/c4 ${PREFIX}/bin/connect4
@chown root.games ${PREFIX}/bin/connect4
@chmod 2755 ${PREFIX}/bin/connect4
${INSTALL_MAN} ${FILESDIR}/connect4.6 ${PREFIX}/man/man6
.include <bsd.port.mk>