[net] Telephony: Yate: Added conffiles. Fixes overwriting of configuration on reinst...
[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_REMOVE_FILES:=autogen.sh aclocal.m4
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/liblo/Default
26 SUBMENU:=Sound
27 TITLE:=Lightweight Open Sound Control (OSC)
28 URL:=http://liblo.sourceforge.net/
29 endef
30
31 define Package/liblo
32 $(call Package/liblo/Default)
33 SECTION:=libs
34 CATEGORY:=Libraries
35 TITLE+= library
36 DEPENDS:= +libpthread
37 endef
38
39 define Package/liblo-utils
40 $(call Package/liblo/Default)
41 SECTION:=utils
42 CATEGORY:=Utilities
43 TITLE+= utilities
44 DEPENDS:= +liblo
45 endef
46
47 define Build/InstallDev
48 $(INSTALL_DIR) $(1)/usr/include
49 ( cd $(PKG_INSTALL_DIR); $(CP) \
50 ./usr/include/lo \
51 $(1)/usr/include/ \
52 )
53 $(INSTALL_DIR) $(1)/usr/lib
54 ( cd $(PKG_INSTALL_DIR); $(CP) \
55 ./usr/lib/liblo.so* \
56 $(1)/usr/lib/ \
57 )
58 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
59 ( cd $(PKG_INSTALL_DIR); $(CP) \
60 ./usr/lib/pkgconfig/liblo.pc \
61 $(1)/usr/lib/pkgconfig/ \
62 )
63 endef
64
65 define Package/liblo/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 ( cd $(PKG_INSTALL_DIR); $(CP) \
68 ./usr/lib/liblo.so.* \
69 $(1)/usr/lib/ \
70 )
71 endef
72
73 define Package/liblo-utils/install
74 $(INSTALL_DIR) $(1)/usr/bin
75 ( cd $(PKG_INSTALL_DIR); $(CP) \
76 ./usr/bin/oscdump \
77 ./usr/bin/oscsend \
78 $(1)/usr/bin/ \
79 )
80 endef
81
82 $(eval $(call BuildPackage,liblo))
83 $(eval $(call BuildPackage,liblo-utils))