add package for mapping application <tangogps>
authorMirko Vogt <mirko@openwrt.org>
Wed, 17 Jun 2009 23:19:04 +0000 (23:19 +0000)
committerMirko Vogt <mirko@openwrt.org>
Wed, 17 Jun 2009 23:19:04 +0000 (23:19 +0000)
SVN-Revision: 16500

desktop/apps/tangogps/Makefile [new file with mode: 0644]

diff --git a/desktop/apps/tangogps/Makefile b/desktop/apps/tangogps/Makefile
new file mode 100644 (file)
index 0000000..abfcd2a
--- /dev/null
@@ -0,0 +1,50 @@
+#
+# Copyright (C) 2009 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=tangogps
+PKG_VERSION:=0.9.6
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://tangogps.org/downloads
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+TARGET_CFLAGS+= \
+       -I$(STAGING_DIR)/usr/lib/libintl/include \
+       -I$(STAGING_DIR)/usr/libiconv/include
+
+TARGET_LDFLAGS+= \
+       -L$(STAGING_DIR)/usr/lib/libintl/lib \
+       -L$(STAGING_DIR)/usr/lib/libiconv/lib
+
+define Package/tangogps
+  SECTION:=xorg-apps
+  CATEGORY:=Xorg
+  SUBMENU:=app
+  TITLE:=Mapping application
+  URL:=http://tangogps.org
+  DEPENDS:=+libgconf2 +gtk2 +libcurl +libexif +libsqlite3
+endef
+
+define Package/tangogps/install
+       $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/share/applications $(1)/usr/share/pixmaps
+       $(INSTALL_BIN) \
+               $(PKG_INSTALL_DIR)/usr/bin/tangogps \
+               $(1)/usr/bin/
+       $(INSTALL_DATA) \
+               $(PKG_INSTALL_DIR)/usr/share/applications/tangogps.desktop \
+               $(1)/usr/share/applications/
+       $(INSTALL_BIN) \
+               $(PKG_INSTALL_DIR)/usr/share/pixmaps/*.png \
+               $(1)/usr/share/pixmaps/
+endef
+
+$(eval $(call BuildPackage,tangogps))