diff options
author | anholt <anholt@FreeBSD.org> | 2003-05-15 06:22:10 +0800 |
---|---|---|
committer | anholt <anholt@FreeBSD.org> | 2003-05-15 06:22:10 +0800 |
commit | c3b58f17a14f6efede70a8fba1128be4e7dfc659 (patch) | |
tree | 730eefc711eb24cc3ea7af50f5aeb0b8eaa19941 /x11/XFree86-4-libraries | |
parent | 0f9fcc47fa7be9fa037be68e0295538d6deb12aa (diff) | |
download | freebsd-ports-gnome-c3b58f17a14f6efede70a8fba1128be4e7dfc659.tar.gz freebsd-ports-gnome-c3b58f17a14f6efede70a8fba1128be4e7dfc659.tar.zst freebsd-ports-gnome-c3b58f17a14f6efede70a8fba1128be4e7dfc659.zip |
Convert .for/.endfor to shell script to fix building of XFree86-4-Server,
which sets the variables involved after including this file. No PORTREVISION
bump because the last XFree86-4-Server bump was for packaging and packaging
was broken in the last revision.
Reported by: Kent Stewart <kstewart@owt.com>
Diffstat (limited to 'x11/XFree86-4-libraries')
-rw-r--r-- | x11/XFree86-4-libraries/Makefile.inc | 50 |
1 files changed, 23 insertions, 27 deletions
diff --git a/x11/XFree86-4-libraries/Makefile.inc b/x11/XFree86-4-libraries/Makefile.inc index 9fefaec4006c..add8a87e3e60 100644 --- a/x11/XFree86-4-libraries/Makefile.inc +++ b/x11/XFree86-4-libraries/Makefile.inc @@ -22,9 +22,8 @@ SCRIPTS_ENV+= CC="${CC}" \ CFLAGS="${CFLAGS}" MAKE_ENV+= FBSDCC="${CC}" FBSDCXX="${CXX}" -_XBUILD_DIRS= include ${XBUILD_DIRS} XINSTALL_DIRS?= ${XBUILD_DIRS} -_XINCLUDE_DIRS= ${_XBUILD_DIRS} ${XINCLUDE_DIRS} +_XINCLUDE_DIRS= include ${XBUILD_DIRS} ${XINCLUDE_DIRS} pre-everything:: @if [ "x${XFREE86_VERSION}" != "x4" ]; then \ @@ -39,39 +38,36 @@ do-configure: @cp ${X11BASE}/lib/X11/config/date.def ${WRKSRC}/config/cf @cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} Makefile.boot - -.for i in ${_XINCLUDE_DIRS} - @cd ${WRKSRC}/${i} && ${WRKSRC}/config/imake/imake \ - -DTOPDIR=${WRKSRC} -DCURDIR=${i} -I${WRKSRC}/config/cf -.endfor -.for i in ${_XINCLUDE_DIRS} - @cd ${WRKSRC}/${i} && ${SETENV} ${MAKE_ENV} ${MAKE} Makefiles -.endfor -.for i in ${_XINCLUDE_DIRS} - @cd ${WRKSRC}/${i} && ${SETENV} ${MAKE_ENV} ${MAKE} includes -.endfor -.for i in ${_XBUILD_DIRS} - @cd ${WRKSRC}/${i} && ${SETENV} ${MAKE_ENV} ${MAKE} depend -.endfor + @for dir in ${_XINCLUDE_DIRS}; do \ + cd ${WRKSRC}/$${dir} && ${WRKSRC}/config/imake/imake \ + -DTOPDIR=${WRKSRC} -DCURDIR=$${dir} -I${WRKSRC}/config/cf; \ + done + @for dir in ${_XINCLUDE_DIRS}; do \ + cd ${WRKSRC}/$${dir} && ${SETENV} ${MAKE_ENV} ${MAKE} Makefiles; \ + done + @for dir in ${_XINCLUDE_DIRS}; do \ + cd ${WRKSRC}/$${dir} && ${SETENV} ${MAKE_ENV} ${MAKE} includes; \ + done + @for dir in include ${XBUILD_DIRS}; do \ + cd ${WRKSRC}/$${dir} && ${SETENV} ${MAKE_ENV} ${MAKE} depend; \ + done .endif .if !target(do-build) do-build: -.for i in ${XBUILD_DIRS} - @cd ${WRKSRC}/${i} && ${SETENV} ${MAKE_ENV} ${MAKE} all -.endfor + @for dir in ${XBUILD_DIRS}; do \ + cd ${WRKSRC}/$${dir} && ${SETENV} ${MAKE_ENV} ${MAKE} all; \ + done .endif .if !target(do-install) do-install: -.for i in ${XINSTALL_DIRS} - @cd ${WRKSRC}/${i} && ${SETENV} ${MAKE_ENV} ${MAKE} install -.endfor -.for i in ${XINSTALL_MAN_DIRS} - @cd ${WRKSRC}/${i} && ${SETENV} ${MAKE_ENV} ${MAKE} install.man -.endfor -.endif -.if ${XFREE86_HTML_MAN:L} == yes + @for dir in ${XINSTALL_DIRS}; do \ + cd ${WRKSRC}/$${dir} && ${SETENV} ${MAKE_ENV} ${MAKE} install; \ + done + @for dir in ${XINSTALL_MAN_DIRS}; do \ + cd ${WRKSRC}/$${dir} && ${SETENV} ${MAKE_ENV} ${MAKE} install.man; \ + done @${MKHTMLINDEX} ${PREFIX}/lib/X11/doc/html .endif |