[BACK]Return to INSTALL CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / xpkgwedge

File: [cvs.NetBSD.org] / pkgsrc / pkgtools / xpkgwedge / Attic / INSTALL (download)

Revision 1.11, Fri Apr 30 19:44:21 2004 UTC (15 years, 11 months ago) by tv
Branch: MAIN
CVS Tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4, pkgsrc-2006Q3-base, pkgsrc-2006Q3, pkgsrc-2006Q2-base, pkgsrc-2006Q2, pkgsrc-2006Q1-base, pkgsrc-2006Q1, pkgsrc-2005Q4-base, pkgsrc-2005Q4, pkgsrc-2005Q3-base, pkgsrc-2005Q3, pkgsrc-2005Q2-base, pkgsrc-2005Q2, pkgsrc-2005Q1-base, pkgsrc-2005Q1, pkgsrc-2004Q4-base, pkgsrc-2004Q4, pkgsrc-2004Q3-base, pkgsrc-2004Q3, pkgsrc-2004Q2-base, pkgsrc-2004Q2, cwrapper-base, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.10: +10 -3 lines

1.10: Add a chunk of shlib override make-code to make this work on Interix,
and patch site.def (but differently from how it is patched on OpenWindows).

# $NetBSD: INSTALL,v 1.11 2004/04/30 19:44:21 tv Exp $

FONT_PROGS="@FONT_PROGS@"
X11BASE=@X11BASE@

X11_HOSTDEF=${X11BASE}/lib/X11/config/host.def
HOSTDEF=${PKG_PREFIX}/lib/X11/config/host.def
X11_SITEDEF=${X11BASE}/lib/X11/config/site.def
SITEDEF=${PKG_PREFIX}/lib/X11/config/site.def
X11_SV4LIB=${X11BASE}/lib/X11/config/sv4Lib.tmpl
SV4LIB=${PKG_PREFIX}/lib/X11/config/sv4Lib.tmpl

SV4LIB_SUBST_SED="-e s/^	/        /"
SITEDEF_SUBST_SED="-e s/\#endif.*VendorCF.*/\#include <host.def>\\
&/"

case ${STAGE} in
POST-INSTALL)
	${ECHO_N} "Symlinking font programs..."
	for prog in ${FONT_PROGS}; do
		if [ -f ${X11BASE}/bin/$prog -a				\
		     ${PKG_PREFIX} != ${X11BASE} ]; then
			${LN} -fs ${X11BASE}/bin/$prog			\
				${PKG_PREFIX}/bin/$prog
		fi
	done
	${ECHO} "done."
	;;

VIEW-INSTALL)
	if [ ${PKG_PREFIX} = ${X11BASE} -o -s ${HOSTDEF} ]; then
		${ECHO_N} "Updating ${HOSTDEF}..."
		${CP} -f ${HOSTDEF} ${HOSTDEF}.bak
	else
		${ECHO_N} "Creating ${HOSTDEF}..."
		if [ -f ${X11_HOSTDEF} ]; then
			${CP} -f ${X11_HOSTDEF} ${HOSTDEF}.bak
		else
			${CP} -f /dev/null ${HOSTDEF}.bak
		fi
	fi
	( ${ECHO} '#include <xpkgwedge.def>';				\
	  ${GREP} -v xpkgwedge ${HOSTDEF}.bak;				\
	) > ${HOSTDEF}
	${RM} -f ${HOSTDEF}.bak
	${ECHO} "done."
	case `uname`:${X11BASE} in
	*:*openwin)
		${ECHO_N} "Patching OpenWindows templates..."
		${SED} "${SITEDEF_SUBST_SED}" ${X11_SITEDEF} > ${SITEDEF}
		${SED} "${SV4LIB_SUBST_SED}" ${X11_SV4LIB} > ${SV4LIB}
		${ECHO} "done."
		;;
	Interix:/usr/X11R6)
		${ECHO_N} "Patching Interix templates..."
		${SED} -e "1i\\
#include <host.def>
" -e "/CcCmd/d;/ProjectRoot/d" ${X11_SITEDEF} > ${SITEDEF}
		${ECHO} "done."
		;;
	esac
	;;
esac