diff options
Diffstat (limited to 'devel/premake/files')
-rw-r--r-- | devel/premake/files/patch-Premake.make | 58 | ||||
-rw-r--r-- | devel/premake/files/patch-Src::posix.c | 44 |
2 files changed, 102 insertions, 0 deletions
diff --git a/devel/premake/files/patch-Premake.make b/devel/premake/files/patch-Premake.make new file mode 100644 index 000000000000..4bc4185a181b --- /dev/null +++ b/devel/premake/files/patch-Premake.make @@ -0,0 +1,58 @@ +--- Premake.make.orig Tue Feb 24 21:49:57 2004 ++++ Premake.make Thu Mar 25 21:03:11 2004 +@@ -8,13 +8,13 @@ + TARGET = + + ifeq ($(CONFIG),Debug) +- CFLAGS += --no-rtti --no-exceptions +- LDFLAGS += -ldl ++ CFLAGS += --no-exceptions ++ LDFLAGS += + TARGET = premake + endif + ifeq ($(CONFIG),Release) +- CFLAGS += --no-rtti --no-exceptions -Os +- LDFLAGS += -ldl ++ CFLAGS += --no-exceptions -Os ++ LDFLAGS += + TARGET = premake + endif + CXXFLAGS=$(CFLAGS) +@@ -23,37 +23,21 @@ + -@if [ ! -d obj ]; then mkdir obj; fi + @echo $(notdir $<) + @$(CXX) $(CXXFLAGS) -MD -o $@ -c $< +- @cp obj/$*.d obj/$*.P; \ +- sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ +- -e '/^$$/ d' -e 's/$$/ :/' < obj/$*.d >> obj/$*.P; \ +- rm -f obj/$*.d + + obj/%.o : %.cpp + -@if [ ! -d obj ]; then mkdir obj; fi + @echo $(notdir $<) + @$(CXX) $(CXXFLAGS) -MD -o $@ -c $< +- @cp obj/$*.d obj/$*.P; \ +- sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ +- -e '/^$$/ d' -e 's/$$/ :/' < obj/$*.d >> obj/$*.P; \ +- rm -f obj/$*.d + + obj/%.o : %.cxx + -@if [ ! -d obj ]; then mkdir obj; fi + @echo $(notdir $<) + @$(CXX) $(CXXFLAGS) -MD -o $@ -c $< +- @cp obj/$*.d obj/$*.P; \ +- sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ +- -e '/^$$/ d' -e 's/$$/ :/' < obj/$*.d >> obj/$*.P; \ +- rm -f obj/$*.d + + obj/%.o : %.c + -@if [ ! -d obj ]; then mkdir obj; fi + @echo $(notdir $<) + @$(CC) $(CFLAGS) -MD -o $@ -c $< +- @cp obj/$*.d obj/$*.P; \ +- sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ +- -e '/^$$/ d' -e 's/$$/ :/' < obj/$*.d >> obj/$*.P; \ +- rm -f obj/$*.d + + OBJECTS = \ + obj/premake.o \ diff --git a/devel/premake/files/patch-Src::posix.c b/devel/premake/files/patch-Src::posix.c new file mode 100644 index 000000000000..8cdcc7e1586a --- /dev/null +++ b/devel/premake/files/patch-Src::posix.c @@ -0,0 +1,44 @@ +--- Src/posix.c.orig Tue Feb 24 21:49:57 2004 ++++ Src/posix.c Thu Mar 25 21:10:21 2004 +@@ -20,6 +20,9 @@ + + #if defined(__linux__) + const char* osIdent = "linux"; ++#endif ++#if defined(__FreeBSD__) ++const char* osIdent = "linux"; + #else + #error Unknown OS type. + #endif +@@ -87,31 +90,7 @@ + return 1; + } + +- FILE* file = fopen("/etc/ld.so.conf", "rt"); +- if (file == NULL) return 0; +- +- while (!feof(file)) +- { +- // Read a line and trim off any trailing whitespace +- char linebuffer[2048]; +- char* ptr; +- +- fgets(buffer, 2048, file); +- ptr = &buffer[strlen(buffer) - 1]; +- while (isspace(*ptr)) +- *(ptr--) = '\0'; +- +- if (findLib(lib, buffer)) +- { +- fclose(file); +- return 1; +- } +- } +- +- fclose(file); +- return 0; + } +- + //----------------------------------------------------------------------------- + + int plat_generateUUID(char* uuid) |