pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/polyglot bootstrap-mk-files doesn't know about P...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b8b0f29096e8
branches:  trunk
changeset: 530164:b8b0f29096e8
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Jun 17 15:24:32 2007 +0000

description:
bootstrap-mk-files doesn't know about PROG_CXX. Just build
the sources directly and drop separate Makefile.

diffstat:

 games/polyglot/Makefile       |  14 +++++++++++++-
 games/polyglot/files/Makefile |  15 ---------------
 2 files changed, 13 insertions(+), 16 deletions(-)

diffs (47 lines):

diff -r 3e236a4993e9 -r b8b0f29096e8 games/polyglot/Makefile
--- a/games/polyglot/Makefile   Sun Jun 17 15:15:09 2007 +0000
+++ b/games/polyglot/Makefile   Sun Jun 17 15:24:32 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/10/02 20:06:07 rillig Exp $
+# $NetBSD: Makefile,v 1.2 2007/06/17 15:24:32 joerg Exp $
 #
 
 DISTNAME=              polyglot_14
@@ -26,6 +26,18 @@
 SUBST_FILES.ini=       fruit.ini
 SUBST_SED.ini=         -e 's,@LOCALBASE@,${LOCALBASE},g'
 
+SRCS=          adapter.cpp attack.cpp board.cpp book.cpp book_make.cpp \
+               book_merge.cpp colour.cpp engine.cpp epd.cpp fen.cpp    \
+               game.cpp hash.cpp io.cpp line.cpp list.cpp main.cpp     \
+               move.cpp move_do.cpp move_gen.cpp move_legal.cpp        \
+               option.cpp parse.cpp pgn.cpp piece.cpp posix.cpp        \
+               random.cpp san.cpp search.cpp square.cpp uci.cpp        \
+               util.cpp
+
+do-build:
+       cd ${WRKSRC}/src && \
+               ${CXX} ${CXXFLAGS} ${LDFLAGS} -lm -o polyglot ${SRCS}
+
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/src/polyglot ${PREFIX}/bin/
        ${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/polyglot/
diff -r 3e236a4993e9 -r b8b0f29096e8 games/polyglot/files/Makefile
--- a/games/polyglot/files/Makefile     Sun Jun 17 15:15:09 2007 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/10/02 20:06:07 rillig Exp $
-#
-
-PROG_CXX=      polyglot
-SRCS=          adapter.cpp attack.cpp board.cpp book.cpp book_make.cpp \
-               book_merge.cpp colour.cpp engine.cpp epd.cpp fen.cpp    \
-               game.cpp hash.cpp io.cpp line.cpp list.cpp main.cpp     \
-               move.cpp move_do.cpp move_gen.cpp move_legal.cpp        \
-               option.cpp parse.cpp pgn.cpp piece.cpp posix.cpp        \
-               random.cpp san.cpp search.cpp square.cpp uci.cpp        \
-               util.cpp
-LDADD=         -lm
-NOMAN=         yes
-
-.include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index