summaryrefslogtreecommitdiffstats
path: root/phone/fso-gpsd/Makefile
blob: aeda407dd75659bd7de08a745a1b8103bbb4d874 (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
#
# Copyright (C) 2006-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id: Makefile 12228 2008-08-06 22:43:15Z nbd $

include $(TOPDIR)/rules.mk

PKG_NAME:=fso-gpsd
PKG_VERSION:=20081211
PKG_REV:=78fe48dffb923175bde9f0aabc3500a9264a57e0
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=git://git.freesmartphone.org/fso-gpsd.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=$(PKG_REV)

PKG_FIXUP = libtool

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk

define Package/fso-gpsd
  SECTION:=phone
  CATEGORY:=Phone
  TITLE:=FSO gps daemon
  URL:=http://freesmartphone.org
  DEPENDS:=fso-frameworkd
endef

define Build/Configure
	( cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
	$(call Build/Configure/Default)
endef

define Build/Compile
	DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) install
endef

define Package/fso-gpsd/install
	$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fso-gpsd $(1)/usr/sbin/
	$(INSTALL_BIN) ./files/fso-gpsd.init $(1)/etc/init.d/fso-gpsd
endef

$(eval $(call BuildPackage,fso-gpsd))