You are not logged in.
Been looking into Kmix lately and I've seen a couple changes and would like to build it from trunk. I wrote a PKGBUILD but ran into this problem during package configuration:
CMake Error at pics/CMakeLists.txt:28 (kde4_install_icons):
Unknown CMake command "kde4_install_icons".
kdelibs-4.3.0-2 is installed which owns /usr/share/apps/cmake/modules/KDE4Macros.cmake. The best I can find is:
I've noticed that some projects, such as kdiamond, depends on the CMakeLists.txt of the parent directory. Build the entire kdereview directory will build kdiamond. I'm unsure of how you can build only one project from the top level without manually editing the CMakeLists.txt file though
I'm pretty new to this but it looks like I'm going to have to edit ${srcdir}/build/kmix/pics/CMakeLists.txt but am unsure how to do this.
Last edited by Gen2ly (2009-08-15 20:17:07)
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
Here's the parent CMakeList.txt:
http://websvn.kde.org/trunk/KDE/kdemult … iew=markup
and the PKGBUILD to date:
# Maintainer(original): Pierre Schmitz <pierre@archlinux.de>
# Contributor: Gen2ly <dirk.r.gently@gmail.com>
pkgname=('kdemultimedia-kmix-oss')
pkgver=1011519
pkgrel=1
pkgdesc='Sound Mixer'
arch=('x86_64')
url='http://www.kde.org'
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kdemultimedia')
install='kdemultimedia.install'
makedepends=('kdelibs-experimental' 'kdebase-runtime')
conflicts=('kdemultimedia-kmix')
#_svntrunk=svn://anonsvn.kde.org/home/kde/trunk/KDE/kdemultimedia/
#_svnmod=kmix
build() {
if [ ! -d $srcdir/build ]; then
mkdir $srcdir/build
fi
cd $srcdir/build
svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdemultimedia/kmix
cd $srcdir/build/kmix
mv mixer_oss4.cpp mixer.cpp
mv mixer_oss4.h mixer.h
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_Xine=OFF \
-DWITH_PulseAudio=OFF
make
make DESTDIR=$pkgdir install
}
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
It's just a sytactical remark:
1. You're the Maintainer, not Contributor.
2.
source=()
md5sums=()
According to this site: http://wiki.archlinux.org/index.php/Arc … guidelines, you can take it into the PKGBUILD.
3. license=('GPL' 'LGPL' 'FDL') <- Are there really 3 differenct licenses ?
4. arch=('x86_64') <- Can't it work on 32 bit os ?
5. In the end of build function: make -> make | return 1
But it's really not logical/functional changing.
Offline
Thanks for the tips, djszapi. I hadn't seen that page before, very useful. As for the license I can find no mention of it in the kmix svn. I've inherited parts of the PKGBUILD from the original so while the license may be broad, it should be covered.
Gonna leave arch as is now (especially since i haven't compiled it), 97% sure it'll compile on i686...
Gotta find a way to inherit the parent directories cmakelist.txt somehow - haven't found a way to do it yet.
Last edited by Gen2ly (2009-08-15 12:40:46)
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
Ok, I did it. I had to cmake from the parent directory as it sets attributes to subdirectories.
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline