clean up, replace old libtool fixup calls with PKG_FIXUP
[openwrt/svn-archive/archive.git] / net / subversion / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=subversion
12 PKG_VERSION:=1.4.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://subversion.tigris.org/downloads/
17 PKG_MD5SUM:=4c333a5fe827568c67d195cda7a5e154
18
19 PKG_FIXUP = libtool
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 +libintl +libapr +libaprutil
28 URL:=http://subversion.tigris.org/
29 SUBMENU:=subversion
30 endef
31
32 define Package/subversion-libs
33 $(call Package/subversion/Default)
34 TITLE:=subversion libs
35 endef
36
37 define Package/subversion-client
38 $(call Package/subversion/Default)
39 DEPENDS+=subversion-libs
40 TITLE:=subversion client tools
41 endef
42
43 define Package/subversion-server
44 $(call Package/subversion/Default)
45 DEPENDS+=subversion-libs
46 TITLE:=subversion server
47 endef
48
49 CONFIGURE_ARGS += \
50 --with-apr="$(STAGING_DIR_HOST)/bin/apr-1-config" \
51 --with-apr-util="$(STAGING_DIR_HOST)/bin/apu-1-config" \
52 --with-neon="$(STAGING_DIR)/usr/include/neon" \
53 --disable-mod-activation \
54 --without-ruby-sitedir \
55 --without-swig \
56 --with-jikes=no \
57 --without-junit \
58 --without-berkeley-db \
59 --with-ssl \
60 --disable-neon-version-check \
61 --with-apxs=no \
62 --with-apache=no \
63
64 CONFIGURE_VARS += \
65 svn_lib_neon=yes \
66 LDFLAGS="-lcrypt -lnsl -lm -lintl -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
67 -lz -L$(STAGING_DIR)/usr/lib/ -lpthread -L$(STAGING_DIR)/lib" \
68 CPPFLAGS="-I$(STAGING_DIR)/usr/include/ -I$(STAGING_DIR)/usr/lib/libintl/include \
69 -I$(STAGING_DIR)/include/" \
70
71 define Build/Compile
72 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all local-install
73 endef
74
75 define Package/subversion-libs/install
76 $(INSTALL_DIR) $(1)/usr/lib
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsvn_* $(1)/usr/lib/
78 endef
79
80 define Package/subversion-client/install
81 $(INSTALL_DIR) $(1)/usr/bin
82 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{svn,svnversion,svnsync} $(1)/usr/bin/
83 endef
84
85 define Package/subversion-server/install
86 $(INSTALL_DIR) $(1)/usr/bin
87 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/svn{look,admin,dumpfilter,serve} $(1)/usr/bin/
88 $(INSTALL_DIR) $(1)/etc/config
89 $(INSTALL_DATA) ./files/subversion.config $(1)/etc/config/subversion
90 $(INSTALL_DIR) $(1)/etc/init.d
91 $(INSTALL_BIN) ./files/subversion.init $(1)/etc/init.d/subversion
92 endef
93
94 $(eval $(call BuildPackage,subversion-libs))
95 $(eval $(call BuildPackage,subversion-client))
96 $(eval $(call BuildPackage,subversion-server))