source: packages/net/subversion/Makefile @ 24172

Last change on this file since 24172 was 24172, checked in by florian, 6 years ago

[package] update subversion to 1.6.15

This patch upgrades subversion to version 1.6.15.

Signed-off-by: Luka Perkov < openwrt ->-to->- lukaperkov.net >

File size: 3.5 KB
Line 
1#
2# Copyright (C) 2007-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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=subversion
11PKG_VERSION:=1.6.15
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://subversion.tigris.org/downloads
16PKG_MD5SUM:=113fca1d9e4aa389d7dc2b210010fa69
17
18PKG_FIXUP:=libtool
19
20include $(INCLUDE_DIR)/package.mk
21
22define 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.apache.org/
28  SUBMENU:=Version Control Systems
29endef
30
31define 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.
37endef
38
39define Package/subversion-libs
40  $(call Package/subversion/Default)
41  TITLE:=subversion libs
42endef
43
44define Package/subversion-libs/description
45  $(call Package/subversion/Default/description)
46  This package contains the subversion libraries.
47endef
48
49define Package/subversion-client
50  $(call Package/subversion/Default)
51  DEPENDS+=subversion-libs
52  TITLE:=subversion client tools
53endef
54
55define Package/subversion-client/description
56  $(call Package/subversion/Default/description)
57  This package contains the subversion client tools.
58endef
59
60define Package/subversion-server
61  $(call Package/subversion/Default)
62  DEPENDS+=subversion-libs
63  TITLE:=subversion server
64endef
65
66define Package/subversion-server/description
67  $(call Package/subversion/Default/description)
68  This package contains the subversion server.
69endef
70
71define Package/subversion-server/conffiles
72/etc/config/subversion
73endef
74
75CONFIGURE_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" \
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        --without-sasl \
89
90CONFIGURE_VARS += \
91        svn_lib_neon=yes \
92        LDFLAGS="$(TARGET_LDFLAGS) -lcrypt -lm -lintl -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
93                -lz -lpthread -L$(TOOLCHAIN_DIR)/usr/lib \
94                -L$(TOOLCHAIN_DIR)/lib" \
95        CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/lib/libintl/include" \
96
97define Build/Compile
98        $(MAKE) -C $(PKG_BUILD_DIR) \
99                DESTDIR="$(PKG_INSTALL_DIR)" \
100                all local-install
101endef
102
103define Package/subversion-libs/install
104        $(INSTALL_DIR) $(1)/usr/lib
105        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsvn_*.so.* $(1)/usr/lib/
106endef
107
108define Package/subversion-client/install
109        $(INSTALL_DIR) $(1)/usr/bin
110        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{svn,svnversion,svnsync} $(1)/usr/bin/
111endef
112
113define Package/subversion-server/install
114        $(INSTALL_DIR) $(1)/usr/bin
115        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svn{look,admin,dumpfilter,serve} $(1)/usr/bin/
116        $(INSTALL_DIR) $(1)/etc/config
117        $(INSTALL_CONF) ./files/subversion.config $(1)/etc/config/subversion
118        $(INSTALL_DIR) $(1)/etc/init.d
119        $(INSTALL_BIN) ./files/subversion.init $(1)/etc/init.d/subversion
120endef
121
122$(eval $(call BuildPackage,subversion-libs))
123$(eval $(call BuildPackage,subversion-client))
124$(eval $(call BuildPackage,subversion-server))
Note: See TracBrowser for help on using the repository browser.