copy a default temporary host.def if you do not have one

PR:		33396
Submitted by:	maintainer
This commit is contained in:
Ying-Chieh Liao 2002-01-01 14:10:16 +00:00
parent 4cd36e32e9
commit 0fe76080c6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=52468
2 changed files with 20 additions and 0 deletions

View file

@ -41,6 +41,17 @@ post-patch:
find ${WRKSRC} -type f | xargs ${PERL} -pi -e \
"s@#include.*<malloc.h>@#include <stdlib.h>@g"
pre-configure:
.if !exists(${PREFIX}/lib/X11/config/host.def)
${CP} ${FILESDIR}/host.def ${PREFIX}/lib/X11/config
HOST_DEF_INSTALLED_BY_XTEL= yes
.endif
post-configure:
.if defined(HOST_DEF_INSTALLED_BY_XTEL)
${RM} ${PREFIX}/lib/X11/config/host.def
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}

View file

@ -0,0 +1,9 @@
/*
* Host.def for building FreeBSD bindists
*
* $XFree86: xc/programs/Xserver/hw/xfree86/etc/bindist/FreeBSD/host.def,v 1.3.4.1 2001/05/31 22:20:27 dawes Exp $
*/
#define InstallEmptyHostDef
#define BuildBindist