VirtualBox

source: vbox/trunk/src/VBox/Frontends/Common/VBoxKeyboard/Makefile.kmk@ 29748

Last change on this file since 29748 was 29748, checked in by vboxsync, 15 years ago

VBoxKeyboard: FreeBSD build fix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1# $Id: Makefile.kmk 29748 2010-05-21 21:20:42Z vboxsync $
2## @file
3# Makefile for the VirtualBox X11 keyboard library
4#
5
6#
7# Copyright (C) 2006-2010 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21ifeq ($(filter-out freebsd linux openbsd netbsd solaris,$(KBUILD_TARGET)),) # X11
22 DLLS += VBoxKeyboard
23 OTHERS += $(PATH_BIN)/vboxkeyboard.tar.bz2
24 OTHER_CLEAN += $(PATH_BIN)/vboxkeyboard.tar.bz2
25endif
26
27
28#
29# VBoxKeyboard - keyboard library for X11.
30#
31VBoxKeyboard_TEMPLATE = VBOXR3
32VBoxKeyboard_SOURCES = \
33 keyboard.c
34VBoxKeyboard_LIBS = X11
35VBoxKeyboard_LIBPATH = $(VBOX_LIBPATH_X11)
36
37
38#
39# vboxkeyboard.tar.gz - the LGPLed keyboard library must always be
40# redistributed with usable sources.
41#
42# This rule will link create a temporary symlink to src/X11/ and tar
43# up the selected files into a tarball that is installed into the
44# bin directory (probably belongs in /usr/shared/somewhere really,
45# but wtf, it's not like we're even trying to be FHS compliant).
46#
47## @todo this should be tar'ed down into the output directory and installed using an install target.
48VBOX_KEYBOARD_STAGE_DIR = $(PATH_TARGET)/VBoxKeyboard/install
49VBOX_KEYBOARD_DEST_DIR = $(VBOX_KEYBOARD_STAGE_DIR)/VBoxKeyboard/
50
51INSTALLS += VBoxKeyboard-Files
52
53VBoxKeyboard-Files_INST = $(subst $(PATH_TARGET),obj,$(VBOX_KEYBOARD_DEST_DIR))
54VBoxKeyboard-Files_MODE = a+rx,u+w
55VBoxKeyboard-Files_SOURCES = \
56 COPYING.LIB \
57 keyboard.c \
58 keyboard-layouts.h \
59 keyboard-list.h \
60 keyboard-tables.h \
61 keyboard-types.h \
62 Makefile \
63 ../../../../../include/VBox/VBoxKeyboard.h=>VBox/VBoxKeyboard.h
64
65$(PATH_BIN)/vboxkeyboard.tar.bz2: \
66 $(INSTARGET_VBoxKeyboard-Files) \
67 $(MAKEFILE_CURRENT)
68 $(call MSG_L1,Packing $@)
69 $(QUIET)$(RM) -f -- $@ $(patsubst %.bz2,%,$@)
70 $(QUIET)$(MKDIR) -p $(@D)
71ifeq ($(filter-out freebsd,$(KBUILD_TARGET)),)
72 $(QUIET)tar -cjf $@ \
73 -C $(VBOX_KEYBOARD_STAGE_DIR) VBoxKeyboard
74else
75 $(QUIET)tar --owner 0 --group 0 --ignore-failed-read -cjRf $@ \
76 -C $(VBOX_KEYBOARD_STAGE_DIR) VBoxKeyboard
77endif
78 $(QUIET)$(CHMOD) 0644 $@
79
80include $(KBUILD_PATH)/subfooter.kmk
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette