summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CVSROOT/modules1
-rw-r--r--devel/Makefile1
-rw-r--r--devel/ecos-tools/Makefile77
-rw-r--r--devel/ecos-tools/distinfo1
-rw-r--r--devel/ecos-tools/files/patch-host::tools::Utils::common::eCosStd.cpp25
-rw-r--r--devel/ecos-tools/files/patch-host::tools::Utils::common::eCosStd.h25
-rw-r--r--devel/ecos-tools/files/patch-host::tools::Utils::common::eCosThreadUtils.h18
-rw-r--r--devel/ecos-tools/files/patch-host::tools::configtool::standalone::wxwin::makefile.gnu43
-rw-r--r--devel/ecos-tools/pkg-descr7
-rw-r--r--devel/ecos-tools/pkg-plist17
10 files changed, 215 insertions, 0 deletions
diff --git a/CVSROOT/modules b/CVSROOT/modules
index de10606..83bb112 100644
--- a/CVSROOT/modules
+++ b/CVSROOT/modules
@@ -1447,6 +1447,7 @@ eclipse-gef ports/java/eclipse-gef
eclipse-gef-examples ports/java/eclipse-gef-examples
eclipse-langpack ports/java/eclipse-langpack
ecore ports/x11/ecore
+ecos-tools ports/devel/ecos-tools
ecu ports/comms/ecu
edb ports/databases/edb
edith ports/editors/edith
diff --git a/devel/Makefile b/devel/Makefile
index 2f1ae1a..26b9689 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -187,6 +187,7 @@
SUBDIR += ecb
SUBDIR += ecb-emacs20
SUBDIR += ecgi
+ SUBDIR += ecos-tools
SUBDIR += eieio
SUBDIR += eieio-emacs20
SUBDIR += elf
diff --git a/devel/ecos-tools/Makefile b/devel/ecos-tools/Makefile
new file mode 100644
index 0000000..7e25694
--- /dev/null
+++ b/devel/ecos-tools/Makefile
@@ -0,0 +1,77 @@
+# New ports collection makefile for: eCos tools
+# Date created: 12 November 2003
+# Whom: Thomas Gellekum <tg@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ecos-tools
+PORTVERSION= 0.0.${SNAPDATE}
+CATEGORIES= devel
+MASTER_SITES= http://www.ecoscentric.com/snapshots/
+DISTNAME= ecos-tools.${SNAPDATE}
+
+MAINTAINER= tg@FreeBSD.org
+COMMENT= Configuration tools for the eCos embedded OS
+
+LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84 \
+ wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2
+
+USE_BZIP2= yes
+WRKSRC= ${WRKDIR}/infra-build
+GNU_CONFIGURE= yes
+CONFIGURE_SCRIPT= ../ecos/host/configure
+CONFIGURE_ARGS= --with-tcl=${PREFIX} --with-tcl-version=8.4
+CONFIGURE_ENV= TCL_INC_DIR=${PREFIX}/include/tcl8.4
+USE_GMAKE= yes
+
+SNAPDATE= 20031109
+
+ECOSSRCDIR= ${WRKDIR}/ecos/host
+CFGTOOL_WRKSRC= ${WRKDIR}/configtool-build
+CFGTOOL_MAKE_ENV= WXDIR=${X11BASE} WX_CONFIG=wxgtk2-2.4-config \
+ ECOSSRCDIR=${ECOSSRCDIR} \
+ INSTALLDIR=${PREFIX}
+CFGTOOL_MAKEFILE= ${ECOSSRCDIR}/tools/configtool/standalone/wxwin/makefile.gnu
+CFGTOOL_ALL_TARGET=
+
+post-extract:
+ @${MKDIR} ${WRKSRC}
+
+# XXX Don't add ${INSTALL} to the configure environment. It upsets the
+# stupid scripts in the eCos sources.
+do-configure:
+ @CONFIG_GUESS_DIRS=$$(${FIND} ${WRKDIR} -name config.guess -o -name config.sub \
+ | ${XARGS} -n 1 /usr/bin/dirname); \
+ for _D in $${CONFIG_GUESS_DIRS}; do \
+ ${CP} -f ${TEMPLATES}/config.guess $${_D}/config.guess; \
+ ${CHMOD} a+rx $${_D}/config.guess; \
+ ${CP} -f ${TEMPLATES}/config.sub $${_D}/config.sub; \
+ ${CHMOD} a+rx $${_D}/config.sub; \
+ done
+ @(cd ${CONFIGURE_WRKSRC} && \
+ if ! ${SETENV} CC="${CC}" CXX="${CXX}" \
+ CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
+ INSTALL_DATA="${INSTALL_DATA}" \
+ INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; then \
+ ${ECHO_CMD} "===> Script \"${CONFIGURE_SCRIPT}\" failed unexpectedly."; \
+ (${ECHO_CMD} " Please report the problem to ${MAINTAINER} [maintainer] and"; \
+ ${ECHO_CMD} " attach the \"${CONFIGURE_WRKSRC}/${CONFIGURE_LOG}\" including"; \
+ ${ECHO_CMD} " the output of the failure of your make command. Also, it might"; \
+ ${ECHO_CMD} " be a good idea to provide an overview of all packages installed"; \
+ ${ECHO_CMD} " on your system (e.g. an \`ls ${PKG_DBDIR}\`).") | /usr/bin/fmt 75 79 ; \
+ ${FALSE}; \
+ fi)
+
+post-build:
+ @${MKDIR} ${CFGTOOL_WRKSRC}
+ @(cd ${CFGTOOL_WRKSRC}; \
+ ${SETENV} ${MAKE_ENV} ${CFGTOOL_MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${CFGTOOL_MAKEFILE} ${MAKE_ARGS} ${CFGTOOL_ALL_TARGET})
+
+post-install:
+ @(cd ${CFGTOOL_WRKSRC}; \
+ ${SETENV} ${MAKE_ENV} ${CFGTOOL_MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${CFGTOOL_MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
+
+.include <bsd.port.mk>
diff --git a/devel/ecos-tools/distinfo b/devel/ecos-tools/distinfo
new file mode 100644
index 0000000..3dac552
--- /dev/null
+++ b/devel/ecos-tools/distinfo
@@ -0,0 +1 @@
+MD5 (ecos-tools.20031109.tar.bz2) = ec2385e8b03501f142f71628b9501de0
diff --git a/devel/ecos-tools/files/patch-host::tools::Utils::common::eCosStd.cpp b/devel/ecos-tools/files/patch-host::tools::Utils::common::eCosStd.cpp
new file mode 100644
index 0000000..cb9b07e
--- /dev/null
+++ b/devel/ecos-tools/files/patch-host::tools::Utils::common::eCosStd.cpp
@@ -0,0 +1,25 @@
+$FreeBSD$
+
+Index: ../ecos/host/tools/Utils/common/eCosStd.cpp
+===================================================================
+RCS file: /home/tg/cvs/ecos/host/tools/Utils/common/eCosStd.cpp,v
+retrieving revision 1.1.1.1
+diff -u -r1.1.1.1 eCosStd.cpp
+--- host/tools/Utils/common/eCosStd.cpp 22 Aug 2003 11:37:35 -0000 1.1.1.1
++++ host/tools/Utils/common/eCosStd.cpp 6 Sep 2003 17:23:26 -0000
+@@ -33,10 +33,12 @@
+ SystemTimeToFileTime(&st,(FILETIME *)&ft);
+ return Time(ft)/10000;
+ #else // UNIX
+- struct timeb tp;
+- ftime(&tp);
++ struct timeval tv;
++ struct timezone tz;
++
++ gettimeofday(&tv, &tz);
+ // A negative time would be bad news, but we're not in touble until 2038
+- return 1000*Time(tp.time)+tp.millitm;
++ return 1000*Time(tv.tv_sec)+tv.tv_usec/1000;
+ #endif
+ }
+
diff --git a/devel/ecos-tools/files/patch-host::tools::Utils::common::eCosStd.h b/devel/ecos-tools/files/patch-host::tools::Utils::common::eCosStd.h
new file mode 100644
index 0000000..4be8146
--- /dev/null
+++ b/devel/ecos-tools/files/patch-host::tools::Utils::common::eCosStd.h
@@ -0,0 +1,25 @@
+$FreeBSD$
+
+Index: ../ecos/host/tools/Utils/common/eCosStd.h
+===================================================================
+RCS file: /home/tg/cvs/ecos/host/tools/Utils/common/eCosStd.h,v
+retrieving revision 1.1.1.1
+diff -u -r1.1.1.1 eCosStd.h
+--- host/tools/Utils/common/eCosStd.h 22 Aug 2003 11:37:35 -0000 1.1.1.1
++++ host/tools/Utils/common/eCosStd.h 6 Sep 2003 16:24:17 -0000
+@@ -116,7 +116,6 @@
+ #include <signal.h>
+ #define cPathsep '/'
+
+- #include <malloc.h> // malloc
+ #include <stdlib.h> // atoi
+ #include <errno.h>
+ #define WOULDBLOCK EWOULDBLOCK
+@@ -149,7 +148,6 @@
+ #include <ctype.h>
+ #include <fcntl.h>
+ #include <assert.h>
+-#include <malloc.h>
+ #include <stdlib.h>
+ #include <time.h>
+ #include <stdarg.h> // vsnprintf
diff --git a/devel/ecos-tools/files/patch-host::tools::Utils::common::eCosThreadUtils.h b/devel/ecos-tools/files/patch-host::tools::Utils::common::eCosThreadUtils.h
new file mode 100644
index 0000000..26e553a
--- /dev/null
+++ b/devel/ecos-tools/files/patch-host::tools::Utils::common::eCosThreadUtils.h
@@ -0,0 +1,18 @@
+$FreeBSD$
+
+Index: ../ecos/host/tools/Utils/common/eCosThreadUtils.h
+===================================================================
+RCS file: /home/tg/cvs/ecos/host/tools/Utils/common/eCosThreadUtils.h,v
+retrieving revision 1.1.1.1
+diff -u -r1.1.1.1 eCosThreadUtils.h
+--- host/tools/Utils/common/eCosThreadUtils.h 22 Aug 2003 11:37:35 -0000 1.1.1.1
++++ host/tools/Utils/common/eCosThreadUtils.h 6 Sep 2003 16:37:19 -0000
+@@ -61,7 +61,7 @@
+ #ifdef _WIN32
+ typedef DWORD THREAD_ID;
+ #else // UNIX
+- #ifndef NO_THREADS
++ #ifdef NO_THREADS
+ typedef int THREAD_ID;
+ #else
+ typedef pthread_t THREAD_ID;
diff --git a/devel/ecos-tools/files/patch-host::tools::configtool::standalone::wxwin::makefile.gnu b/devel/ecos-tools/files/patch-host::tools::configtool::standalone::wxwin::makefile.gnu
new file mode 100644
index 0000000..ac96b58
--- /dev/null
+++ b/devel/ecos-tools/files/patch-host::tools::configtool::standalone::wxwin::makefile.gnu
@@ -0,0 +1,43 @@
+$FreeBSD$
+
+--- ../ecos/host/tools/configtool/standalone/wxwin/makefile.gnu.orig Wed May 14 14:20:15 2003
++++ ../ecos/host/tools/configtool/standalone/wxwin/makefile.gnu Mon Nov 17 11:44:38 2003
+@@ -6,23 +6,20 @@
+ # cd emptydir
+ # make -f /path/to/this/makefile WXDIR=/path/to/wx/installation INSTALLDIR=/path/to/ecos/tools [ ECOSSRCDIR=/path/to/ecos/tools/src ] [ TCLDIR=/path/to/tcl/installation ] [ DEBUG=1 ]
+
+-INSTALLDIR=INSTALLDIR_not_defined
+-WXDIR=WXDIR_not_defined
+-
+ CTBUILDDIR=$(shell pwd)
+-ECOSSRCDIR=$(INSTALLDIR)/src
+ CTDIR=$(ECOSSRCDIR)/tools/configtool/standalone/wxwin
+-TCLDIR=TCLDIR_use_system
+ USEEXPERIMENTALCODE=1
+
+ EXTRACPPFLAGS=\
+- -I$(TCLDIR)/include \
+ -I$(INSTALLDIR)/include \
++ -I$(INSTALLDIR)/include/tcl8.4 \
++ -I$(ECOSSRCDIR)/libcdl \
++ -I$(ECOSSRCDIR)/../../infra-build/infra \
+ -I$(ECOSSRCDIR)/tools/configtool/common/common \
+ -I$(ECOSSRCDIR)/tools/Utils/common \
+ -I$(ECOSSRCDIR)/tools/ecostest/common \
+ -DecUSE_EXPERIMENTAL_CODE=$(USEEXPERIMENTALCODE)
+-EXTRALDFLAGS=-L$(TCLDIR)/lib -L$(INSTALLDIR)/lib -lcdl -lcyginfra -ltcl
++EXTRALDFLAGS=-L$(TCLDIR)/lib -L$(INSTALLDIR)/lib -L$(ECOSSRCDIR)/../../infra-build/libcdl -L$(ECOSSRCDIR)/../../infra-build/infra -lcdl -lcyginfra -ltcl84
+
+ ifneq (,$(findstring CYGWIN, $(shell uname)))
+ PROGRAM=configtool.exe
+@@ -31,8 +28,8 @@
+ EXTRAOBJECTS=$(CTBUILDDIR)/configtoolres.o
+ else
+ PROGRAM=configtool
+- CPPFLAGS=`$(WXDIR)/bin/wx-config --cppflags`
+- LDFLAGS=`$(WXDIR)/bin/wx-config --libs`
++ CPPFLAGS=`$(WXDIR)/bin/$(WX_CONFIG) --cppflags`
++ LDFLAGS=`$(WXDIR)/bin/$(WX_CONFIG) --libs`
+ EXTRAOBJECTS=
+ endif
+
diff --git a/devel/ecos-tools/pkg-descr b/devel/ecos-tools/pkg-descr
new file mode 100644
index 0000000..7e8536e
--- /dev/null
+++ b/devel/ecos-tools/pkg-descr
@@ -0,0 +1,7 @@
+eCos is an open source, configurable, portable, and royalty-free
+embedded real-time operating system.
+
+This port installs the configuration tools to manage the eCos build
+environment, ecosconfig and configtool.
+
+WWW: http://ecos.sourceware.org/
diff --git a/devel/ecos-tools/pkg-plist b/devel/ecos-tools/pkg-plist
new file mode 100644
index 0000000..e267698
--- /dev/null
+++ b/devel/ecos-tools/pkg-plist
@@ -0,0 +1,17 @@
+bin/configtool
+bin/ecosconfig
+include/cdl.hxx
+include/cdlcore.hxx
+include/cyg/hal/basetype.h
+include/cyg/infra/cyg_ass.h
+include/cyg/infra/cyg_trac.h
+include/cyg/infra/cyg_type.h
+include/cyg/infra/testcase.h
+include/pkgconf/hostinfra.h
+include/pkgconf/infra.h
+lib/libcdl.a
+lib/libcyginfra.a
+@dirrm include/pkgconf
+@dirrm include/cyg/infra
+@dirrm include/cyg/hal
+@dirrm include/cyg
OpenPOWER on IntegriCloud