|
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/package/rene/tex4ht/tex4ht.conf
|
|
# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version. A copy of the GNU General Public
|
|
# License can be found at Documentation/COPYING.
|
|
#
|
|
# Many people helped and are helping developing ROCK Linux. Please
|
|
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
|
|
# file for details.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
tex4ht_main(){
|
|
unzip $archdir/tex4ht-$ver.zip
|
|
|
|
echo "Compiling and installing binaries ..."
|
|
gcc -o t4ht src/t4ht.c \
|
|
-DENVFILE=\"/$prefix/share/texmf/tex4ht/tex4ht.env\"
|
|
gcc -o tex4ht src/tex4ht.c \
|
|
-DENVFILE=\"/usr/share/texmf/tex4ht/tex4ht.env\" -DHAVE_DIRENT_H
|
|
cp -fv t4ht tex4ht $bindir/
|
|
|
|
echo "Installing support scripts ..."
|
|
cp -fv bin/unix/* $bindir/
|
|
|
|
# correct unwanted files before cp ...
|
|
rm -rf texmf/tex4ht/base
|
|
|
|
cp -rv texmf/* $root/$prefix/share/texmf/
|
|
|
|
# install our own corrected env file ...
|
|
rock_substitute $confdir/tex4ht.env > \
|
|
$root/$prefix/share/texmf/tex4ht/tex4ht.env
|
|
}
|
|
|
|
autoextract=0
|
|
custmain="tex4ht_main"
|
|
|