f4c1bc410d7244e01bf60d5123dcb1b36cf310b5
[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:=2
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 +GraphicsMagick +gstreamer +libexif
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/Compile
27 $(MAKE) -C $(PKG_BUILD_DIR) \
28 DESTDIR="$(PKG_INSTALL_DIR)" \
29 all install
30 endef
31
32 define Package/dmapd/install
33 $(INSTALL_DIR) $(1)/usr/sbin
34 $(INSTALL_DIR) $(1)/etc/init.d
35 $(INSTALL_BIN) ./files/dmapd.init $(1)/etc/init.d/dmapd
36 $(INSTALL_DIR) $(1)/usr/lib/dmapd/$(PKG_VERSION)/modules/
37 $(CP) \
38 $(PKG_INSTALL_DIR)/usr/sbin/dmapd \
39 $(1)/usr/sbin/
40 $(CP) \
41 $(PKG_INSTALL_DIR)/usr/lib/libdmapd.so* \
42 $(1)/usr/lib/
43 $(CP) \
44 $(PKG_INSTALL_DIR)/usr/lib/dmapd/$(PKG_VERSION)/modules/*.so \
45 $(1)/usr/lib/dmapd/$(PKG_VERSION)/modules
46 endef
47
48 $(eval $(call BuildPackage,dmapd))