[phone] use nls.mk
[openwrt/svn-archive/archive.git] / phone / fso-gpsd / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 12228 2008-08-06 22:43:15Z nbd $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=fso-gpsd
12 PKG_VERSION:=20081211
13 PKG_REV:=78fe48dffb923175bde9f0aabc3500a9264a57e0
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=git://git.freesmartphone.org/fso-gpsd.git
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE_VERSION:=$(PKG_REV)
21
22 PKG_FIXUP = libtool
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/nls.mk
26
27 define Package/fso-gpsd
28 SECTION:=phone
29 CATEGORY:=Phone
30 TITLE:=FSO gps daemon
31 URL:=http://freesmartphone.org
32 DEPENDS:=fso-frameworkd
33 endef
34
35 define Build/Configure
36 ( cd $(PKG_BUILD_DIR); NOCONFIGURE=YES ./autogen.sh );
37 $(call Build/Configure/Default)
38 endef
39
40 define Build/Compile
41 DESTDIR="$(PKG_INSTALL_DIR)" $(MAKE) -C $(PKG_BUILD_DIR) install
42 endef
43
44 define Package/fso-gpsd/install
45 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fso-gpsd $(1)/usr/sbin/
47 $(INSTALL_BIN) ./files/fso-gpsd.init $(1)/etc/init.d/fso-gpsd
48 endef
49
50 $(eval $(call BuildPackage,fso-gpsd))