debian: update the package with new cmake PACKAGE_MODE option

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4290 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut@gmail.com 2011-02-12 10:40:26 +00:00
parent db948003df
commit ccc86cfaf8
3 changed files with 2 additions and 25 deletions

View File

@ -1,24 +0,0 @@
Debian specific
Always uses the same executable name for the build. Easier for the install script
Index: pcsx2.snapshot-3567/pcsx2/CMakeLists.txt
===================================================================
--- pcsx2.snapshot-3567.orig/pcsx2/CMakeLists.txt
+++ pcsx2.snapshot-3567/pcsx2/CMakeLists.txt
@@ -72,7 +72,7 @@
if(CMAKE_BUILD_TYPE STREQUAL Debug)
# executable name
- set(Output pcsx2-dbg)
+ set(Output pcsx2)
# add defines
add_definitions(${CommonFlags} ${DebugFlags} -DPCSX2_DEVBUILD -DPCSX2_DEBUG -DWX_PRECOMP)
@@ -82,7 +82,7 @@
if(CMAKE_BUILD_TYPE STREQUAL Devel)
# executable name
- set(Output pcsx2-dev)
+ set(Output pcsx2)
# add defines
add_definitions(${CommonFlags} ${OptimizationFlags} -DPCSX2_DEVBUILD -DWX_PRECOMP -DNDEBUG)

View File

@ -1,3 +1,2 @@
01_rename_binary_generated.patch
02_update_default_path.patch 02_update_default_path.patch
05_move_data_to_config.patch 05_move_data_to_config.patch

View File

@ -33,6 +33,8 @@ build-stamp:
-DL10N_PORTABLE=FALSE \ -DL10N_PORTABLE=FALSE \
-DUSER_CMAKE_C_FLAGS:STRING="$(USER_CFLAGS)" \ -DUSER_CMAKE_C_FLAGS:STRING="$(USER_CFLAGS)" \
-DUSER_CMAKE_CXX_FLAGS:STRING="$(USER_CXXFLAGS)" -DUSER_CMAKE_CXX_FLAGS:STRING="$(USER_CXXFLAGS)"
-DCMAKE_INSTALL_PREFIX="/usr" \
-DPACKAGE_MODE=TRUE
$(MAKE) $(MAKEFLAGS) $(MAKE) $(MAKEFLAGS)
touch build-stamp touch build-stamp