7c6dc09954484316a5a06c7a6231b538721483b9
[openwrt/svn-archive/archive.git] / net / netatalk / 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:=netatalk
11 PKG_VERSION:=2.1beta1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=netatalk-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/netatalk
16 PKG_MD5SUM:=86be058b18270e9df4699a1f393846b0
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/netatalk
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+libdb47 +libgcrypt +libopenssl
26 TITLE:=netatalk
27 URL:=http://netatalk.sourceforge.net
28 endef
29
30 define Package/netatalk/decription
31 Netatalk is an implementation of the AppleTalk protocol suite
32 endef
33
34 CONFIGURE_VARS += \
35 CFLAGS="$(TARGET_CFLAGS) -std=gnu99 -Drestrict='' -DNO_DEBUG "
36
37 CONFIGURE_ARGS += \
38 --disable-timelord \
39 --disable-a2boot \
40 --disable-cups \
41 --disable-tcp-wrappers \
42 --with-cnid-default-backend=dbd \
43 --with-bdb="$(STAGING_DIR)/usr/" \
44 --with-libgcrypt-dir="$(STAGING_DIR)/usr" \
45 --with-ssl-dir="$(STAGING_DIR)/usr"
46
47 define Package/netatalk/install
48 $(INSTALL_DIR) $(1)/usr/bin/
49 $(CP) \
50 $(PKG_BUILD_DIR)/etc/afpd/afpd \
51 $(1)/usr/bin/
52 $(CP) \
53 $(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_dbd \
54 $(1)/usr/bin/
55 $(CP) \
56 $(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_metad \
57 $(1)/usr/bin/
58 $(CP) \
59 $(PKG_BUILD_DIR)/etc/cnid_dbd/dbd \
60 $(1)/usr/bin/
61 endef
62
63 $(eval $(call BuildPackage,netatalk))