mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Add recipe for keymapswitcher 1.2.7.10
Mostly a copy of the 1.2.7.9 recipe, but with the TODOs addressed. Patching the makefile is still necessary.
This commit is contained in:
53
haiku-apps/keymapswitcher/keymapswitcher-1.2.7.10.recipe
Normal file
53
haiku-apps/keymapswitcher/keymapswitcher-1.2.7.10.recipe
Normal file
@@ -0,0 +1,53 @@
|
||||
SUMMARY="Easy to use Keymap Switcher for Haiku"
|
||||
DESCRIPTION="This is a keymap switcher for Haiku. It is very similar to what you used to have in windows to change the keymap with hotkeys, but has some additional features (and lacks some, for sure)."
|
||||
HOMEPAGE="http://www.sf.net/projects/switcher"
|
||||
COPYRIGHT="1999-2003 Stas Maximov"
|
||||
LICENSE="BSD (4-clause)"
|
||||
SRC_URI="cvs://:pserver:anonymous@switcher.cvs.sourceforge.net:/cvsroot/switcher/keymapswitcher(haiku)#release_1_2_7_10"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 ?x86"
|
||||
|
||||
PROVIDES="
|
||||
keymapswitcher = $portVersion compat >= 1.2.7
|
||||
"
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:make
|
||||
cmd:mkdepend
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
makefile_engine
|
||||
"
|
||||
|
||||
SOURCE_DIR="$portVersionedName"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
# Fix makefile not to use BUILDHOME as an install dir variable.
|
||||
sed -i "s,BUILDHOME,HPKG_INSTALL_DIR,g" makefile
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs BUILDHOME=/boot/common/develop HPKG_INSTALL_DIR=$prefix
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
# We're not interested in the package, but that target copies the
|
||||
# interesting files to a well-known directory structure. Otherwise we'd have
|
||||
# to find out the name of the object dir and collect everything ourselves.
|
||||
# Obviously an install target would be even better.
|
||||
make BUILDHOME=/boot/common/develop HPKG_INSTALL_DIR=$prefix hpkg
|
||||
|
||||
# move misplaced KeymapSwitcher
|
||||
mkdir $preferencesDir
|
||||
mv $binDir/KeymapSwitcher $preferencesDir
|
||||
|
||||
addPreferencesDeskbarSymlink $preferencesDir/KeymapSwitcher
|
||||
}
|
||||
Reference in New Issue
Block a user