diff options
author | tg <tg@FreeBSD.org> | 2003-11-17 12:29:06 +0000 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 2003-11-17 12:29:06 +0000 |
commit | 788aa2724ce75df128e38b71927de028f7cffd60 (patch) | |
tree | db9f2967a2c090c43619bff0459e5c1afb03e81d /devel/ecos-tools/Makefile | |
parent | 1eaae6208cc1fd7bdf9eb3344adb6382c2e19736 (diff) | |
download | FreeBSD-ports-788aa2724ce75df128e38b71927de028f7cffd60.zip FreeBSD-ports-788aa2724ce75df128e38b71927de028f7cffd60.tar.gz |
New port ecos-tools. This will install the configuration tools
for the eCos embedded OS.
Diffstat (limited to 'devel/ecos-tools/Makefile')
-rw-r--r-- | devel/ecos-tools/Makefile | 77 |
1 files changed, 77 insertions, 0 deletions
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> |