summaryrefslogtreecommitdiff
path: root/package/obexftp/Makefile
blob: 5cea2518ec472a6eb8e5591d3b637f74e105bf3a (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${ADK_TOPDIR}/rules.mk

PKG_NAME:=		obexftp
PKG_VERSION:=		0.23
PKG_RELEASE:=		4
PKG_HASH:=		44a74ff288d38c0f75354d6bc2efe7d6dec10112eaff2e7b10e292b0d2105b36
PKG_DESCR:=		bluetooth ftp application
PKG_SECTION:=		sys/misc
PKG_DEPENDS:=		openobex libobexftp
PKG_BUILDDEP:=		openobex
PKG_URL:=		http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=openobex/}
PKG_LIBNAME:=		libobexftp
PKG_OPTS:=		dev

PKG_SUBPKGS:=		OBEXFTP LIBOBEXFTP
PKGSC_LIBOBEXFTP:=	libs/net
PKGSD_LIBOBEXFTP:=	obex ftp library

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.bz2

include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call PKG_template,OBEXFTP,obexftp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,LIBOBEXFTP,libobexftp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBOBEXFTP},${PKGSC_LIBOBEXFTP},${PKG_OPTS}))

ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
XAKE_FLAGS+=		STATIC_CFLAGS=-all-static
endif

CONFIGURE_ENV+=		OPENOBEX_CFLAGS="-I${STAGING_TARGET_DIR}/usr/include" \
			OPENOBEX_LIBS="-L${STAGING_TARGET_DIR}/usr/lib \
			    -lopenobex -liconv"
CONFIGURE_ARGS+=	--disable-perl \
			--disable-ruby \
			--disable-tcl \
			--disable-python

obexftp-install:
	${INSTALL_DIR} ${IDIR_OBEXFTP}/usr/bin
	${CP} ${WRKINST}/usr/bin/obexftp{,d} ${IDIR_OBEXFTP}/usr/bin/

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

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