
@ set GTK		gtk+-2.10.9
@ set GETTEXT		gettext-0.16
@ set GLIB		glib-2.12.9
@ set PANGO		pango-1.14.9
@ set PKG-CONFIG	pkg-config-0.20
@ set ATK		atk-1.9.1
@ set CAIRO		cairo-1.2.6
@ set PNG		libpng-1.2.8
@ set FREETYPE		freetype-2.3.1
@ set FONTCONFIG	fontconfig-2.4.2
@ set LIBXML		libxml2-2.6.9
@ set TIFF		tiff-3.8.2
@ set JPEG		6b

@(eq,${UNAME},SunOS)	set PNG_MACHINE	solaris
@(eq,${UNAME},Linux)	set PNG_MACHINE	linux
@(eq,${UNAME},FreeBSD)	set PNG_MACHINE	freebsd
@(eq,${UNAME},Darwin)	set PNG_MACHINE	darwin

@ source		libs
@ work			work

@ insert		.

@ make file work/${GETTEXT}/check.txt from \
		file libs \
			${GETTEXT}.tar.gz

	cp libs/${GETTEXT}.tar.gz work
	pushd work;			\
	gzip -d ${GETTEXT}.tar.gz;	\
	tar xvf ${GETTEXT}.tar;		\
	rm -rf ${GETTEXT}.tar*		\
	popd

	pushd work/${GETTEXT};	\
	./configure;		\
	make;			\
	sudo make install;	\
	popd

	touch work/${GETTEXT}/check.txt
	

@ make file work/${PKG-CONFIG}/check.txt from \
		file libs \
			${PKG-CONFIG}.tar.gz

	cp libs/${PKG-CONFIG}.tar.gz work
	pushd work;			\
	gzip -d ${PKG-CONFIG}.tar.gz;	\
	tar xvf ${PKG-CONFIG}.tar;	\
	rm -rf ${PKG-CONFIG}.tar*	\
	popd

	pushd work/${PKG-CONFIG};	\
	./configure;			\
	make;				\
	sudo make install;		\
	popd

	touch work/${PKG-CONFIG}/check.txt
	


@ make file work/${LIBXML}/check.txt from \
		file libs \
			${LIBXML}.tar.gz

	cp libs/${LIBXML}.tar.gz work
	pushd work;			\
	gzip -d ${LIBXML}.tar.gz;	\
	tar xvf ${LIBXML}.tar;	\
	rm -rf ${LIBXML}.tar*	\
	popd

	pushd work/${LIBXML};	\
	./configure;			\
	make;				\
	sudo make install;		\
	popd

	touch work/${LIBXML}/check.txt
	

@ make file work/${FREETYPE}/check.txt from \
		file libs \
			${FREETYPE}.tar.gz

	cp libs/${FREETYPE}.tar.gz work
	pushd work;			\
	gzip -d ${FREETYPE}.tar.gz;	\
	tar xvf ${FREETYPE}.tar;	\
	rm -rf ${FREETYPE}.tar*	\
	popd

	pushd work/${FREETYPE};	\
	./configure;			\
	make;				\
	sudo make install;		\
	popd

	touch work/${FREETYPE}/check.txt


@ make file work/${FONTCONFIG}/check.txt from \
		file libs \
			${FONTCONFIG}.tar.gz

	cp libs/${FONTCONFIG}.tar.gz work
	pushd work;			\
	gzip -d ${FONTCONFIG}.tar.gz;	\
	tar xvf ${FONTCONFIG}.tar;		\
	rm -rf ${FONTCONFIG}.tar*		\
	popd

	pushd work/${FONTCONFIG};	\
	./configure;		\
	make;			\
	sudo make install;	\
	popd

	touch work/${FONTCONFIG}/check.txt


@ make file work/${GLIB}/check.txt from \
		file libs \
			${GLIB}.tar.gz

	cp libs/${GLIB}.tar.gz work
	pushd work;			\
	gzip -d ${GLIB}.tar.gz;	\
	tar xvf ${GLIB}.tar;	\
	rm -rf ${GLIB}.tar*	\
	popd

	pushd work/${GLIB};	\
	./configure;			\
	make;				\
	sudo make install;		\
	popd

	touch work/${GLIB}/check.txt
	

@ make file work/${PNG}/check.txt from \
		file libs \
			${PNG}.tar.bz2

	cp libs/${PNG}.tar.bz2 work
	pushd work;			\
	tar xjvf ${PNG}.tar.bz2;	\
	rm -rf ${PNG}.tar*	\
	popd

	pushd work/${PNG};	\
	cp scripts/makefile.${PNG_MACHINE} makefile; \
	make;				\
	sudo make install;		\
	popd

	touch work/${PNG}/check.txt


@ make file work/jpeg-${JPEG}/check.txt from \
		file libs \
			jpegsrc.v${JPEG}.tar.gz

	cp libs/jpegsrc.v${JPEG}.tar.gz work
	pushd work;			\
	gzip -d jpegsrc.v${JPEG}.tar.gz;	\
	tar xvf jpegsrc.v${JPEG}.tar;		\
	rm -rf jpegsrc.v${JPEG}.tar*	\
	popd

	pushd work/jpeg-${JPEG};	\
	./configure;		\
	make;				\
	sudo make install;		\
	popd

	touch work/jpeg-${JPEG}/check.txt


# make file work/${TIFF}/check.txt from \
#		file libs \
#			${TIFF}.tar.gz
#
#	cp libs/${TIFF}.tar.gz work
#	pushd work;			\
#	gzip -d ${TIFF}.tar.gz;	\
#	tar xvf ${TIFF}.tar;		\
#	rm -rf ${TIFF}.tar*		\
#	popd
#
#	pushd work/${TIFF};	\
#	./configure;		\
#	make;			\
#	sudo make install;	\
#	popd
#
#	touch work/${TIFF}/check.txt

@ make file work/${ATK}/check.txt from \
		file libs \
			${ATK}.tar.bz2

	cp libs/${ATK}.tar.bz2 work
	pushd work;			\
	tar xjvf ${ATK}.tar.bz2;	\
	rm -rf ${ATK}.tar*	\
	popd

	pushd work/${ATK};	\
	./configure;			\
	make;				\
	sudo make install;		\
	popd

	touch work/${ATK}/check.txt
	

@ make file work/${CAIRO}/check.txt from \
		file libs \
			${CAIRO}.tar.gz

	cp libs/${CAIRO}.tar.gz work
	pushd work;			\
	gzip -d ${CAIRO}.tar.gz;	\
	tar xvf ${CAIRO}.tar;	\
	rm -rf ${CAIRO}.tar*	\
	popd

	pushd work/${CAIRO};	\
	./configure;			\
	make;				\
	sudo make install;		\
	popd

	touch work/${CAIRO}/check.txt


@ make file work/${PANGO}/check.txt from \
		file libs \
			${PANGO}.tar.gz

	cp libs/${PANGO}.tar.gz work
	pushd work;			\
	gzip -d ${PANGO}.tar.gz;	\
	tar xvf ${PANGO}.tar;	\
	rm -rf ${PANGO}.tar*	\
	popd

	pushd work/${PANGO};	\
	./configure;			\
	make;				\
	sudo make install;		\
	popd

	touch work/${PANGO}/check.txt
	


@ make file work/${GTK}/check.txt from \
		file libs \
			${GTK}.tar.gz

	cp libs/${GTK}.tar.gz work
	pushd work;			\
	gzip -d ${GTK}.tar.gz;	\
	tar xvf ${GTK}.tar;	\
	rm -rf ${GTK}.tar*	\
	popd

	pushd work/${GTK};	\
	./configure --without-libtiff --without-libjpeg;	\
	make;				\
	sudo make install;		\
	popd

	touch work/${GTK}/check.txt
	
	