2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://subversion.tigris.org/downloads
16 PKG_MD5SUM:=113fca1d9e4aa389d7dc2b210010fa69
19 PKG_REMOVE_FILES:=autogen.sh build/libtool.m4
21 include $(INCLUDE_DIR)/package.mk
23 define Package/subversion/Default
26 TITLE:=A compelling replacement for CVS
27 DEPENDS:=+zlib +libneon +libaprutil
28 URL:=http://subversion.apache.org/
29 SUBMENU:=Version Control Systems
32 define Package/subversion/Default/description
33 Subversion is a free/open-source version control system. That is,
34 Subversion manages files and directories, and the changes made to them,
35 over time. This allows you to recover older versions of your data, or
36 examine the history of how your data changed. In this regard, many
37 people think of a version control system as a sort of time machine.
40 define Package/subversion-libs
41 $(call Package/subversion/Default)
42 TITLE:=subversion libs
45 define Package/subversion-libs/description
46 $(call Package/subversion/Default/description)
47 This package contains the subversion libraries.
50 define Package/subversion-client
51 $(call Package/subversion/Default)
52 DEPENDS+=subversion-libs
53 TITLE:=subversion client tools
56 define Package/subversion-client/description
57 $(call Package/subversion/Default/description)
58 This package contains the subversion client tools.
61 define Package/subversion-server
62 $(call Package/subversion/Default)
63 DEPENDS+=subversion-libs
64 TITLE:=subversion server
67 define Package/subversion-server/description
68 $(call Package/subversion/Default/description)
69 This package contains the subversion server.
72 define Package/subversion-server/conffiles
73 /etc/config/subversion
77 --with-apr="$(STAGING_DIR)/usr/bin/apr-1-config" \
78 --with-apr-util="$(STAGING_DIR)/usr/bin/apu-1-config" \
79 --with-neon="$(STAGING_DIR)/usr" \
80 --disable-mod-activation \
81 --without-ruby-sitedir \
85 --without-berkeley-db \
87 --disable-neon-version-check \
93 LDFLAGS="$(TARGET_LDFLAGS) -lcrypt -lm \
94 -lz -lpthread -L$(TOOLCHAIN_DIR)/usr/lib \
95 -L$(TOOLCHAIN_DIR)/lib" \
96 CPPFLAGS="$(TARGET_CPPFLAGS)" \
99 $(MAKE) -C $(PKG_BUILD_DIR) \
100 DESTDIR="$(PKG_INSTALL_DIR)" \
104 define Package/subversion-libs/install
105 $(INSTALL_DIR) $(1)/usr/lib
106 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsvn_*.so.* $(1)/usr/lib/
109 define Package/subversion-client/install
110 $(INSTALL_DIR) $(1)/usr/bin
111 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{svn,svnversion,svnsync} $(1)/usr/bin/
114 define Package/subversion-server/install
115 $(INSTALL_DIR) $(1)/usr/bin
116 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svn{look,admin,dumpfilter,serve} $(1)/usr/bin/
117 $(INSTALL_DIR) $(1)/etc/config
118 $(INSTALL_CONF) ./files/subversion.config $(1)/etc/config/subversion
119 $(INSTALL_DIR) $(1)/etc/init.d
120 $(INSTALL_BIN) ./files/subversion.init $(1)/etc/init.d/subversion
123 $(eval $(call BuildPackage,subversion-libs))
124 $(eval $(call BuildPackage,subversion-client))
125 $(eval $(call BuildPackage,subversion-server))