Root/urjtag/Makefile

1#
2# Copyright (C) 2012 xiangfu liu <xiangfu@openmobilefree.net>
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=urjtag
11PKG_VERSION:=20120715
12PKG_REV:=2f2c7920242addf60b3f498528741812d3c9beda
13PKG_RELEASE:=1
14PKG_INSTALL:=1
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
16PKG_SOURCE_URL:=git://urjtag.git.sourceforge.net/gitroot/urjtag/urjtag
17PKG_SOURCE_PROTO:=git
18PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19PKG_SOURCE_VERSION:=$(PKG_REV)
20
21include $(INCLUDE_DIR)/package.mk
22include $(INCLUDE_DIR)/nls.mk
23
24define Package/urjtag
25  MAINTAINER:="Xiangfu Liu" <xiangfu@openmobilefree.net>
26  SECTION:=utils
27  CATEGORY:=Utilities
28  TITLE:=Urjtag
29  URL:=http://urjtag.org/
30  DEPENDS:=+libusb +libusb-1.0 +libftdi $(INTL_DEPENDS) +libreadline +libncurses
31endef
32
33TARGET_CFLAGS += $(INTL_CFLAGS)
34TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib $(INTL_LDFLAGS)
35MAKE_FLAGS += -C urjtag
36
37CONFIGURE_PATH = ./urjtag
38CONFIGURE_CMD = ./autogen.sh
39CONFIGURE_ARGS += --with-libusb --with-libftdi --without-ftd2xx \
40          --disable-svf --disable-bsdl --disable-python
41
42define Package/urjtag/description
43Universal JTAG library, server and tools
44endef
45
46define Package/urjtag/install
47    $(INSTALL_DIR) \
48        $(1)/usr/bin/ \
49        $(1)/usr/share/urjtag/ \
50        $(1)/usr/lib/
51
52    $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/jtag $(1)/usr/bin/
53    $(CP) $(PKG_INSTALL_DIR)/usr/share/urjtag/* $(1)/usr/share/urjtag/
54    $(CP) $(PKG_INSTALL_DIR)/usr/lib/liburjtag.so.* $(1)/usr/lib/
55endef
56
57$(eval $(call BuildPackage,urjtag))
58

Archive Download this file



interactive