dwarf-fortress-packages.dfhack: 2016-03-03 -> 0.42.06-r1

This commit is contained in:
Nikolay Amiantov 2016-04-30 03:02:26 +03:00
parent d0630da09e
commit 3c627be4be
2 changed files with 14 additions and 45 deletions

View File

@ -5,9 +5,11 @@
}: }:
let let
rev = "5e2fc5662115499c10bfcd8a6105a1efe4de081c";
xmlRev = "f371e293002f8f6d1e4704cc5869ca07ccf6c4d5";
dfVersion = "0.42.06"; dfVersion = "0.42.06";
version = "${dfVersion}-r1";
rev = "refs/tags/${version}";
# revision of library/xml submodule
xmlRev = "98cc1e01886aaea161d651cf97229ad08e9782b0";
fakegit = writeScriptBin "git" '' fakegit = writeScriptBin "git" ''
#! ${stdenv.shell} #! ${stdenv.shell}
@ -28,13 +30,12 @@ let
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
name = "dfhack-${version}"; name = "dfhack-${version}";
version = "2016-03-03";
# Beware of submodules # Beware of submodules
src = fetchgit { src = fetchgit {
url = "https://github.com/DFHack/dfhack"; url = "https://github.com/DFHack/dfhack";
inherit rev; inherit rev;
sha256 = "143zkx6hqpqxjhjd1bllg2kfia215x63zifkhgzycg49kw4wkxi5"; sha256 = "0h9y9z4d9lirgpcvj5r2znmfi2avdrgrffi9p63gxp1a3mv9fdm1";
}; };
patches = [ ./use-system-libraries.patch ]; patches = [ ./use-system-libraries.patch ];

View File

@ -1,22 +1,8 @@
From 1196fcb987b6aadb49075d817b3615bf8a6d7d51 Mon Sep 17 00:00:00 2001
From: Nikolay Amiantov <ab@fmap.me>
Date: Wed, 6 Jan 2016 03:07:20 +0300
Subject: [PATCH 2/2] Use as much system libraries as possible
---
CMakeLists.txt | 5 -----
depends/CMakeLists.txt | 3 ---
library/CMakeLists.txt | 10 +++++-----
plugins/CMakeLists.txt | 4 ++--
plugins/mapexport/CMakeLists.txt | 4 ++--
plugins/stockpiles/CMakeLists.txt | 4 ++--
6 files changed, 11 insertions(+), 19 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1933390..d871df4 100644 index 46fd565..254c3c0 100644
--- a/CMakeLists.txt --- a/CMakeLists.txt
+++ b/CMakeLists.txt +++ b/CMakeLists.txt
@@ -152,8 +152,6 @@ ELSEIF(MSVC) @@ -160,8 +160,6 @@ ELSEIF(MSVC)
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Od") SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Od")
ENDIF() ENDIF()
@ -25,9 +11,9 @@ index 1933390..d871df4 100644
ADD_DEFINITIONS(-DLUA_BUILD_AS_DLL) ADD_DEFINITIONS(-DLUA_BUILD_AS_DLL)
if(APPLE) if(APPLE)
@@ -173,11 +171,8 @@ if(NOT UNIX) @@ -182,11 +180,8 @@ else()
endif()
set(ZLIB_ROOT /usr/lib/i386-linux-gnu) set(ZLIB_ROOT /usr/lib/i386-linux-gnu)
endif()
find_package(ZLIB REQUIRED) find_package(ZLIB REQUIRED)
-include_directories(depends/protobuf) -include_directories(depends/protobuf)
include_directories(depends/lua/include) include_directories(depends/lua/include)
@ -53,10 +39,10 @@ index bf0345b..2a1a852 100644
OPTION(CLSOCKET_SHARED "Build clsocket lib as shared." OFF) OPTION(CLSOCKET_SHARED "Build clsocket lib as shared." OFF)
OPTION(CLSOCKET_DEP_ONLY "Build for use inside other CMake projects as dependency." ON) OPTION(CLSOCKET_DEP_ONLY "Build for use inside other CMake projects as dependency." ON)
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
index 5071d9e..d346d1e 100644 index 54300ec..128bfd1 100644
--- a/library/CMakeLists.txt --- a/library/CMakeLists.txt
+++ b/library/CMakeLists.txt +++ b/library/CMakeLists.txt
@@ -203,10 +203,10 @@ LIST(APPEND PROJECT_SOURCES ${PROJECT_PROTO_SRCS}) @@ -223,10 +223,10 @@ LIST(APPEND PROJECT_SOURCES ${PROJECT_PROTO_SRCS})
ADD_CUSTOM_COMMAND( ADD_CUSTOM_COMMAND(
OUTPUT ${PROJECT_PROTO_SRCS} ${PROJECT_PROTO_HDRS} OUTPUT ${PROJECT_PROTO_SRCS} ${PROJECT_PROTO_HDRS}
@ -69,7 +55,7 @@ index 5071d9e..d346d1e 100644
) )
# Merge headers into sources # Merge headers into sources
@@ -249,12 +249,12 @@ IF(UNIX) @@ -269,12 +269,12 @@ IF(UNIX)
ENDIF() ENDIF()
IF(APPLE) IF(APPLE)
@ -86,10 +72,10 @@ index 5071d9e..d346d1e 100644
ADD_LIBRARY(dfhack-version STATIC DFHackVersion.cpp) ADD_LIBRARY(dfhack-version STATIC DFHackVersion.cpp)
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt
index 9781401..ece508c 100644 index dd1c634..7bd8c17 100644
--- a/plugins/CMakeLists.txt --- a/plugins/CMakeLists.txt
+++ b/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt
@@ -69,11 +69,11 @@ STRING(REPLACE ".proto" ".pb.h" PROJECT_PROTO_HDRS "${PROJECT_PROTOS}") @@ -47,11 +47,11 @@ STRING(REPLACE ".proto" ".pb.h" PROJECT_PROTO_HDRS "${PROJECT_PROTOS}")
ADD_CUSTOM_COMMAND( ADD_CUSTOM_COMMAND(
OUTPUT ${PROJECT_PROTO_SRCS} ${PROJECT_PROTO_HDRS} OUTPUT ${PROJECT_PROTO_SRCS} ${PROJECT_PROTO_HDRS}
@ -103,21 +89,6 @@ index 9781401..ece508c 100644
) )
add_custom_target(generate_proto DEPENDS ${PROJECT_PROTO_SRCS} ${PROJECT_PROTO_HDRS}) add_custom_target(generate_proto DEPENDS ${PROJECT_PROTO_SRCS} ${PROJECT_PROTO_HDRS})
diff --git a/plugins/mapexport/CMakeLists.txt b/plugins/mapexport/CMakeLists.txt
index 429507a..7e2390a 100644
--- a/plugins/mapexport/CMakeLists.txt
+++ b/plugins/mapexport/CMakeLists.txt
@@ -32,8 +32,8 @@ LIST(APPEND PROJECT_SRCS ${PROJECT_HDRS})
#Generate sources from our proto files and store them in the source tree
ADD_CUSTOM_COMMAND(
OUTPUT ${PROJECT_PROTO_SRCS} ${PROJECT_PROTO_HDRS}
-COMMAND protoc-bin -I=${CMAKE_CURRENT_SOURCE_DIR}/proto/ --cpp_out=${CMAKE_CURRENT_SOURCE_DIR}/proto/ ${PROJECT_PROTOS}
-DEPENDS protoc-bin ${PROJECT_PROTOS}
+COMMAND protoc -I=${CMAKE_CURRENT_SOURCE_DIR}/proto/ --cpp_out=${CMAKE_CURRENT_SOURCE_DIR}/proto/ ${PROJECT_PROTOS}
+DEPENDS ${PROJECT_PROTOS}
)
IF(WIN32)
diff --git a/plugins/stockpiles/CMakeLists.txt b/plugins/stockpiles/CMakeLists.txt diff --git a/plugins/stockpiles/CMakeLists.txt b/plugins/stockpiles/CMakeLists.txt
index 713c3d6..dd2d4cb 100644 index 713c3d6..dd2d4cb 100644
--- a/plugins/stockpiles/CMakeLists.txt --- a/plugins/stockpiles/CMakeLists.txt
@ -133,6 +104,3 @@ index 713c3d6..dd2d4cb 100644
) )
IF(WIN32) IF(WIN32)
--
2.6.3