2 # Copyright (C) 2007-2009 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:=8321d0e1964846090f0174cb6bb18838
20 include $(INCLUDE_DIR)/package.mk
22 define Package/subversion/Default
25 TITLE:=A compelling replacement for CVS
26 DEPENDS:=+zlib +libneon +libintl +libapr +libaprutil +libpthread
27 URL:=http://subversion.tigris.org/
28 SUBMENU:=Version Control Systems
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.
39 define Package/subversion-libs
40 $(call Package/subversion/Default)
41 TITLE:=subversion libs
44 define Package/subversion-libs/description
45 $(call Package/subversion/Default/description)
46 This package contains the subversion libraries.
49 define Package/subversion-client
50 $(call Package/subversion/Default)
51 DEPENDS+=subversion-libs
52 TITLE:=subversion client tools
55 define Package/subversion-client/description
56 $(call Package/subversion/Default/description)
57 This package contains the subversion client tools.
60 define Package/subversion-server
61 $(call Package/subversion/Default)
62 DEPENDS+=subversion-libs
63 TITLE:=subversion server
66 define Package/subversion-server/description
67 $(call Package/subversion/Default/description)
68 This package contains the subversion server.
72 --with-apr="$(STAGING_DIR)/usr/bin/apr-1-config" \
73 --with-apr-util="$(STAGING_DIR)/usr/bin/apu-1-config" \
74 --with-neon="$(STAGING_DIR)/usr/include/neon" \
75 --disable-mod-activation \
76 --without-ruby-sitedir \
80 --without-berkeley-db \
82 --disable-neon-version-check \
89 LDFLAGS="$(TARGET_LDFLAGS) -lcrypt -lm -lintl -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
90 -lz -lpthread -L$(TOOLCHAIN_DIR)/usr/lib \
91 -L$(TOOLCHAIN_DIR)/lib" \
92 CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/lib/libintl/include" \
95 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all local-install
98 define Package/subversion-libs/install
99 $(INSTALL_DIR) $(1)/usr/lib
100 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsvn_*.so.* $(1)/usr/lib/
103 define Package/subversion-client/install
104 $(INSTALL_DIR) $(1)/usr/bin
105 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{svn,svnversion,svnsync} $(1)/usr/bin/
108 define Package/subversion-server/install
109 $(INSTALL_DIR) $(1)/usr/bin
110 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svn{look,admin,dumpfilter,serve} $(1)/usr/bin/
111 $(INSTALL_DIR) $(1)/etc/config
112 $(INSTALL_DATA) ./files/subversion.config $(1)/etc/config/subversion
113 $(INSTALL_DIR) $(1)/etc/init.d
114 $(INSTALL_BIN) ./files/subversion.init $(1)/etc/init.d/subversion
117 $(eval $(call BuildPackage,subversion-libs))
118 $(eval $(call BuildPackage,subversion-client))
119 $(eval $(call BuildPackage,subversion-server))