creffett    15/04/19 01:40:24

  Added:                Makefile dwarf-fortress
  Log:
  Commit new proxy-maintained ebuild wrt bug 290294
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
0xD1BAB6B528DB029C)

Revision  Changes    Path
1.1                  games-roguelike/dwarf-fortress/files/Makefile

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/dwarf-fortress/files/Makefile?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/dwarf-fortress/files/Makefile?rev=1.1&content-type=text/plain

Index: Makefile
===================================================================
# Copyright 2014-2015 Alex Xu (Hello71)
# Distributed under the terms of the GNU General Public License v2

PKG_CONFIG ?= pkg-config
PKG_CONFIG_PATH ?= /usr/lib32/pkgconfig:/usr/lib/pkgconfig
PKG_CONFIG := PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG)

SRCS := g_src/basics.cpp g_src/command_line.cpp g_src/enabler.cpp \
        g_src/files.cpp g_src/find_files_posix.cpp g_src/graphics.cpp \
        g_src/init.cpp g_src/interface.cpp g_src/keybindings.cpp \
        g_src/music_and_sound_openal.cpp g_src/random.cpp g_src/textlines.cpp \
        g_src/enabler_input.cpp g_src/KeybindingScreen.cpp \
        g_src/win32_compat.cpp g_src/textures.cpp g_src/resize++.cpp \
        g_src/renderer_offscreen.cpp g_src/ttf_manager.cpp
OBJS := $(SRCS:.cpp=.o)

BLIBS := ncursesw openal sndfile
LIBS := glew glu gtk+-2.0 sdl SDL_image SDL_ttf zlib
CXXFLAGS ?= -O2 -pipe -Wall -Wextra
CXXFLAGS += -m32 $(shell $(PKG_CONFIG) --cflags $(BLIBS) $(LIBS)) -Dunix 
-Dlinux -fPIC -std=c++11
LDLIBS := $(shell $(PKG_CONFIG) --libs $(LIBS))

LG := libs/libgraphics.so

all: $(LG)
$(LG): $(OBJS)
        $(LINK.cpp) -shared $^ $(LDLIBS) -o $@

clean:
        $(RM) $(LG) $(OBJS)

.PHONY: clean



1.1                  games-roguelike/dwarf-fortress/files/dwarf-fortress

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/dwarf-fortress/files/dwarf-fortress?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/dwarf-fortress/files/dwarf-fortress?rev=1.1&content-type=text/plain

Index: dwarf-fortress
===================================================================
#!/bin/sh

gamesdir=/opt/dwarf-fortress
install="$HOME/.dwarf-fortress"

do_install() {
        cp -rn "$gamesdir"/data "$install"/
        # DF gets unhappy when this is out of sync
        cp -f "$gamesdir"/data/index "$install"/data/
        cp -rsn "$gamesdir"/* "$install"/
}

if [[ -d "$install" ]]; then
        # delete dangling symlinks
        find -L "$install/" -type l -delete
        # ignore "are the same file" errors
        do_install 2>/dev/null
else
        mkdir "$install" || exit
        do_install || exit
fi

cd "$install" || exit
exec ./libs/Dwarf_Fortress "$@"




Reply via email to