# util-macros 1.19.0 (aka xorg-macros)
# ==================
# If you don't have X installed, you still need this for 'makedepend' if
# you're compiling something that uses it like Cyrus IMAP.
# Get it
cd
test -f installed/util-macros-1.19.0.tar.bz2 &&
mv -f installed/util-macros-1.19.0.tar.bz2 .
test ! -f util-macros-1.19.0.tar.bz2 &&
wget --no-check-certificate \
https://www.x.org/releases/individual/util/util-macros-1.19.0.tar.bz2
# Extract the source
mkdir -p -m 0700 src
cd src
tar xjvf ~/util-macros-1.19.0.tar.bz2
cd util-macros-1.19.0
test $UID = 0 && chown -R root:root .
# Configure the build
./configure --prefix=/usr
# On my system, /usr/share/pkgconfig is a symlink to /usr/lib64/pkgconfig,
# so, xorg-macros.pc going in the former is OK because it really ends up in
# the latter.
#
# If you do not have that symlink and your pkg-config does not look in
# /usr/share/pkgconfig, then you either need to move that file after
# 'make install' puts it there, or look at /etc/profile.d/pkgconfig.sh
# to get it to look there also.
# Install it as root
su -c "make install"
# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/util-macros-*.tar.*
mv -f util-macros-1.19.0.tar.bz2 installed/
# If you ever want to uninstall util-macros, this should do it:
cd
su
test -d src/util-macros-* && ( cd src/util-macros-* ; make uninstall )
rm -f /usr/share/aclocal/xorg-macros.m4 \
/usr/lib64/pkgconfig/xorg-macros.pc \
/usr/share/pkgconfig/xorg-macros.pc \
/usr/share/util-macros/INSTALL
exit
find ~/src -maxdepth 1 -type d -name "util-macros-*" -exec rm -r {} \;
rm -f ~/installed/util-macros-*.tar.*