Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+11 -15
View File
@@ -1,34 +1,30 @@
# $NetBSD: Makefile,v 1.39 2014/10/09 14:06:33 wiz Exp $
# $NetBSD: Makefile,v 1.41 2016/07/07 14:49:25 jperkin Exp $
DISTNAME= gnuchess-5.07
PKGREVISION= 4
DISTNAME= gnuchess-6.2.2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU:=chess/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/chess/chess.html
COMMENT= GNU chess engine
LICENSE= gnu-gpl-v3
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= flex gmake
BOOKDIR= ${PREFIX}/lib/gnuchess
DOCDIR= ${PREFIX}/share/doc/gnuchess
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --infodir=${PREFIX}/${PKGINFODIR}
CONFIGURE_ARGS+= --disable-nls
# powerpc has problems with anything >= -O2 here
.if (${MACHINE_ARCH} == "powerpc")
CONFIGURE_ENV+= CFLAGS="-O -Winline -Wmissing-prototypes -funroll-loops"
.else
CONFIGURE_ENV+= CFLAGS="-O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer"
.endif
DOCDIR= ${PREFIX}/share/doc/gnuchess
INFO_FILES= yes
INSTALLATION_DIRS= ${DOCDIR}
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'
INSTALLATION_DIRS= ${DOCDIR}
SUBST_SED.paths= -e 's,/usr/lib/games/,${PREFIX}/lib/,g'
post-install:
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/README ${DESTDIR}${DOCDIR}