On 05/02/2011 12:33 PM, David C. Rankin wrote:
How do I fix the CMake variables so it finds bdftopcf? I don't know
why it isn't finding it in /usr/bin?? I have:
export CMAKE_PREFIX_PATH=/opt/qt:/opt/trinity:/usr
export CMAKE_INCLUDE_PATH=/opt/qt/include/tqt:\
/usr/include/dbus-1.0:\
/opt/trinity/include:\
/opt/trinity/include/libkrandr
export
LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/kde3:$LD_LIBRARY_PATH
export
PKG_CONFIG_PATH=:/opt/trinity/lib/pkgconfig:/opt/qt/lib/pkgconfig
cmake ${srcdir}/${_svnmod} \
-DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DQT_VERSION=3 \
-DWITH_QT3=ON \
-DQTDIR=/opt/qt \
-DQT_LIBRARY_DIRS=/opt/qt/lib \
-DWITH_PAM=ON \
-DBUILD_ALL=ON
make
What's the trick?
# $Id$
# Maintainer: Baho Utot <baho-utot(a)columbus.rr.com>
_module=kdebase
_source="/trinity.source"
_prefix="/usr"
_builddir=BUILD
pkgbase=trinity
pkgname=trinity-${_module}
pkgver=0
pkgrel=0
arch=('i686' 'x86_64')
url="http://trinity.pearsoncomputing.net"
license=('GPL2')
groups=('trinity')
pkgdesc="Trinity - ${_module}"
depends=( libxcomposite
libxtst
libxkbfile
libxcomposite
hal
desktop-file-utils
trinity-kdelibs)
makedepends=( xdg-utils
hicolor-icon-theme
libxt
qt3
xorg-bdftopcf
dbus-tqt
cmake
imake
subversion)
optdepends=( 'pciutils: PCI bus configuration space access library
and tools'
'desktop-file-utils: Command line utilities for working with
desktop entries'
'xscreensaver: Screen saver and locker for the X Window System')
options=(!docs)
install='install'
source=(Xsession kdmrc)
_version() {
pushd ${_source}/${_module}
pkgver=$(svnversion)
popd
}
_trinity.desktop (){
# create/install desktop
install -d -m755 ${pkgdir}/etc/X11/sessions
echo '[Desktop Entry]' > ${pkgdir}/etc/X11/sessions/trinity.desktop
echo 'Encoding=UTF-8' >> ${pkgdir}/etc/X11/sessions/trinity.desktop
echo 'Type=XSession' >> ${pkgdir}/etc/X11/sessions/trinity.desktop
echo "Exec=${_prefix}/bin/startkde" >>
${pkgdir}/etc/X11/sessions/trinity.desktop
echo "TryExec=${_prefix}/bin/startkde" >>
${pkgdir}/etc/X11/sessions/trinity.desktop
echo 'Name=Trinity' >> ${pkgdir}/etc/X11/sessions/trinity.desktop
echo 'Comment=The Trinity Desktop Environment. A powerful Open
Source graphical desktop environment' >>
${pkgdir}/etc/X11/sessions/trinity.desktop
chmod 0755 ${pkgdir}/etc/X11/sessions/trinity.desktop
}
build() {
_version
mkdir -vp ${_builddir}
cd ${_builddir}
msg "Starting cmake..."
cmake ${_source}/${_module}/ \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=${_prefix} \
-DSYSCONF_INSTALL_DIR=/etc \
-DBUILD_ALL=ON \
-DWITH_XFIXES=ON \
-DWITH_HAL=ON \
-DWITH_ARTS=ON \
-DWITH_SASL=ON \
-DWITH_OPENEXR=ON \
-DWITH_XCOMPOSITE=ON \
-DWITH_XCURSOR=ON \
-DWITH_XRANDR=ON \
-DWITH_XRENDER=ON \
-DWITH_XDAMAGE=ON \
-DWITH_SHADOW=ON \
-DWITH_XDMCP=ON \
-DWITH_XINERAMA=ON \
-DWITH_XEXT=ON
make
}
package() {
_version
msg "Packaging - $pkgname-$pkgver"
cd ${_builddir}
make DESTDIR="$pkgdir/" install
# create/install desktop and update kdmrc and Xsession
_trinity.desktop
_kdmdir=${_prefix}/share/config/kdm
[[ -d ${pkgdir}/${_kdmdir} ]] || install -d -m755 ${pkgdir}/${_kdmdir}
[[ -f kdmrc ]] && cp -v kdmrc ${pkgdir}/${_kdmdir}
[[ -f ${scrdir}/Xsession ]] && {
cp -v ${scrdir}/Xsession ${pkgdir}/${_kdmdir}
chmod 0755 ${pkgdir}/${_kdmdir}/Xsession
}
[[ -d ${pkgdir}/usr/bin ]] || mkdir -p ${pkgdir}/usr/bin
ln -snf startkde ${pkgdir}/usr/bin/starttrinity
#
# Cleanup
#
rm -rf ${pkgdir}/usr/share/apps/Settings
rm -rf ${pkgdir}/usr/share/templates/.source/emptydir
}
md5sums=('9eae31bceae6e720fb77c98a96e680a6'
'f74fd85e429cc20ee96888e8791cdc0e')