blob: 11c0d82da78d7feeb6c908bd08fe280a72f915da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# 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}
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= tg
DISTNAME= ecos-tools.${SNAPDATE}
MAINTAINER= tg@FreeBSD.org
COMMENT= Configuration tools for the eCos embedded OS
LIB_DEPENDS= tcl84.1:${PORTSDIR}/lang/tcl84 \
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= 20040125
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>
|