2007-05-20 14:32:30 +00:00
|
|
|
#
|
2010-01-18 00:59:10 +00:00
|
|
|
# Copyright (C) 2007-2010 OpenWrt.org
|
2007-05-20 14:32:30 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=subversion
|
2010-01-23 10:02:37 +00:00
|
|
|
PKG_VERSION:=1.6.9
|
|
|
|
PKG_RELEASE:=1
|
2007-05-20 14:32:30 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2010-01-23 10:02:37 +00:00
|
|
|
PKG_SOURCE_URL:=http://subversion.tigris.org/downloads
|
|
|
|
PKG_MD5SUM:=9c30a47b1d48664e7afef68bb4834c53
|
2007-05-20 14:32:30 +00:00
|
|
|
|
2010-01-18 00:59:10 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2007-12-27 02:12:04 +00:00
|
|
|
|
2007-05-20 14:32:30 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/subversion/Default
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=A compelling replacement for CVS
|
2009-08-10 23:33:03 +00:00
|
|
|
DEPENDS:=+zlib +libneon +libintl +libaprutil
|
2007-05-20 14:32:30 +00:00
|
|
|
URL:=http://subversion.tigris.org/
|
2009-07-25 22:07:24 +00:00
|
|
|
SUBMENU:=Version Control Systems
|
2007-05-20 14:32:30 +00:00
|
|
|
endef
|
|
|
|
|
2008-07-06 11:07:24 +00:00
|
|
|
define Package/subversion/Default/description
|
|
|
|
Subversion is a free/open-source version control system. That is,
|
|
|
|
Subversion manages files and directories, and the changes made to them,
|
|
|
|
over time. This allows you to recover older versions of your data, or
|
|
|
|
examine the history of how your data changed. In this regard, many
|
|
|
|
people think of a version control system as a sort of time machine.
|
|
|
|
endef
|
|
|
|
|
2007-05-20 14:32:30 +00:00
|
|
|
define Package/subversion-libs
|
|
|
|
$(call Package/subversion/Default)
|
|
|
|
TITLE:=subversion libs
|
|
|
|
endef
|
|
|
|
|
2008-07-06 11:07:24 +00:00
|
|
|
define Package/subversion-libs/description
|
|
|
|
$(call Package/subversion/Default/description)
|
|
|
|
This package contains the subversion libraries.
|
|
|
|
endef
|
|
|
|
|
2007-05-20 14:32:30 +00:00
|
|
|
define Package/subversion-client
|
|
|
|
$(call Package/subversion/Default)
|
|
|
|
DEPENDS+=subversion-libs
|
|
|
|
TITLE:=subversion client tools
|
|
|
|
endef
|
|
|
|
|
2008-07-06 11:07:24 +00:00
|
|
|
define Package/subversion-client/description
|
|
|
|
$(call Package/subversion/Default/description)
|
|
|
|
This package contains the subversion client tools.
|
|
|
|
endef
|
|
|
|
|
2007-05-20 14:32:30 +00:00
|
|
|
define Package/subversion-server
|
|
|
|
$(call Package/subversion/Default)
|
2007-07-01 22:03:22 +00:00
|
|
|
DEPENDS+=subversion-libs
|
2007-05-20 14:32:30 +00:00
|
|
|
TITLE:=subversion server
|
|
|
|
endef
|
|
|
|
|
2008-07-06 11:07:24 +00:00
|
|
|
define Package/subversion-server/description
|
|
|
|
$(call Package/subversion/Default/description)
|
|
|
|
This package contains the subversion server.
|
|
|
|
endef
|
|
|
|
|
2009-08-10 23:33:03 +00:00
|
|
|
define Package/subversion-server/conffiles
|
|
|
|
/etc/config/subversion
|
|
|
|
endef
|
|
|
|
|
2007-11-20 18:22:00 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2008-04-13 18:20:42 +00:00
|
|
|
--with-apr="$(STAGING_DIR)/usr/bin/apr-1-config" \
|
|
|
|
--with-apr-util="$(STAGING_DIR)/usr/bin/apu-1-config" \
|
2010-01-18 00:59:10 +00:00
|
|
|
--with-neon="$(STAGING_DIR)/usr" \
|
2007-11-20 18:22:00 +00:00
|
|
|
--disable-mod-activation \
|
|
|
|
--without-ruby-sitedir \
|
|
|
|
--without-swig \
|
|
|
|
--with-jikes=no \
|
|
|
|
--without-junit \
|
|
|
|
--without-berkeley-db \
|
|
|
|
--with-ssl \
|
|
|
|
--disable-neon-version-check \
|
|
|
|
--with-apxs=no \
|
2009-01-17 21:02:20 +00:00
|
|
|
--without-sasl \
|
2007-11-20 18:22:00 +00:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
svn_lib_neon=yes \
|
2009-04-29 12:56:17 +00:00
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) -lcrypt -lm -lintl -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
|
|
|
|
-lz -lpthread -L$(TOOLCHAIN_DIR)/usr/lib \
|
2008-09-28 11:50:55 +00:00
|
|
|
-L$(TOOLCHAIN_DIR)/lib" \
|
2009-04-29 12:56:17 +00:00
|
|
|
CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/lib/libintl/include" \
|
2007-11-20 18:22:00 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all local-install
|
2007-05-20 14:32:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/subversion-libs/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-03-21 10:30:06 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsvn_*.so.* $(1)/usr/lib/
|
2007-05-20 14:32:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/subversion-client/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{svn,svnversion,svnsync} $(1)/usr/bin/
|
2007-05-20 14:32:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/subversion-server/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svn{look,admin,dumpfilter,serve} $(1)/usr/bin/
|
2007-07-18 14:16:39 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2009-08-10 23:33:03 +00:00
|
|
|
$(INSTALL_CONF) ./files/subversion.config $(1)/etc/config/subversion
|
2007-07-18 14:16:39 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/subversion.init $(1)/etc/init.d/subversion
|
2007-05-20 14:32:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,subversion-libs))
|
|
|
|
$(eval $(call BuildPackage,subversion-client))
|
|
|
|
$(eval $(call BuildPackage,subversion-server))
|