summaryrefslogtreecommitdiff
path: root/package/gpsd/Makefile
blob: 655a0b6c30beefd3d3149ae3882142ac201fff99 (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
# $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:=		gpsd
PKG_VERSION:=		2.37
PKG_RELEASE:=		1
PKG_MD5SUM:=		6c96cc0b2df0279cb7baac1ebc5881d3
MASTER_SITES:=		http://download.berlios.de/gpsd/

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,GPSD,gpsd,${PKG_VERSION}-${PKG_RELEASE}))
$(eval $(call PKG_template,GPSD_CLIENTS,gpsd-clients,${PKG_VERSION}-${PKG_RELEASE}))

CONFIGURE_STYLE=	gnu
CONFIGURE_ARGS+=	--without-x \
			--disable-python
BUILD_STYLE=		auto
INSTALL_STYLE=		auto
XAKE_FLAGS=		CXXLINK="\$$(LINK)"

ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
TCXXFLAGS+=		-fno-builtin -fno-rtti -nostdinc++
TLDFLAGS+=		-luClibc++ -lc -lm -nodefaultlibs
else
TLDFLAGS+=		-shared
endif

post-install:
	${INSTALL_DIR} ${IDIR_GPSD}/usr/lib ${IDIR_GPSD}/usr/sbin
	${CP} ${WRKINST}/usr/lib/libgps.so.* ${IDIR_GPSD}/usr/lib
	${CP} ${WRKINST}/usr/sbin/gpsd ${IDIR_GPSD}/usr/sbin
	${INSTALL_DIR} ${IDIR_GPSD_CLIENTS}/usr/bin
	${CP} ${WRKINST}/usr/bin/{cgps,cgpxlogger} ${IDIR_GPSD_CLIENTS}/

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