branch Attitude Adjustment packages
[12.09/packages.git] / lang / python-pyosc / Makefile
1 #
2 # Copyright (C) 2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=pyOSC
11 PKG_VERSION:=0.3.5b-5294
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://trac.v2.nl/raw-attachment/wiki/pyOSC
16 PKG_MD5SUM:=933f85d1ae76f31e711d4a2228507dd8
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_BUILD_DEPENDS:=python
20
21 include $(INCLUDE_DIR)/package.mk
22 $(call include_mk, python-package.mk)
23
24 define Package/python-pyosc
25   SUBMENU:=Python
26   SECTION:=lang
27   CATEGORY:=Languages
28   TITLE:=python-pyosc
29   URL:=http://trac.v2.nl/wiki/pyOSC
30   DEPENDS:=+python
31   MAINTAINER:=Hamish Guthrie <hcg@openwrt.org>
32 endef
33
34 define Package/python-pyosc/description
35   A simple OpenSoundControl implementation in pure Python
36 endef
37
38 define Build/Compile
39         $(INSTALL_DIR) $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)
40         $(CP) \
41                 $(PKG_BUILD_DIR)/OSC.py \
42                 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)
43 endef
44
45 define Package/python-pyosc/install
46         $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
47         $(CP) \
48                 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/OSC.py \
49                 $(1)$(PYTHON_PKG_DIR)
50 endef
51
52 $(eval $(call BuildPackage,python-pyosc))