python-sip: add missing dependency
[openwrt/svn-archive/archive.git] / libs / liblo / Makefile
1 #
2 # Copyright (C) 2010 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:=liblo
11 PKG_VERSION:=0.26
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/liblo
16 PKG_MD5SUM:=5351de14262560e15e7f23865293b16f
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/liblo/Default
24 SUBMENU:=Sound
25 TITLE:=Lightweight Open Sound Control (OSC)
26 URL:=http://liblo.sourceforge.net/
27 endef
28
29 define Package/liblo
30 $(call Package/liblo/Default)
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE+= library
34 DEPENDS:= +libpthread
35 endef
36
37 define Package/liblo-utils
38 $(call Package/liblo/Default)
39 SECTION:=utils
40 CATEGORY:=Utilities
41 TITLE+= utilities
42 DEPENDS:= +liblo
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include
47 ( cd $(PKG_INSTALL_DIR); $(CP) \
48 ./usr/include/lo \
49 $(1)/usr/include/ \
50 )
51 $(INSTALL_DIR) $(1)/usr/lib
52 ( cd $(PKG_INSTALL_DIR); $(CP) \
53 ./usr/lib/liblo.{a,so*} \
54 $(1)/usr/lib/ \
55 )
56 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
57 ( cd $(PKG_INSTALL_DIR); $(CP) \
58 ./usr/lib/pkgconfig/liblo.pc \
59 $(1)/usr/lib/pkgconfig/ \
60 )
61 endef
62
63 define Package/liblo/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 ( cd $(PKG_INSTALL_DIR); $(CP) \
66 ./usr/lib/liblo.so.* \
67 $(1)/usr/lib/ \
68 )
69 endef
70
71 define Package/liblo-utils/install
72 $(INSTALL_DIR) $(1)/usr/bin
73 ( cd $(PKG_INSTALL_DIR); $(CP) \
74 ./usr/bin/oscdump \
75 ./usr/bin/oscsend \
76 $(1)/usr/bin/ \
77 )
78 endef
79
80 $(eval $(call BuildPackage,liblo))
81 $(eval $(call BuildPackage,liblo-utils))