diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2011-02-15 07:38:32 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2011-02-15 07:38:32 +0000 |
commit | 1910799fd9b0feb74dc055d4d074122a435f1241 (patch) | |
tree | eb0650f71700222b4b7c855806601251d9a2533d /games/freecell-solver | |
parent | a62f11ae4770fd2ccf3698c014c169bb76a75fea (diff) | |
download | ports-1910799fd9b0feb74dc055d4d074122a435f1241.tar.gz ports-1910799fd9b0feb74dc055d4d074122a435f1241.zip |
Notes
Diffstat (limited to 'games/freecell-solver')
-rw-r--r-- | games/freecell-solver/Makefile | 30 | ||||
-rw-r--r-- | games/freecell-solver/distinfo | 5 | ||||
-rw-r--r-- | games/freecell-solver/files/patch-CMakeLists.txt | 48 | ||||
-rw-r--r-- | games/freecell-solver/pkg-plist | 3 |
4 files changed, 39 insertions, 47 deletions
diff --git a/games/freecell-solver/Makefile b/games/freecell-solver/Makefile index c96800699e9d..c1bac47c3d36 100644 --- a/games/freecell-solver/Makefile +++ b/games/freecell-solver/Makefile @@ -7,7 +7,7 @@ # PORTNAME= freecell-solver -PORTVERSION= 3.2.0 +PORTVERSION= 3.6.0 CATEGORIES= games MASTER_SITES= http://freebsd.unixfreunde.de/sources/ \ BERLIOS/fc-solve @@ -15,15 +15,16 @@ MASTER_SITES= http://freebsd.unixfreunde.de/sources/ \ MAINTAINER= ports@FreeBSD.org COMMENT= A program that automatically solves games of Freecell -OPTIONS= JUDY "Use libJudy for states and stacks storage" off \ - REDBLACK "Use libredblack for states and stacks storage" off \ - TCMALLOC "Use Google's TCMalloc" off +LICENSE= MIT + +OPTIONS= TCMALLOC "Use Google's TCMalloc" off USE_BZIP2= yes USE_PERL5_BUILD= yes USE_CMAKE= yes CMAKE_USE_PTHREAD= yes USE_LDCONFIG= yes +MAKE_JOBS_SAFE= yes MAN6= fc-solve-board_gen.6 \ fc-solve.6 \ @@ -37,27 +38,16 @@ CFLAGS+= -I${LOCALBASE}/include .include <bsd.port.pre.mk> -.if defined(WITH_JUDY) && defined(WITH_REDBLACK) -IGNORE= you cannot enable both JUDY and REDBLACK -.endif - -.if defined(WITH_JUDY) -LIB_DEPENDS+= Judy.1:${PORTSDIR}/devel/judy -CMAKE_ARGS+= -DFCS_STACK_STORAGE:STRING="FCS_STACK_STORAGE_JUDY" \ - -DFCS_STATE_STORAGE:STRING="FCS_STATE_STORAGE_JUDY" -.endif - -.if defined(WITH_REDBLACK) -LIB_DEPENDS+= redblack.2:${PORTSDIR}/devel/libredblack -CMAKE_ARGS+= -DFCS_STACK_STORAGE:STRING="FCS_STACK_STORAGE_LIBREDBLACK_TREE" \ - -DFCS_STATE_STORAGE:STRING="FCS_STATE_STORAGE_LIBREDBLACK_TREE" -.endif - .if defined(WITH_TCMALLOC) LIB_DEPENDS+= tcmalloc.0:${PORTSDIR}/devel/google-perftools CMAKE_ARGS+= -DFCS_USE_TCMALLOC:BOOL=ON .endif +post-patch: + @${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' \ + ${WRKSRC}/Presets/presets/children-playing-ball.sh \ + ${WRKSRC}/Presets/presets/sentient-pearls.sh + post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} diff --git a/games/freecell-solver/distinfo b/games/freecell-solver/distinfo index a8726854e8c2..bab1301d9dea 100644 --- a/games/freecell-solver/distinfo +++ b/games/freecell-solver/distinfo @@ -1,3 +1,2 @@ -MD5 (freecell-solver-3.2.0.tar.bz2) = 5122582b48fe532c7eeb2aac3a1d3308 -SHA256 (freecell-solver-3.2.0.tar.bz2) = 4b75a859044a8162d8ab60d01e37561225a132580d4c6eea60d4c5fe872a9270 -SIZE (freecell-solver-3.2.0.tar.bz2) = 349558 +SHA256 (freecell-solver-3.6.0.tar.bz2) = 958162318419e3a914bccd149f29b79e74f82f9edb79083745f3572c2576ca50 +SIZE (freecell-solver-3.6.0.tar.bz2) = 397996 diff --git a/games/freecell-solver/files/patch-CMakeLists.txt b/games/freecell-solver/files/patch-CMakeLists.txt index 196099cfc388..ec55149d988a 100644 --- a/games/freecell-solver/files/patch-CMakeLists.txt +++ b/games/freecell-solver/files/patch-CMakeLists.txt @@ -1,37 +1,37 @@ ---- CMakeLists.txt.orig 2010-03-28 00:13:11.000000000 +0900 -+++ CMakeLists.txt 2010-03-31 04:13:01.000000000 +0900 -@@ -154,6 +154,8 @@ - SET (FCS_STACK_STORAGE_LIBAVL2_TREE_TYPE "avl" CACHE STRING "The libavl2 tree type used for the stack storage. Ignored if not set to libavl2") - SET (LIBAVL2_SOURCE_DIR "/usr/src/avl-2.0.3" CACHE STRING "The location of the libavl2 source tree (from which files are copied)") +--- CMakeLists.txt.orig 2011-02-01 21:34:27.000000000 +0100 ++++ CMakeLists.txt 2011-02-08 20:56:22.000000000 +0100 +@@ -168,6 +168,8 @@ + SET (FCS_TRACE_MEM "" CACHE BOOL "Enable memory tracing in fc-solve.") + SET (FCS_MAX_NUM_SCANS_BUCKETS "" CACHE STRING "The number of scan_visited buckets in fc-solve (safe to ignore).") +SET (FCS_USE_TCMALLOC "" CACHE BOOL "Use tcmalloc") + IF (NOT (STATES_TYPE MATCHES "^(INDIRECT_STACK_STATES|COMPACT_STATES|DEBUG_STATES)$")) MESSAGE(FATAL_ERROR "STATES_TYPE should be ('INDIRECT_STACK_STATES', 'COMPACT_STATES' or 'DEBUG_STATES')") ENDIF(NOT (STATES_TYPE MATCHES "^(INDIRECT_STACK_STATES|COMPACT_STATES|DEBUG_STATES)$")) -@@ -308,7 +310,7 @@ +@@ -362,7 +364,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) - SET(COMPILER_FLAGS_TO_CHECK + SET(COMPILER_FLAGS_TO_CHECK - "-Wall" "-Werror=implicit-function-declaration" "-fvisibility=hidden" + "-Wall" ) IF (CPU_ARCH) -@@ -383,7 +385,11 @@ - # Optionally link against Google's TCMalloc if it's available: - # http://goog-perftools.sourceforge.net/ - # This gives better performance for the threaded programs. -- FIND_LIBRARY(LIBTCMALLOC_LIB tcmalloc) -+ IF (FCS_USE_TCMALLOC) -+ -+ FIND_LIBRARY(LIBTCMALLOC_LIB tcmalloc) -+ -+ ENDIF (FCS_USE_TCMALLOC) +@@ -461,7 +463,11 @@ + # Optionally link against Google's TCMalloc if it's available: + # http://goog-perftools.sourceforge.net/ + # This gives better performance for the threaded programs. +- FIND_LIBRARY(LIBTCMALLOC_LIB tcmalloc) ++ IF (FCS_USE_TCMALLOC) ++ ++ FIND_LIBRARY(LIBTCMALLOC_LIB tcmalloc) ++ ++ ENDIF (FCS_USE_TCMALLOC) - IF(LIBTCMALLOC_LIB STREQUAL "LIBTCMALLOC_LIB-NOTFOUND") - # Do nothing. -@@ -426,7 +432,6 @@ + IF(LIBTCMALLOC_LIB STREQUAL "LIBTCMALLOC_LIB-NOTFOUND") + # Do nothing. +@@ -496,7 +502,6 @@ IF (CMAKE_USE_PTHREADS_INIT) FCS_ADD_EXEC(freecell-solver-multi-thread-solve threaded_range_solver.c) @@ -39,7 +39,7 @@ ENDIF (CMAKE_USE_PTHREADS_INIT) IF (UNIX) -@@ -537,14 +542,6 @@ +@@ -632,14 +637,6 @@ INSTALL( FILES @@ -54,11 +54,11 @@ "fcs_cl.h" "fcs_enums.h" "fcs_move.h" -@@ -558,7 +555,7 @@ +@@ -654,7 +651,7 @@ FILES "${CMAKE_CURRENT_BINARY_DIR}/lib${CPACK_PACKAGE_NAME}.pc" - DESTINATION -- "lib/pkgconfig" + DESTINATION +- "lib${LIB_SUFFIX}/pkgconfig" + "libdata/pkgconfig" ) diff --git a/games/freecell-solver/pkg-plist b/games/freecell-solver/pkg-plist index 7b31ac25cc97..29e695b550e0 100644 --- a/games/freecell-solver/pkg-plist +++ b/games/freecell-solver/pkg-plist @@ -9,6 +9,7 @@ bin/make-microsoft-freecell-board bin/make_pysol_freecell_board.py bin/pi-make-microsoft-freecell-board include/freecell-solver/fcs_cl.h +include/freecell-solver/fcs_dllexport.h include/freecell-solver/fcs_enums.h include/freecell-solver/fcs_move.h include/freecell-solver/fcs_user.h @@ -32,11 +33,13 @@ libdata/pkgconfig/libfreecell-solver.pc %%DATADIR%%/presets/children-playing-ball.sh %%DATADIR%%/presets/cool-jives.sh %%DATADIR%%/presets/crooked-nose.sh +%%DATADIR%%/presets/enlightened-ostrich.sh %%DATADIR%%/presets/foss-nessy.sh %%DATADIR%%/presets/fools-gold.sh %%DATADIR%%/presets/gooey-unknown-thing.sh %%DATADIR%%/presets/hello-world.sh %%DATADIR%%/presets/john_galt_line-500.sh +%%DATADIR%%/presets/maliciously-obscure.sh %%DATADIR%%/presets/rin-tin-tin.sh %%DATADIR%%/presets/sand-stone.sh %%DATADIR%%/presets/sentient-pearls.sh |