diff options
Diffstat (limited to 'devel/eclipse-titan/files')
15 files changed, 240 insertions, 0 deletions
diff --git a/devel/eclipse-titan/files/Makefile.personal.in b/devel/eclipse-titan/files/Makefile.personal.in new file mode 100644 index 000000000000..72808ca4810c --- /dev/null +++ b/devel/eclipse-titan/files/Makefile.personal.in @@ -0,0 +1,11 @@ +TTCN3_DIR := %%STAGEDIR%%%%PREFIX%%/%%TTCN3_DIR%% +OPENSSL_DIR := %%OPENSSLBASE%% +#JDKDIR := /usr/lib/jvm/java-7-openjdk-amd64 +XMLDIR := %%LOCALBASE%% +JNI := no +GEN_PDF := no +OLD_LIBEDIT := no +CXX := %%CXX%% +CC := %%CC%% + +DEMODIR := %%STAGEDIR%%%%EXAMPLESDIR%% diff --git a/devel/eclipse-titan/files/eclipse-titan-man.conf.in b/devel/eclipse-titan/files/eclipse-titan-man.conf.in new file mode 100644 index 000000000000..cd2ca06525d4 --- /dev/null +++ b/devel/eclipse-titan/files/eclipse-titan-man.conf.in @@ -0,0 +1 @@ +MANPATH %%PREFIX%%/%%TTCN3_DIR%%/man diff --git a/devel/eclipse-titan/files/patch-common-Makefile b/devel/eclipse-titan/files/patch-common-Makefile new file mode 100644 index 000000000000..1e6b13b2d41f --- /dev/null +++ b/devel/eclipse-titan/files/patch-common-Makefile @@ -0,0 +1,12 @@ +--- common/Makefile.orig 2024-11-14 11:50:43 UTC ++++ common/Makefile +@@ -27,7 +27,8 @@ include $(TOP)/Makefile.cfg + include $(TOP)/Makefile.cfg + + # Generating git_version.c according to GIT_COMMIT_ID +-GIT_HASH=`git describe --always --dirty --match 'NOT A TAG'` ++#GIT_HASH=`git describe --always --dirty --match 'NOT A TAG'` ++GIT_HASH=11.1.0 + ifeq ($(GIT_COMMIT_ID), no) + GIT_HASH="" + endif diff --git a/devel/eclipse-titan/files/patch-compiler2-Makefile b/devel/eclipse-titan/files/patch-compiler2-Makefile new file mode 100644 index 000000000000..54d85a6bdb30 --- /dev/null +++ b/devel/eclipse-titan/files/patch-compiler2-Makefile @@ -0,0 +1,19 @@ +--- compiler2/Makefile.orig 2024-11-14 11:50:43 UTC ++++ compiler2/Makefile +@@ -55,12 +55,16 @@ ifeq ($(XMLDIR), default) + ifdef XMLDIR + ifeq ($(XMLDIR), default) + XMLDIR := /usr ++ CPPFLAGS += -DXMLDIR=\"$(XMLDIR)\" + # do not add -L/usr/lib to LDFLAGS, it's redundant + else + LDFLAGS += -L$(XMLDIR)/lib ++ CPPFLAGS += -DXMLDIR=\"$(XMLDIR)\" + endif + + CPPFLAGS += -I$(XMLDIR)/include/libxml2 ++else ++ CPPFLAGS += -DXMLDIR=\"\$$(TTCN3_DIR)\" + endif + + ifdef SRCDIR diff --git a/devel/eclipse-titan/files/patch-compiler2-makefile.c b/devel/eclipse-titan/files/patch-compiler2-makefile.c new file mode 100644 index 000000000000..e3460e348d16 --- /dev/null +++ b/devel/eclipse-titan/files/patch-compiler2-makefile.c @@ -0,0 +1,44 @@ +--- compiler2/makefile.c.orig 2025-05-28 08:04:59 UTC ++++ compiler2/makefile.c +@@ -2130,7 +2130,7 @@ static void print_makefile(struct makefile_struct *mak + "%s" + "TTCN3_SUBDIR = \n" + "ifndef TTCN3_DIR\n" +- "TTCN3_DIR = %s\n" ++ "export TTCN3_DIR = %s\n" + "endif\n" + , titan_dir ? + "# The value below points to the location of the TITAN version\n" +@@ -2169,7 +2169,7 @@ static void print_makefile(struct makefile_struct *mak + } + cxx_free = TRUE; + #else +- cxx = "g++"; ++ cxx = CXX; + #endif + } + +@@ -2295,6 +2295,11 @@ static void print_makefile(struct makefile_struct *mak + "\n\n" + "# Flags for the linker:\n" + "LDFLAGS = %s%s %s\n\n" ++ "ifeq ($(PLATFORM), FREEBSD)\n" ++ "# Add -rpath for libgcc_s.so not to use one in the base system\n" ++ "LIBGCC_SO_DIR != dirname $$($(CXX) -print-file-name=libgcc_s.so)\n" ++ "LDFLAGS += -Wl,-rpath=$(LIBGCC_SO_DIR)\n" ++ "endif\n\n" + "ifeq ($(PLATFORM), WIN32)\n" + "# Silence linker warnings.\n" + "LDFLAGS += -Wl,--enable-auto-import,--enable-runtime-pseudo-reloc\n" +@@ -2315,7 +2320,11 @@ static void print_makefile(struct makefile_struct *mak + "OPENSSL_LIB_DIR = lib\n\n" + "# The path of your libxml2 installation:\n" + "# If you do not have your own one, leave it unchanged.\n" ++#ifdef XMLDIR ++ "%sXMLDIR = " XMLDIR "\n\n" ++#else + "%sXMLDIR = $(TTCN3_DIR)\n\n" ++#endif + "# Directory to store the archived source files:\n", + makefile->dynamic ? "-Wall -fPIC" : "-Wall", /* CXXFLAGS */ + makefile->coverage ? " -fprofile-arcs -ftest-coverage -g" : "", /* CXXFLAGS COVERAGE */ diff --git a/devel/eclipse-titan/files/patch-core-Makefile b/devel/eclipse-titan/files/patch-core-Makefile new file mode 100644 index 000000000000..2291fae0645f --- /dev/null +++ b/devel/eclipse-titan/files/patch-core-Makefile @@ -0,0 +1,31 @@ +--- core/Makefile.orig 2024-11-14 11:50:43 UTC ++++ core/Makefile +@@ -320,6 +320,13 @@ endif + $(STRIP) $(SHAREDLIB) $(PARALLEL_SHAREDLIB) + endif + endif ++ifneq ($(ASN1ENC_RUNTIME), yes) ++ ifneq ($(FUNCTION_TEST_RUNTIME), yes) ++ ifeq ($(DEBUG), no) ++ $(STRIP) $(PROGRAMS) ++ endif ++ endif ++endif + mkdir -p $(LIBDIR) + cp $(TARGETS) $(LIBDIR) + ifneq ($(ASN1ENC_RUNTIME), yes) +@@ -335,10 +342,10 @@ endif + (cd $(OPENSSL_DIR)/$(OPENSSL_LIB_DIR) && tar -cf - libcrypto.so*) |\ + (cd $(LIBDIR) && tar -xf -) + endif +-ifneq ($(XMLDIR), default) +- (cd $(XMLDIR)/lib && tar -cf - libxml2.so*) |\ +- (cd $(LIBDIR) && tar -xf -) +-endif ++#ifneq ($(XMLDIR), default) ++# (cd $(XMLDIR)/lib && tar -cf - libxml2.so*) |\ ++# (cd $(LIBDIR) && tar -xf -) ++#endif + endif + endif + mkdir -p $(INCDIR)/$(APIDIR) diff --git a/devel/eclipse-titan/files/patch-hello-Makefile b/devel/eclipse-titan/files/patch-hello-Makefile new file mode 100644 index 000000000000..bfebcb660e00 --- /dev/null +++ b/devel/eclipse-titan/files/patch-hello-Makefile @@ -0,0 +1,13 @@ +--- hello/Makefile.orig 2024-11-14 11:50:43 UTC ++++ hello/Makefile +@@ -37,7 +37,7 @@ else + cp $(DEMOFILES) $(DEMODIR) + cd $(DEMODIR) && $(BINDIR)/ttcn3_makefilegen $(MAKEFILEGENFLAGS) $(DEMOFILES) && \ + $(MAKE) CXX='$(CXX)' CXXFLAGS='$(CXXFLAGS)' LDFLAGS='$(LDFLAGS)' -j1 && \ +- (sleep 5 && echo 'Hello, TTCN-3!') | ttcn3_start -ip "127.0.0.1" MyExample MyExample.cfg && \ +- logformat -o MyExample_merged.log *.log +- cd $(DEMODIR) && make clean ++ (sleep 5 && echo 'Hello, TTCN-3!') | ${TTCN3_DIR}/bin/ttcn3_start -ip "127.0.0.1" MyExample MyExample.cfg && \ ++ ${TTCN3_DIR}/bin/logformat -o MyExample_merged.log *.log ++ cd $(DEMODIR) && ${MAKE} clean + endif diff --git a/devel/eclipse-titan/files/patch-help-ttcn3_help b/devel/eclipse-titan/files/patch-help-ttcn3_help new file mode 100644 index 000000000000..b6ff73141aa9 --- /dev/null +++ b/devel/eclipse-titan/files/patch-help-ttcn3_help @@ -0,0 +1,14 @@ +--- help/ttcn3_help.orig 2025-05-28 08:04:59 UTC ++++ help/ttcn3_help +@@ -32,7 +32,10 @@ if test "${TTCN3_DIR}" = "" + + # check for necessary environment variables + if test "${TTCN3_DIR}" = "" +-then echo "Error: TTCN3_DIR environment variable is not set"; exit 1; ++then if test -d "%%TTCN3_DIR%%" ++ then TTCN3_DIR=%%TTCN3_DIR%% ++ else echo "Error: TTCN3_DIR environment variable is not set"; exit 1; ++ fi + fi + + # file extension for help files diff --git a/devel/eclipse-titan/files/patch-loggerplugins-JUnitLogger-Makefile b/devel/eclipse-titan/files/patch-loggerplugins-JUnitLogger-Makefile new file mode 100644 index 000000000000..bee81fe3d5ea --- /dev/null +++ b/devel/eclipse-titan/files/patch-loggerplugins-JUnitLogger-Makefile @@ -0,0 +1,12 @@ +--- loggerplugins/JUnitLogger/Makefile.orig 2024-11-14 11:50:43 UTC ++++ loggerplugins/JUnitLogger/Makefile +@@ -96,6 +96,9 @@ install: $(SHARED_LIB) $(SHARED_LIB_RT2) $(SHARED_LIB_ + @echo Doing nothing... + + install: $(SHARED_LIB) $(SHARED_LIB_RT2) $(SHARED_LIB_PARALLEL) $(SHARED_LIB_PARALLEL_RT2) ++ifeq ($(DEBUG), no) ++ $(STRIP) $(SHARED_LIB)* $(SHARED_LIB_RT2)* $(SHARED_LIB_PARALLEL)* $(SHARED_LIB_PARALLEL_RT2)* ++endif + mkdir -p $(LIB_DIR) + cp $(SHARED_LIB)* $(SHARED_LIB_RT2)* $(SHARED_LIB_PARALLEL)* $(SHARED_LIB_PARALLEL_RT2)* $(LIB_DIR) + diff --git a/devel/eclipse-titan/files/patch-loggerplugins-JUnitLogger2-Makefile b/devel/eclipse-titan/files/patch-loggerplugins-JUnitLogger2-Makefile new file mode 100644 index 000000000000..0419ba11fdc4 --- /dev/null +++ b/devel/eclipse-titan/files/patch-loggerplugins-JUnitLogger2-Makefile @@ -0,0 +1,12 @@ +--- loggerplugins/JUnitLogger2/Makefile.orig 2024-11-14 11:50:43 UTC ++++ loggerplugins/JUnitLogger2/Makefile +@@ -96,6 +96,9 @@ install: $(SHARED_LIB) $(SHARED_LIB_RT2) $(SHARED_LIB_ + @echo Doing nothing... + + install: $(SHARED_LIB) $(SHARED_LIB_RT2) $(SHARED_LIB_PARALLEL) $(SHARED_LIB_PARALLEL_RT2) ++ifeq ($(DEBUG), no) ++ $(STRIP) $(SHARED_LIB)* $(SHARED_LIB_RT2)* $(SHARED_LIB_PARALLEL)* $(SHARED_LIB_PARALLEL_RT2)* ++endif + mkdir -p $(LIB_DIR) + cp $(SHARED_LIB)* $(SHARED_LIB_RT2)* $(SHARED_LIB_PARALLEL)* $(SHARED_LIB_PARALLEL_RT2)* $(LIB_DIR) + diff --git a/devel/eclipse-titan/files/patch-loggerplugins-LTTngUSTLogger-Makefile b/devel/eclipse-titan/files/patch-loggerplugins-LTTngUSTLogger-Makefile new file mode 100644 index 000000000000..a833989cb5a4 --- /dev/null +++ b/devel/eclipse-titan/files/patch-loggerplugins-LTTngUSTLogger-Makefile @@ -0,0 +1,12 @@ +--- loggerplugins/LTTngUSTLogger/Makefile.orig 2024-11-14 11:50:43 UTC ++++ loggerplugins/LTTngUSTLogger/Makefile +@@ -105,6 +105,9 @@ install: $(SHARED_LIB) $(SHARED_LIB_RT2) $(SHARED_LIB_ + @echo Doing nothing... + + install: $(SHARED_LIB) $(SHARED_LIB_RT2) $(SHARED_LIB_PARALLEL) $(SHARED_LIB_PARALLEL_RT2) $(TPP) ++ifeq ($(DEBUG), no) ++ $(STRIP) $(SHARED_LIB)* $(SHARED_LIB_RT2)* $(SHARED_LIB_PARALLEL)* $(SHARED_LIB_PARALLEL_RT2)* $(TPP) ++endif + mkdir -p $(LIB_DIR) + cp $(SHARED_LIB)* $(SHARED_LIB_RT2)* $(SHARED_LIB_PARALLEL)* $(SHARED_LIB_PARALLEL_RT2)* $(LIB_DIR) + cp $(TPP) $(LIB_DIR) diff --git a/devel/eclipse-titan/files/patch-loggerplugins-TSTLogger-Makefile b/devel/eclipse-titan/files/patch-loggerplugins-TSTLogger-Makefile new file mode 100644 index 000000000000..5f16b8dd5e64 --- /dev/null +++ b/devel/eclipse-titan/files/patch-loggerplugins-TSTLogger-Makefile @@ -0,0 +1,12 @@ +--- loggerplugins/TSTLogger/Makefile.orig 2024-11-14 11:50:43 UTC ++++ loggerplugins/TSTLogger/Makefile +@@ -96,6 +96,9 @@ install: $(SHARED_LIB) $(SHARED_LIB_RT2) $(SHARED_LIB_ + @echo Doing nothing... + + install: $(SHARED_LIB) $(SHARED_LIB_RT2) $(SHARED_LIB_PARALLEL) $(SHARED_LIB_PARALLEL_RT2) ++ifeq ($(DEBUG), no) ++ $(STRIP) $(SHARED_LIB)* $(SHARED_LIB_RT2)* $(SHARED_LIB_PARALLEL)* $(SHARED_LIB_PARALLEL_RT2)* ++endif + mkdir -p $(LIB_DIR) + cp $(SHARED_LIB)* $(SHARED_LIB_RT2)* $(SHARED_LIB_PARALLEL)* $(SHARED_LIB_PARALLEL_RT2)* $(LIB_DIR) + diff --git a/devel/eclipse-titan/files/patch-mctr2-mctr-ttcn3_start b/devel/eclipse-titan/files/patch-mctr2-mctr-ttcn3_start new file mode 100644 index 000000000000..62d8eec68899 --- /dev/null +++ b/devel/eclipse-titan/files/patch-mctr2-mctr-ttcn3_start @@ -0,0 +1,21 @@ +--- mctr2/mctr/ttcn3_start.orig 2024-11-14 11:50:43 UTC ++++ mctr2/mctr/ttcn3_start +@@ -18,11 +18,15 @@ fi + # hide next line from expect \ + fi + ++# Set the default TTCN3_DIR only if TTCN3_DIR is unset. \ ++: ${TTCN3_DIR=%%TTCN3_DIR%%}; \ ++case ${TTCN3_DIR} in \ ++"") SETENV= ;; \ ++*) SETENV="env TTCN3_DIR=${TTCN3_DIR}" ;; \ ++esac + +- +- + # the next line restarts using expect \ +-exec expect "$0" "$@" ++exec ${SETENV} expect "$0" "$@" + + ##################################################### + ## ## diff --git a/devel/eclipse-titan/files/patch-xsdconvert-Makefile b/devel/eclipse-titan/files/patch-xsdconvert-Makefile new file mode 100644 index 000000000000..c34e1b8b2776 --- /dev/null +++ b/devel/eclipse-titan/files/patch-xsdconvert-Makefile @@ -0,0 +1,12 @@ +--- xsdconvert/Makefile.orig 2024-11-14 11:50:43 UTC ++++ xsdconvert/Makefile +@@ -83,6 +83,9 @@ install: $(TARGETS) + $(CXX) $(LDFLAGS) -o $@ $(OBJECTS) $(LDLIBS) $(MINGW_LIBS) + + install: $(TARGETS) ++ifeq ($(DEBUG), no) ++ $(STRIP) $(TARGETS) ++endif + ifdef MINGW + mkdir -p $(TTCN3_DIR)/programs + cp $(TARGETS) $(TTCN3_DIR)/programs diff --git a/devel/eclipse-titan/files/pkg-message.in b/devel/eclipse-titan/files/pkg-message.in new file mode 100644 index 000000000000..1f015374470f --- /dev/null +++ b/devel/eclipse-titan/files/pkg-message.in @@ -0,0 +1,14 @@ +[ +{ type: install + message: <<EOM +The top directory for Eclipse Titan is %%PREFIX%%/%%TTCN3_DIR%%, and +binaries have been installed to %%PREFIX%%/%%TTCN3_DIR%%/bin. + +You generally need to set TTCN3_DIR environment variable to the top +directory to use Eclipse Titan, while the ttcn3_start utility automatically +sets it when no TTCN3_DIR is defined. + +A demo test case has been installed in %%EXAMPLESDIR%%. +EOM +} +] |