1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/x11-servers/XttXF86srv-common/files/Imakefile
Jun Kuriyama 2ef96d0f78 Add PC98 support.
PR:		ports/8537
Submitted by:	NAKAJI Hiroyuki <nakaji@zeisei3.dpri.kyoto-u.ac.jp>
1998-12-05 06:12:17 +00:00

168 lines
5.1 KiB
Plaintext

CONFFILE= host.def.local
CP= /bin/cp
DO_NADA= /usr/bin/true
ECHO_MSG= echo
ECHO= echo
WRKDIR?= .
DISTDIR?= /usr/ports/distfiles
FILESDIR?= ../files
LOCALBASE?= /usr/local
#if BuildXInputExt
BUILDXINPUTEXT= YES
#else
JOYSTICSUPPORT= YES
#endif
#if BuildPexExt
BUILDPEXEXT= YES
#endif
#if BuildXIE
BUILDXIE= YES
#endif
#if HasSecureRPC
HASSECURERPC= YES
#endif
#if HasXdmAuth
HASXDMAUTH= YES
#endif
#if HasKrb4
HASKRB4= YES
#endif
all:: SecureRPCCheck XdmAuthCheck Krb4Check \
InputExtCheck pexCheck xieCheck \
ELFCheck
initialize::
@( \
${ECHO_MSG} " Now checking your XFree86 environment."; \
rm -f ${CONFFILE}; \
${ECHO} "#define FreeTypeLibDir ${LOCALBASE}/lib" >> ${CONFFILE}; \
${ECHO} "#define FreeTypeIncDir ${LOCALBASE}/include" >> ${CONFFILE}; \
${ECHO} "#undef XF86SVGAServer" >> ${CONFFILE}; \
${ECHO} "#undef XF86VGA16Server" >> ${CONFFILE}; \
${ECHO} "#undef XF86VGA16DualServer" >> ${CONFFILE}; \
${ECHO} "#undef XF86MonoServer" >> ${CONFFILE}; \
${ECHO} "#undef XF86MonoDualServer" >> ${CONFFILE}; \
${ECHO} "#undef XF86S3Server" >> ${CONFFILE}; \
${ECHO} "#undef XF86S3VServer" >> ${CONFFILE}; \
${ECHO} "#undef XF86I8514Server" >> ${CONFFILE}; \
${ECHO} "#undef XF86Mach8Server" >> ${CONFFILE}; \
${ECHO} "#undef XF86Mach32Server" >> ${CONFFILE}; \
${ECHO} "#undef XF86Mach64Server" >> ${CONFFILE}; \
${ECHO} "#undef XF86P9000Server" >> ${CONFFILE}; \
${ECHO} "#undef XF86AGXServer" >> ${CONFFILE}; \
${ECHO} "#undef XF86W32Server" >> ${CONFFILE}; \
${ECHO} "#undef XF86I128Server" >> ${CONFFILE}; \
${ECHO} "#undef XF98EGCServer" >> ${CONFFILE}; \
${ECHO} "#undef XF98GA968Server" >> ${CONFFILE}; \
${ECHO} "#undef XF98GANBWAPServer" >> ${CONFFILE}; \
${ECHO} "#undef XF98MGAServer" >> ${CONFFILE}; \
${ECHO} "#undef XF98NEC480Server" >> ${CONFFILE}; \
${ECHO} "#undef XF98NECS3Server" >> ${CONFFILE}; \
${ECHO} "#undef XF98NKVNECServer" >> ${CONFFILE}; \
${ECHO} "#undef XF98PWLBServer" >> ${CONFFILE}; \
${ECHO} "#undef XF98PWSKBServer" >> ${CONFFILE}; \
${ECHO} "#undef XF98SVGAServer" >> ${CONFFILE}; \
${ECHO} "#undef XF98TGUIServer" >> ${CONFFILE}; \
${ECHO} "#undef XF98WABEPServer" >> ${CONFFILE}; \
${ECHO} "#undef XF98WABSServer" >> ${CONFFILE}; \
${ECHO} "#undef XF98WSNAServer" >> ${CONFFILE}; \
${ECHO} "#undef BuildFontServer" >> ${CONFFILE}; \
${ECHO} "#undef BuildFonts" >> ${CONFFILE}; \
${ECHO} "#undef XnestServer" >> ${CONFFILE}; \
${ECHO} "#undef XVirtualFramebufferServer" >> ${CONFFILE}; \
${ECHO} "#undef XprtServer" >> ${CONFFILE}; \
${ECHO} "#define BuildFonts NO" >> ${CONFFILE}; \
${ECHO} "#define XnestServer NO" >> ${CONFFILE}; \
${ECHO} "#define XVirtualFramebufferServer NO" >> ${CONFFILE}; \
${ECHO} "#define XprtServer NO" >> ${CONFFILE}; \
)
InputExtCheck:: initialize
.if defined(BUILDXINPUTEXT) && ${BUILDXINPUTEXT} == YES
@( \
${ECHO} "#define BuildXInputExt YES" >> ${CONFFILE}; \
${ECHO_MSG} " Using BuildXInputExt." )
.else
@( \
${ECHO} "#define JoystickSupport YES" >> ${CONFFILE}; \
${ECHO_MSG} " Using JoystickSupport." )
.endif
pexCheck:: initialize
.if defined(BUILDPEXEXT) && ${BUILDPEXEXT} == YES
@( \
${ECHO} "#define BuildPexExt YES" >> ${CONFFILE}; \
${ECHO_MSG} " Using BuildPexExt." )
.else
@${DO_NADA}
.endif
xieCheck:: initialize
.if defined(BUILDXIE) && ${BUILDXIE} == YES
@( \
${ECHO} "#define BuildXIE YES" >> ${CONFFILE}; \
${ECHO_MSG} " Using BuildXIE." )
.else
@${DO_NADA}
.endif
ELFCheck:: initialize
.if defined(PORTOBJFORMAT) && ${PORTOBJFORMAT} == elf
@( \
${ECHO} "#define UseElfFormat YES" >> ${CONFFILE}; \
${ECHO} "#define BuildDynamicLoading YES" >> ${CONFFILE}; \
${ECHO_MSG} " Using ELF format." )
.else
@${DO_NADA}
.endif
SecureRPCCheck:: initialize
.if defined(HASSECURERPC) && ${HASSECURERPC} == YES
@( \
${ECHO} "#define HasSecureRPC ${HASSECURERPC}" >> ${CONFFILE}; \
${ECHO_MSG} " Using Secure RPC"; \
)
.else
@${DO_NADA}
.endif
XdmAuthCheck:: initialize
.if defined(HASXDMAUTH) && ${HASXDMAUTH} == YES
@( \
${ECHO_MSG} " Using XdmAuth." ; \
if [ ! -f ${WRKDIR}/xc/lib/Xdmcp/Wraphelp.c ]; then \
if [ -f ${DISTDIR}/xc/Wraphelp.c ]; then \
${ECHO_MSG} " Whaphelp.c found in DISTDIR directory, copying it to source tree." ; \
${CP} ${DISTDIR}/xc/Wraphelp.c ${WRKDIR}/xc/lib/Xdmcp/ ; \
${ECHO} "#define HasXdmAuth ${HASXDMAUTH}" >> ${CONFFILE} ; \
elif [ -f ${FILESDIR}/Wraphelp.c ]; then \
${ECHO_MSG} " Whaphelp.c found in FILESDIR directory, copying it to source tree." ; \
${CP} ${FILESDIR}/Wraphelp.c ${WRKDIR}/xc/lib/Xdmcp/ ; \
${ECHO} "#define HasXdmAuth ${HASXDMAUTH}" >> ${CONFFILE} ; \
else \
${ECHO_MSG} "Wraphelp.c not found. You can not use XDM-AUTHORIZATION-1!" ; \
false ; \
fi ; \
fi ; \
)
.else
@${DO_NADA}
.endif
Krb4Check:: initialize
.if defined(HASKRB4) && ${HASKRB4} == YES
@( \
${ECHO} "#define HasKrb4 ${HASKRB4}" >> ${CONFFILE} ; \
${ECHO_MSG} " Using KerberosIV." ; \
${ECHO_MSG} " Applying KerberosIV patches" ; \
${CP} ${FILESDIR}/krb4auth.c ${FILESDIR}/krb4auth.h ${WRKDIR}/xc/programs/xdm/; \
patch -s -d ${WRKDIR}/xc -E -p0 < ${FILESDIR}/kerberos4.diffs ; \
)
.else
@${DO_NADA}
.endif