2004-03-10 00:30:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.23 2004/03/09 23:30:40 kristerw Exp $
|
1999-02-08 09:48:37 +01:00
|
|
|
# FreeBSD Id: Makefile,v 1.6 1999/01/27 07:41:12 fenner Exp
|
|
|
|
#
|
|
|
|
|
2004-03-08 04:04:36 +01:00
|
|
|
DISTNAME= gnuchess-5.07
|
2004-03-08 07:03:10 +01:00
|
|
|
PKGREVISION= 1
|
2000-03-26 10:29:25 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=chess/}
|
1999-02-08 09:48:37 +01:00
|
|
|
|
2003-07-17 23:31:04 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2000-03-26 10:29:25 +02:00
|
|
|
HOMEPAGE= http://www.gnu.org/software/chess/chess.html
|
2001-02-16 16:10:41 +01:00
|
|
|
COMMENT= GNU chess engine
|
1999-02-08 09:48:37 +01:00
|
|
|
|
2004-03-08 04:04:36 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
|
|
|
USE_BUILDLINK3= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2004-01-24 14:30:55 +01:00
|
|
|
USE_GNU_TOOLS+= make
|
1999-11-18 00:21:17 +01:00
|
|
|
|
2000-10-15 03:53:39 +02:00
|
|
|
BOOKDIR= ${PREFIX}/lib/gnuchess
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/gnuchess
|
|
|
|
|
2003-03-08 07:00:03 +01:00
|
|
|
# powerpc has problems with anything >= -O2 here
|
|
|
|
.if (${MACHINE_ARCH} == "powerpc")
|
2002-03-15 05:59:16 +01:00
|
|
|
CONFIGURE_ENV+= CFLAGS="-O -Winline -Wmissing-prototypes -funroll-loops"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= CFLAGS="-O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer"
|
|
|
|
.endif
|
|
|
|
|
2004-03-08 07:03:10 +01:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_MESSAGE.paths= "Fixing hardcoded paths."
|
|
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
SUBST_FILES.paths= src/book.h
|
|
|
|
SUBST_SED.paths= -e 's,/usr/lib/games/,${LOCALBASE}/lib/,g' \
|
|
|
|
|
2004-03-08 04:04:36 +01:00
|
|
|
post-install:
|
2000-10-15 03:53:39 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/README ${DOCDIR}
|
1999-02-08 09:48:37 +01:00
|
|
|
|
2004-03-10 00:30:40 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
1999-02-08 09:48:37 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|