summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjperkin <jperkin>2016-07-07 14:49:25 +0000
committerjperkin <jperkin>2016-07-07 14:49:25 +0000
commit1e51ed8269204a1f63553a6f939eca11aec398de (patch)
tree8f66f5cf757439cf430caadc9c887263cfe7e46d /games
parentc53258342cfe214e0ddb09cdc374295211b8f399 (diff)
downloadpkgsrc-1e51ed8269204a1f63553a6f939eca11aec398de.tar.gz
Disable NLS for consistent PLIST handling. Remove bogus and obsolete CFLAGS
settings. Clean up variable assignments. No change to existing packages.
Diffstat (limited to 'games')
-rw-r--r--games/gnuchess/Makefile22
1 files changed, 7 insertions, 15 deletions
diff --git a/games/gnuchess/Makefile b/games/gnuchess/Makefile
index 726be7770fc..707a8e5fded 100644
--- a/games/gnuchess/Makefile
+++ b/games/gnuchess/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2016/05/03 01:46:15 mef Exp $
+# $NetBSD: Makefile,v 1.41 2016/07/07 14:49:25 jperkin Exp $
DISTNAME= gnuchess-6.2.2
CATEGORIES= games
@@ -9,22 +9,16 @@ HOMEPAGE= http://www.gnu.org/software/chess/chess.html
COMMENT= GNU chess engine
LICENSE= gnu-gpl-v3
-GNU_CONFIGURE= yes
-USE_TOOLS+= flex gmake
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}
-INFO_FILES= yes
+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.
@@ -32,8 +26,6 @@ SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= src/book.h
SUBST_SED.paths= -e 's,/usr/lib/games/,${PREFIX}/lib/,g'
-INSTALLATION_DIRS= ${DOCDIR}
-
post-install:
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/README ${DESTDIR}${DOCDIR}