wok-6.x diff bastet/stuff/install.patch @ rev 23341

updated perl-html-tree (4.1 -> 5.07)
author Hans-G?nter Theisgen
date Tue Mar 31 09:01:44 2020 +0100 (2020-03-31)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/bastet/stuff/install.patch	Tue Mar 31 09:01:44 2020 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +--- a/Makefile
     1.5 ++++ b/Makefile
     1.6 +@@ -1,15 +1,26 @@
     1.7 ++prefix = /usr
     1.8 ++exec_prefix = ${prefix}
     1.9 ++datarootdir = ${prefix}/share
    1.10 ++bindir = ${exec_prefix}/games
    1.11 ++mandir = ${datarootdir}/man/man6
    1.12 ++appdir = ${datarootdir}/applications
    1.13 ++icondir = ${datarootdir}/icons/hicolor
    1.14 ++icon16dir = ${icondir}/16x16/apps
    1.15 ++icon48dir = ${icondir}/48x48/apps
    1.16 ++scoredir = /var/games
    1.17 ++
    1.18 + SOURCES=Ui.cpp Block.cpp Well.cpp BlockPosition.cpp Config.cpp BlockChooser.cpp BastetBlockChooser.cpp
    1.19 + MAIN=main.cpp
    1.20 + TESTS=Test.cpp
    1.21 + PROGNAME=bastet
    1.22 + BOOST_PO?=-lboost_program_options
    1.23 +-LDFLAGS+=-lncurses $(BOOST_PO)
    1.24 ++LDFLAGS+=-lncurses -ltinfo $(BOOST_PO)
    1.25 + #CXXFLAGS+=-ggdb -Wall
    1.26 + CXXFLAGS+=-DNDEBUG -Wall
    1.27 + #CXXFLAGS+=-pg
    1.28 + #LDFLAGS+=-pg
    1.29 + 
    1.30 +-all: $(PROGNAME) $(TESTS:.cpp=)
    1.31 ++all: depend $(PROGNAME) $(TESTS:.cpp=)
    1.32 + 
    1.33 + Test: $(SOURCES:.cpp=.o) $(TESTS:.cpp=.o)
    1.34 + 	$(CXX) -ggdb -o $(TESTS:.cpp=) $(SOURCES:.cpp=.o) $(TESTS:.cpp=.o) $(LDFLAGS) 
    1.35 +@@ -27,3 +38,13 @@
    1.36 + 
    1.37 + mrproper: clean
    1.38 + 	rm -f *~
    1.39 ++
    1.40 ++install:
    1.41 ++	install -d $(DESTDIR)${bindir} $(DESTDIR)${scoredir} $(DESTDIR)${appdir} \
    1.42 ++		$(DESTDIR)${icon16dir} $(DESTDIR)${icon48dir} $(DESTDIR)${mandir}
    1.43 ++	install -m0755 bastet $(DESTDIR)${bindir}
    1.44 ++	install -m0666 /dev/null $(DESTDIR)${scoredir}/bastet.scores2
    1.45 ++	install -m0644 bastet.desktop $(DESTDIR)${appdir}
    1.46 ++	install -m0644 bastet16.png $(DESTDIR)${icon16dir}/bastet.png
    1.47 ++	install -m0644 bastet48.png $(DESTDIR)${icon48dir}/bastet.png
    1.48 ++	install -m0644 bastet.6 $(DESTDIR)${mandir}