[packages] Add missing libtool fixups
[packages.git] / net / dmapd / Makefile
1 #
2 # Copyright (C) 2009-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:=dmapd
11 PKG_VERSION:=0.0.21
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.flyn.org/projects/dmapd
16 PKG_MD5SUM:=f9ce3f4222dc7918257d3a4e53b7a462
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_LDFLAGS+=\
24         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
25
26 define Package/dmapd
27   SECTION:=net
28   CATEGORY:=Network
29   DEPENDS:=+libdmapsharing +GraphicsMagick +gstreamer +libexif
30   TITLE:= dmapd
31   URL:=http://www.flyn.org/projects/dmapd/
32 endef
33
34 define Package/dmapd/decription
35         Dmapd is a DMAP server
36 endef
37
38 define Package/dmapd/conffiles
39 /etc/dmapd.conf
40 endef
41
42 define Package/dmapd/install
43         $(INSTALL_DIR) $(1)/usr/sbin
44         $(INSTALL_DIR) $(1)/etc/init.d
45         $(INSTALL_CONF) $(PKG_BUILD_DIR)/distro/dmapd.conf $(1)/etc/
46         $(INSTALL_BIN) ./files/dmapd.init $(1)/etc/init.d/dmapd
47         $(INSTALL_DIR) $(1)/usr/lib/dmapd/$(PKG_VERSION)/modules
48         $(CP) \
49                 $(PKG_INSTALL_DIR)/usr/sbin/dmapd \
50                 $(1)/usr/sbin/
51         $(CP) \
52                 $(PKG_INSTALL_DIR)/usr/lib/libdmapd.so* \
53                 $(1)/usr/lib/
54         $(CP) \
55                 $(PKG_INSTALL_DIR)/usr/lib/dmapd/$(PKG_VERSION)/modules/*.so \
56                 $(1)/usr/lib/dmapd/$(PKG_VERSION)/modules/
57 endef
58
59 $(eval $(call BuildPackage,dmapd))