aboutsummaryrefslogtreecommitdiff
path: root/devel/ecos-tools/Makefile
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2003-11-17 12:29:06 +0000
committerThomas Gellekum <tg@FreeBSD.org>2003-11-17 12:29:06 +0000
commit77de57715eaa7f5916568b4cc5abd98ede51b434 (patch)
treeafd81223ceebd2d0a9a8d6651f9d1e3556b8847a /devel/ecos-tools/Makefile
parent38a000937afd1bd569ca85a55b31d6a16537019e (diff)
downloadports-77de57715eaa7f5916568b4cc5abd98ede51b434.tar.gz
ports-77de57715eaa7f5916568b4cc5abd98ede51b434.zip
Notes
Diffstat (limited to 'devel/ecos-tools/Makefile')
-rw-r--r--devel/ecos-tools/Makefile77
1 files changed, 77 insertions, 0 deletions
diff --git a/devel/ecos-tools/Makefile b/devel/ecos-tools/Makefile
new file mode 100644
index 000000000000..7e2569446717
--- /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>