subversion: update to version 1.6.23
[openwrt/svn-archive/archive.git] / net / subversion / Makefile
1 #
2 # Copyright (C) 2007-2011 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.23
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:=5d621281ce9d3448e1437cb006331f57
17
18 PKG_FIXUP:=autoreconf
19 PKG_MACRO_PATHS:=build/ac-macros
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/subversion/Default
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=A compelling replacement for CVS
27 DEPENDS:=+zlib +libneon +libaprutil
28 URL:=http://subversion.apache.org/
29 SUBMENU:=Version Control Systems
30 endef
31
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.
38 endef
39
40 define Package/subversion-libs
41 $(call Package/subversion/Default)
42 DEPENDS+=+unixodbc
43 TITLE:=subversion libs
44 endef
45
46 define Package/subversion-libs/description
47 $(call Package/subversion/Default/description)
48 This package contains the subversion libraries.
49 endef
50
51 define Package/subversion-client
52 $(call Package/subversion/Default)
53 DEPENDS+=subversion-libs
54 TITLE:=subversion client tools
55 endef
56
57 define Package/subversion-client/description
58 $(call Package/subversion/Default/description)
59 This package contains the subversion client tools.
60 endef
61
62 define Package/subversion-server
63 $(call Package/subversion/Default)
64 DEPENDS+=subversion-libs
65 TITLE:=subversion server
66 endef
67
68 define Package/subversion-server/description
69 $(call Package/subversion/Default/description)
70 This package contains the subversion server.
71 endef
72
73 define Package/subversion-server/conffiles
74 /etc/config/subversion
75 endef
76
77 TARGET_CFLAGS += $(FPIC)
78 TARGET_CPPFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
79
80 CONFIGURE_ARGS += \
81 --with-apr="$(STAGING_DIR)/usr/bin/apr-1-config" \
82 --with-apr-util="$(STAGING_DIR)/usr/bin/apu-1-config" \
83 --with-neon="$(STAGING_DIR)/usr" \
84 --disable-mod-activation \
85 --without-ruby-sitedir \
86 --without-swig \
87 --with-jikes=no \
88 --without-junit \
89 --without-berkeley-db \
90 --with-ssl \
91 --disable-neon-version-check \
92 --with-apxs=no \
93 --without-sasl \
94
95 CONFIGURE_VARS += \
96 svn_lib_neon=yes \
97 LDFLAGS="$(TARGET_LDFLAGS) -lcrypt -lm \
98 -lz -lpthread -L$(TOOLCHAIN_DIR)/usr/lib \
99 -L$(TOOLCHAIN_DIR)/lib" \
100 CPPFLAGS="$(TARGET_CPPFLAGS)" \
101
102 define Build/Compile
103 $(MAKE) -C $(PKG_BUILD_DIR) \
104 DESTDIR="$(PKG_INSTALL_DIR)" \
105 all local-install
106 endef
107
108 define Package/subversion-libs/install
109 $(INSTALL_DIR) $(1)/usr/lib
110 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsvn_*.so.* $(1)/usr/lib/
111 endef
112
113 define Package/subversion-client/install
114 $(INSTALL_DIR) $(1)/usr/bin
115 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{svn,svnversion,svnsync} $(1)/usr/bin/
116 endef
117
118 define Package/subversion-server/install
119 $(INSTALL_DIR) $(1)/usr/bin
120 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svn{look,admin,dumpfilter,serve} $(1)/usr/bin/
121 $(INSTALL_DIR) $(1)/etc/config
122 $(INSTALL_CONF) ./files/subversion.config $(1)/etc/config/subversion
123 $(INSTALL_DIR) $(1)/etc/init.d
124 $(INSTALL_BIN) ./files/subversion.init $(1)/etc/init.d/subversion
125 endef
126
127 $(eval $(call BuildPackage,subversion-libs))
128 $(eval $(call BuildPackage,subversion-client))
129 $(eval $(call BuildPackage,subversion-server))