Files
haikuports/haiku-apps/paladin/patches/paladin-1.3.patch

117 lines
4.0 KiB
Diff

diff -urN Paladin-1.3.src/PalEdit/Jamfile PalEdit-jam/Jamfile
--- Paladin-1.3.src/PalEdit/Jamfile 1970-01-01 00:00:00.000000000 +0000
+++ Paladin-1.3.src/PalEdit-jam/Jamfile 2010-09-02 05:47:38.009175040 +0000
@@ -0,0 +1,10 @@
+SubDir TOP ;
+
+SubInclude TOP rez ;
+SubInclude TOP Sources ;
+SubInclude TOP Extensions ;
+SubInclude TOP Resources ;
+SubInclude TOP Languages ;
+
+MakeDistro distro ;
+
diff -urN Paladin-1.3.src/PalEdit/Jamrules Paladin-1.3.src/PalEdit-jam/Jamrules
--- Paladin-1.3.src/PalEdit/Jamrules 1970-01-01 00:00:00.000000000 +0000
+++ Paladin-1.3.src/PalEdit-jam/Jamrules 2010-09-02 05:47:45.931921920 +0000
@@ -0,0 +1,67 @@
+
+# The directories used by the build.
+BUILD_DIR = [ FDirName $(TOP) build ] ;
+GENERATED_DIR = [ FDirName $(TOP) generated ] ;
+DISTRO_DIR = [ FDirName $(TOP) generated distro ] ;
+
+# First find out which gcc version the platform uses.
+IS_GCC_4_PLATFORM = ;
+if $(OS) = HAIKU {
+ # Only Haiku might use gcc 4. We use the existence of a libstdc++.r4.so in
+ # /boot/develop/lib/x86 to judge whether this is a BeOS compatible and thus
+ # gcc 2 platform. This is not entirely correct, but should be good enough
+ # for the time being.
+ local hasLibStdC++.R4 = [ Glob /boot/develop/lib/x86 : libstdc++.r4.so ] ;
+ if ! $(hasLibStdC++.R4) {
+ IS_GCC_4_PLATFORM = 1 ;
+ }
+}
+
+include [ FDirName $(BUILD_DIR) HelperRules ] ;
+include [ FDirName $(BUILD_DIR) ConfigRules ] ;
+include [ FDirName $(BUILD_DIR) OverriddenJamRules ] ;
+include [ FDirName $(BUILD_DIR) MainBuildRules ] ;
+include [ FDirName $(BUILD_DIR) BuildSettings ] ;
+
+# Include UserBuildConfig.
+{
+ local userBuildConfig = [ GLOB $(BUILD_DIR) : UserBuildConfig ] ;
+ if $(userBuildConfig)
+ {
+ LOCATE on UserBuildConfig = $(BUILD_DIR) ;
+ include UserBuildConfig ;
+ }
+}
+
+# default to strip generated apps if not specified otherwise:
+STRIP_APPS ?= 1 ;
+
+# Cache files for header scanning and jamfile caching.
+HCACHEFILE = header_cache ;
+JCACHEFILE = jamfile_cache ;
+LOCATE on $(HCACHEFILE) $(JCACHEFILE) = $(GENERATED_DIR) ;
+
+
+rule MakeDistro
+{
+ # MakeDistro <target>
+
+ local target = $1 ;
+
+ NotFile $(target) ;
+ Always $(target) ;
+}
+
+actions MakeDistro
+{
+ echo "making distro $(DISTRO_DIR)" ;
+ rm -rf $(DISTRO_DIR)/Documentation ;
+ mkdir $(DISTRO_DIR)/Documentation ;
+ cp -a $(TOP)/doc/*.html $(DISTRO_DIR)/Documentation/ ;
+ mkdir $(DISTRO_DIR)/Documentation/gifs ;
+ cp -a $(TOP)/doc/gifs/*.gif $(DISTRO_DIR)/Documentation/gifs/ ;
+ ln -sf Documentation/index.html $(DISTRO_DIR)/Documentation.html ;
+ ln -sfn $(COMMON_FOLDER)/bin $(DISTRO_DIR)/\(drag\ lpe\ here\ to\ install\) ;
+ cp -a $(COMMON_FOLDER)/lib/libpcre*.so $(DISTRO_DIR)/lib/ ;
+}
+
diff -urN Paladin-1.3.src/SymbolFinder/Makefile Paladin-1.3.src.gcc2hybrid/SymbolFinder/Makefile
--- Paladin-1.3.src/SymbolFinder/Makefile 1970-01-01 00:00:00.000000000 +0000
+++ Paladin-1.3.src.gcc2hybrid/SymbolFinder/Makefile 2010-09-06 05:26:21.833093632 +0000
@@ -0,0 +1,27 @@
+NAME= SymbolFinder
+TYPE= APP
+SRCS= App.cpp DPath.cpp DWindow.cpp MainWindow.cpp
+RSRCS=
+LIBS= /boot/develop/lib/x86/libroot.so /boot/develop/lib/x86/libbe.so /boot/system/lib/gcc4/libstdc++.so /boot/develop/lib/x86/libsupc++.so /boot/develop/lib/x86/libstdc++.so
+LIBPATHS=
+SYSTEM_INCLUDE_PATHS= /boot/develop/headers/be /boot/develop/headers/cpp /boot/develop/headers/posix /boot/home/config/include /boot/develop/abi/x86/gcc4/lib
+LOCAL_INCLUDE_PATHS=
+OPTIMIZE=FULL
+# specify any preprocessor symbols to be defined. The symbols will not
+# have their values set automatically; you must supply the value (if any)
+# to use. For example, setting DEFINES to "DEBUG=1" will cause the
+# compiler option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG"
+# would pass "-DDEBUG" on the compiler's command line.
+DEFINES=
+# specify special warning levels
+# if unspecified default warnings will be used
+# NONE = supress all warnings
+# ALL = enable all warnings
+WARNINGS =
+# Build with debugging symbols if set to TRUE
+SYMBOLS=
+COMPILER_FLAGS=
+LINKER_FLAGS=
+
+## include the makefile-engine
+include $(BUILDHOME)/etc/makefile-engine