[packages] subversion: Update to v1.6.4 (closes #5658)
[openwrt/svn-archive/archive.git] / net / subversion / Makefile
1 #
2 # Copyright (C) 2007-2009 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:=subversion
11 PKG_VERSION:=1.6.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://subversion.tigris.org/downloads/
16 PKG_MD5SUM:=11e3fa838c9a558cadc378f2807572e2
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/subversion/Default
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=A compelling replacement for CVS
26 DEPENDS:=+zlib +libneon +libintl +libaprutil
27 URL:=http://subversion.tigris.org/
28 SUBMENU:=Version Control Systems
29 endef
30
31 define Package/subversion/Default/description
32 Subversion is a free/open-source version control system. That is,
33 Subversion manages files and directories, and the changes made to them,
34 over time. This allows you to recover older versions of your data, or
35 examine the history of how your data changed. In this regard, many
36 people think of a version control system as a sort of time machine.
37 endef
38
39 define Package/subversion-libs
40 $(call Package/subversion/Default)
41 TITLE:=subversion libs
42 endef
43
44 define Package/subversion-libs/description
45 $(call Package/subversion/Default/description)
46 This package contains the subversion libraries.
47 endef
48
49 define Package/subversion-client
50 $(call Package/subversion/Default)
51 DEPENDS+=subversion-libs
52 TITLE:=subversion client tools
53 endef
54
55 define Package/subversion-client/description
56 $(call Package/subversion/Default/description)
57 This package contains the subversion client tools.
58 endef
59
60 define Package/subversion-server
61 $(call Package/subversion/Default)
62 DEPENDS+=subversion-libs
63 TITLE:=subversion server
64 endef
65
66 define Package/subversion-server/description
67 $(call Package/subversion/Default/description)
68 This package contains the subversion server.
69 endef
70
71 define Package/subversion-server/conffiles
72 /etc/config/subversion
73 endef
74
75 CONFIGURE_ARGS += \
76 --with-apr="$(STAGING_DIR)/usr/bin/apr-1-config" \
77 --with-apr-util="$(STAGING_DIR)/usr/bin/apu-1-config" \
78 --with-neon="$(STAGING_DIR)/usr/include/neon" \
79 --disable-mod-activation \
80 --without-ruby-sitedir \
81 --without-swig \
82 --with-jikes=no \
83 --without-junit \
84 --without-berkeley-db \
85 --with-ssl \
86 --disable-neon-version-check \
87 --with-apxs=no \
88 --with-apache=no \
89 --without-sasl \
90
91 CONFIGURE_VARS += \
92 svn_lib_neon=yes \
93 LDFLAGS="$(TARGET_LDFLAGS) -lcrypt -lm -lintl -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
94 -lz -lpthread -L$(TOOLCHAIN_DIR)/usr/lib \
95 -L$(TOOLCHAIN_DIR)/lib" \
96 CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/lib/libintl/include" \
97
98 define Build/Compile
99 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all local-install
100 endef
101
102 define Package/subversion-libs/install
103 $(INSTALL_DIR) $(1)/usr/lib
104 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsvn_*.so.* $(1)/usr/lib/
105 endef
106
107 define Package/subversion-client/install
108 $(INSTALL_DIR) $(1)/usr/bin
109 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{svn,svnversion,svnsync} $(1)/usr/bin/
110 endef
111
112 define Package/subversion-server/install
113 $(INSTALL_DIR) $(1)/usr/bin
114 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svn{look,admin,dumpfilter,serve} $(1)/usr/bin/
115 $(INSTALL_DIR) $(1)/etc/config
116 $(INSTALL_CONF) ./files/subversion.config $(1)/etc/config/subversion
117 $(INSTALL_DIR) $(1)/etc/init.d
118 $(INSTALL_BIN) ./files/subversion.init $(1)/etc/init.d/subversion
119 endef
120
121 $(eval $(call BuildPackage,subversion-libs))
122 $(eval $(call BuildPackage,subversion-client))
123 $(eval $(call BuildPackage,subversion-server))