Add GPXView Geocaching application
[openwrt/svn-archive/archive.git] / Xorg / app / gpxview / Makefile
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gpxview
11 PKG_VERSION_BASE:=0.9.1
12 PKG_VERSION_SUFFIX:=-1
13 PKG_VERSION:=$(PKG_VERSION_BASE)$(PKG_VERSION_SUFFIX)
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=gpxview_$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://repository.maemo.org/extras/pool/chinook/free/source/g/gpxview/
18 PKG_MD5SUM:=7c29b4cbfb1a54c1abe559c63e0a79db
19 PKG_INSTALL:=1
20 PKG_BUILD_PARALLEL:=1
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION_BASE)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/gpxview
26 SECTION:=xorg-app
27 CATEGORY:=Xorg
28 SUBMENU:=app
29 TITLE:=GPXView Geocaching app
30 URL:=http://www.harbaum.org/till/maemo/index.shtml#gpxview
31 DEPENDS:=+gpsd +libxml2 +libcurl +libsoup +gtkhtml +gtk2 +libintl +libiconv
32 endef
33
34 define Package/gpxview/description
35 GPXView is a viewer for Geocaching.com GPX files.
36 endef
37
38 EXTRA_CFLAGS:= \
39 -I$(STAGING_DIR)/usr/lib/libintl/include \
40 -I$(STAGING_DIR)/usr/lib/libiconv/include
41
42 EXTRA_LDFLAGS:= \
43 -L$(STAGING_DIR)/usr/lib/libintl/lib \
44 -L$(STAGING_DIR)/usr/lib/libiconv/lib \
45 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
46 -Wl,-rpath=/usr/lib/
47
48 define Build/Install
49 $(MAKE_VARS) \
50 $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
51 bindir="/bin" \
52 $(MAKE_INSTALL_FLAGS) \
53 install
54 endef
55
56 define Package/gpxview/install
57 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/share/gpxview
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpxview $(1)/usr/bin/
59 $(CP) $(PKG_INSTALL_DIR)/usr/share/gpxview $(1)/usr/share/
60 endef
61
62 $(eval $(call BuildPackage,gpxview))