b720673427c0b2c14fdb4aa027438a4c9a0fd441
[openwrt/svn-archive/archive.git] / net / dmapd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=dmapd
4 PKG_VERSION:=0.0.19
5 PKG_RELEASE:=1
6 PKG_SOURCE:=dmapd-$(PKG_VERSION).tar.gz
7 PKG_SOURCE_URL:=http://www.flyn.org/projects/dmapd/
8 PKG_MD5SUM:=24ead9b689d569abd87fa055625a8356
9
10 PKG_BUILD_DIR:=$(BUILD_DIR)/dmapd-$(PKG_VERSION)
11
12 include $(INCLUDE_DIR)/package.mk
13
14 define Package/dmapd
15 SECTION:=net
16 CATEGORY:=Network
17 DEPENDS:=+libdmapsharing
18 TITLE:= dmapd
19 URL:=http://www.flyn.org/projects/dmapd/
20 endef
21
22 define Package/dmapd/decription
23 Dmapd is a DMAP server
24 endef
25
26 define Build/Configure
27 $(call Build/Configure/Default)
28 endef
29
30 define Build/Compile
31 $(MAKE) -C $(PKG_BUILD_DIR) \
32 DESTDIR="$(PKG_INSTALL_DIR)" \
33 all install
34 endef
35
36 define Package/dmapd/install
37 $(INSTALL_DIR) $(1)/usr/sbin
38 $(INSTALL_DIR) $(1)/etc/init.d
39 $(INSTALL_BIN) ./files/dmapd.init $(1)/etc/init.d/dmapd
40 $(INSTALL_DIR) $(1)/usr/lib/dmapd/$(PKG_VERSION)/modules/
41 $(CP) \
42 $(PKG_INSTALL_DIR)/usr/sbin/dmapd \
43 $(1)/usr/sbin/
44 $(CP) \
45 $(PKG_INSTALL_DIR)/usr/lib/libdmapd.so* \
46 $(1)/usr/lib/
47 $(CP) \
48 $(PKG_INSTALL_DIR)/usr/lib/dmapd/$(PKG_VERSION)/modules/*.so \
49 $(1)/usr/lib/dmapd/$(PKG_VERSION)/modules
50 endef
51
52 $(eval $(call BuildPackage,dmapd))