You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2009-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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=dmapd
  9. PKG_VERSION:=0.0.70
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=GPLv2
  13. PKG_LICENSE_FILE:=COPYING
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=http://www.flyn.org/projects/dmapd
  16. PKG_MD5SUM:=f503bf95f79b5c1f9418cccf26203952
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=2
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/dmapd
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+libdmapsharing +libdb47 +vips
  25. TITLE:= dmapd
  26. URL:=http://www.flyn.org/projects/dmapd/
  27. endef
  28. define Package/dmapd/decription
  29. Dmapd is a DMAP server
  30. endef
  31. define Package/dmapd/conffiles
  32. /etc/dmapd.conf
  33. endef
  34. TARGET_LDFLAGS+=\
  35. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
  36. define Package/dmapd/install
  37. $(INSTALL_DIR) $(1)/usr/sbin
  38. $(INSTALL_DIR) $(1)/etc/init.d
  39. $(INSTALL_CONF) $(PKG_BUILD_DIR)/distro/dmapd.conf $(1)/etc/
  40. $(INSTALL_BIN) ./files/dmapd.init $(1)/etc/init.d/dmapd
  41. $(INSTALL_DIR) $(1)/usr/lib/dmapd/$(PKG_VERSION)/modules
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/sbin/dmapd \
  44. $(1)/usr/sbin/
  45. $(CP) \
  46. $(PKG_INSTALL_DIR)/usr/lib/libdmapd.so* \
  47. $(1)/usr/lib/
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/lib/dmapd/$(PKG_VERSION)/modules/*.so \
  50. $(1)/usr/lib/dmapd/$(PKG_VERSION)/modules/
  51. endef
  52. $(eval $(call BuildPackage,dmapd))