summaryrefslogtreecommitdiff
path: root/package/subversion/Makefile
blob: 85807565fa55cd28e461bd335b6299f1d98e8ebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# $Id$
#-
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		subversion
PKG_VERSION:=		1.6.2
PKG_RELEASE:=		1
PKG_MD5SUM:=		93f128306b11e1a1c64ff51338777952
PKG_DEPENDS:=		zlib, apr, apr-util, libiconv, libexpat
MASTER_SITES:=		http://subversion.tigris.org/downloads/

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,SUBVERSION,$(PKG_NAME),${PKG_VERSION}-${PKG_RELEASE}))

CONFIGURE_STYLE:=	gnu
CONFIGURE_ARGS+=	--with-apr=${STAGING_DIR}/usr/bin/apr-config
CONFIGURE_ARGS+=	--with-apr-util=${STAGING_DIR}/usr/bin/apr-config
CONFIGURE_ARGS+=	--disable-mod-activation
CONFIGURE_ARGS+=	--disable-keychain
CONFIGURE_ARGS+=	--without-apxs
CONFIGURE_ARGS+=	--without-swig
CONFIGURE_ARGS+=	--disable-experimental-libtool
CONFIGURE_ARGS+=	--without-jikes
CONFIGURE_ARGS+=	--without-jdk
CONFIGURE_ARGS+=	--disable-javahl
CONFIGURE_ARGS+=	--without-berkeley-db

LIBS= 			-laprutil-0 -lapr-0 -lexpat -liconv

ifeq ($(ADK_PACKAGE_SUBVERSION_NEON),y)
CONFIGURE_ARGS+=	-disable-neon-version-check
LIBS+=			-lneon
PKG_DEPENDS:=		${PKG_DEPENDS}, neon
else
CONFIGURE_ARGS+=	--without-neon
endif

ifeq ($(ADK_PACKAGE_APR_THREADING),y)
LIBS+=			-pthread
endif

CONFIGURE_ENV+=		LIBS='${LIBS}'

BUILD_STYLE:=           auto
INSTALL_STYLE:=		auto
INSTALL_TARGET:=	external-install local-install

post-install:
	${INSTALL_DIR} ${IDIR_SUBVERSION}/etc/init.d
	${INSTALL_SCRIPT} files/svnserve.init \
	    ${IDIR_SUBVERSION}/etc/init.d/svnserve
	${INSTALL_DIR} ${IDIR_SUBVERSION}/usr/{bin,lib}
	${CP} ${WRKINST}/usr/bin/* ${IDIR_SUBVERSION}/usr/bin
	${CP} ${WRKINST}/usr/lib/* ${IDIR_SUBVERSION}/usr/lib
	echo 'Depends: ${PKG_DEPENDS}' >> ${IDIR_SUBVERSION}/CONTROL/control

include ${TOPDIR}/mk/pkg-bottom.mk