mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
12541679f4
Submitted by: maintainer 1. Xtt X True Type Server has been updated to 1.0. Now it supports KOI-8 and many ISO-8859-* TrueType fonts. 2. Old version in ports-current has following probrems. * All packages has same contents. this means all packages are broken. * incorrect PKGNAME * incorrect place for documents. it should be share/doc/. not lib/X11/doc/... * incorrect spelling
135 lines
4.1 KiB
Plaintext
135 lines
4.1 KiB
Plaintext
CONFFILE= host.def.local
|
|
CP= /bin/cp
|
|
DO_NADA= /usr/bin/true
|
|
ECHO_MSG= 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
|
|
|
|
initialize::
|
|
@( \
|
|
${ECHO_MSG} " Now checking your XFree86 environment."; \
|
|
rm -f ${CONFFILE}; \
|
|
${ECHO_MSG} "#define FreeTypeLibDir ${LOCALBASE}/lib" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#define FreeTypeIncDir ${LOCALBASE}/include" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86SVGAServer" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86VGA16Server" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86VGA16DualServer" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86MonoServer" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86MonoDualServer" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86S3Server" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86S3VServer" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86I8514Server" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86Mach8Server" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86Mach32Server" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86Mach64Server" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86P9000Server" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86AGXServer" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86W32Server" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XF86I128Server" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef BuildFontServer" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef BuildFonts" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XnestServer" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XVirtualFramebufferServer" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#undef XprtServer" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#define BuildFonts NO" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#define XnestServer NO" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#define XVirtualFramebufferServer NO" >> ${CONFFILE}; \
|
|
${ECHO_MSG} "#define XprtServer NO" >> ${CONFFILE}; \
|
|
)
|
|
|
|
InputExtCheck:: initialize
|
|
.if defined(BUILDXINPUTEXT) && ${BUILDXINPUTEXT} == YES
|
|
@( \
|
|
${ECHO_MSG} "#define BuildXInputExt YES" >> ${CONFFILE}; \
|
|
${ECHO_MSG} " Using BuildXInputExt." )
|
|
.else
|
|
@( \
|
|
${ECHO_MSG} "#define JoystickSupport YES" >> ${CONFFILE}; \
|
|
${ECHO_MSG} " Using JoystickSupport." )
|
|
.endif
|
|
|
|
pexCheck:: initialize
|
|
.if defined(BUILDPEXEXT) && ${BUILDPEXEXT} == YES
|
|
@( \
|
|
${ECHO_MSG} "#define BuildPexExt YES" >> ${CONFFILE}; \
|
|
${ECHO_MSG} " Using BuildPexExt." )
|
|
.endif
|
|
|
|
xieCheck:: initialize
|
|
.if defined(BUILDXIE) && ${BUILDXIE} == YES
|
|
@( \
|
|
${ECHO_MSG} "#define BuildXIE YES" >> ${CONFFILE}; \
|
|
${ECHO_MSG} " Using BuildXIE." )
|
|
.endif
|
|
|
|
SecureRPCCheck:: initialize
|
|
.if defined(HASSECURERPC) && ${HASSECURERPC} == YES
|
|
@( \
|
|
${ECHO_MSG} "#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_MSG} "#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_MSG} "#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_MSG} "#define HasKrb4 ${HASKRB4}" >> ${CONFFILE} ; \
|
|
${ECHO_MSG} " Using KerberosIV." ; \
|
|
${ECHO_MSG} "===> Applying KerberosIV patches" ; \
|
|
patch -s -d ${WRKDIR}/xc -E -p0 < ${FILESDIR}/kerberos4.diffs ; \
|
|
)
|
|
.else
|
|
@${DO_NADA}
|
|
.endif
|
|
|