1 DESCRIPTION = "teTeX is a complete TeX distribution for UNIX compatible systems"
3 SECTION = "console/utils"
4 DEPENDS = "tetex-native flex gd ncurses libpng t1lib x11 xau xext xt zlib"
5 TETEX_BUILDSYSTEM_TAMER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
8 SRC_URI = "ftp://dante.ctan.org/tex-archive/systems/unix/teTeX/current/distrib/tetex-src-${PV}.tar.gz \
9 file://configure.patch;patch=1"
10 S = ${WORKDIR}/tetex-src-${PV}
16 export BUILDCC = "${BUILD_CC}"
17 export BUILDCFLAGS = "${BUILD_CFLAGS}"
18 export BUILDLDFLAGS = "${BUILD_LDFLAGS}"
19 export BUILDCCLD = "${BUILD_CC}"
21 EXTRA_OECONF = "--with-system-libgd \
22 --with-system-ncurses \
23 --with-ncurses-include=${STAGING_INCDIR} \
24 --with-system-pnglib \
30 # NOTE: In theory, teTeX has a good buildsystem, which automatically detects
31 # whether we are cross-compiling and compiles the necessary host tools.
32 # Unfortunately it doesn't work in our case and it looks easier to add
33 # tetex-native for the time being. Cheers, Mickey.
36 ln -sf ${STAGING_BINDIR} ${S}/utils/texinfo/tools/info
37 ln -sf ${STAGING_BINDIR} ${S}/utils/texinfo/tools/makeinfo
38 cat >${S}/utils/texinfo/tools/Makefile <<EOF
46 # NOTE: This is really ugly. Unfortunately the teTeX people seem not to know about PREFIX...
48 install -d ${D}${bindir}
49 install -d ${D}${libdir}
50 install -d ${D}${datadir}/texmf
51 install -d ${D}${localstatedir}/lib/textmf
53 export bindir="${D}${bindir}" \
54 sbindir="${D}${sbindir}" \
55 libexecdir="${D}${libexecdir}" \
56 datadir="${D}${datadir}" \
57 sysconfdir="${D}${sysconfdir}" \
58 sharedstatedir="${D}${sharedstatedir}" \
59 localstatedir="${D}${localstatedir}" \
60 libdir="${D}${libdir}" \
61 includedir="${D}${includedir}" \
62 oldincludedir="${D}${oldincludedir}" \
63 infodir="${D}${infodir}" \
64 mandir="${D}${mandir}" \
65 texmf="${D}${datadir}/texmf" \
66 scriptdir="${D}${bindir}" \
67 web2cdir="${D}${datadir}" \
68 kpathsea="${D}${libdir}/libkpathsea.la" \
70 MAKE="make -e" oe_runmake -e install
73 RRECOMMENDS_${PN} = "tetex-texmf-dvips tetex-texmf-texconfig tetex-texmf-fonts"
74 PACKAGES =+ "tetex-texmf-dvips tetex-texmf-texconfig tetex-texi2html"
75 FILES_${PN} += "${localstatedir} ${datadir}"
76 FILES_${PN}-doc += "${datadir}/texinfo ${datadir}/man ${datadir}/info"
77 FILES_tetex-texmf-dvips = "${datadir}/texmf/dvips"
78 FILES_tetex-texmf-texconfig = "${datadir}/texmf/texconfig"
79 FILES_tetex-texi2html = "${datadir}/texi2html"