summaryrefslogtreecommitdiff
path: root/package/obexftp/Makefile
blob: 27cc64cf700413f885f443ce87ebc6ab74540df5 (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
# 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:=		obexftp
PKG_VERSION:=		0.23
PKG_RELEASE:=		2
PKG_MD5SUM:=		f20762061b68bc921e80be4aebc349eb
PKG_DESCR:=		bluetooth ftp application
PKG_SECTION:=		bluetooth
PKG_DEPENDS:=		openobex libiconv
PKG_URL:=		http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=openobex/}

PKG_DESCR_LIB:=		obexftp library
PKG_SECTION_LIB:=	libs
DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.bz2

ifeq ($(ADK_STATIC),y)
PKG_OPTS:=		libonly
endif

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,OBEXFTP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBOBEXFTP,libobexftp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_LIB},${PKG_SECTION_LIB},${PKG_OPTS}))

CONFIGURE_STYLE:=	gnu
CONFIGURE_ENV+=		OPENOBEX_CFLAGS="-I${STAGING_DIR}/usr/include" \
			OPENOBEX_LIBS="-L${STAGING_DIR}/usr/lib \
			    -lopenobex -lbluetooth -liconv"
CONFIGURE_ARGS+=	--disable-perl \
			--disable-ruby \
			--disable-tcl \
			--disable-python
INSTALL_STYLE:=		auto

post-install:
	${INSTALL_DIR} ${IDIR_OBEXFTP}/usr/bin 
	${CP} ${WRKINST}/usr/bin/* ${IDIR_OBEXFTP}/usr/bin/
	${INSTALL_DIR} ${IDIR_LIBOBEXFTP}/usr/lib
	${CP} ${WRKINST}/usr/lib/*.so* ${IDIR_LIBOBEXFTP}/usr/lib/

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