Root/swig/Makefile

1#
2# OpenWrt Package for the SWIG interface generator.
3#
4# Copyright (C) 2011 David Kuehling <dvdkhlng TA gmx TOD de>
5#
6# License GPLv2 or later. NO WARRANTY.
7#
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=swig
12PKG_VERSION:=2.0.1
13PKG_RELEASE:=1
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/swig
16PKG_MD5SUM:=df4465a62ccc5f0120fee0890ea1a31f
17
18#PKG_INSTALL=1
19#PKG_BUILD_DEPENDS:= libtool/host
20
21include $(INCLUDE_DIR)/host-build.mk
22include $(INCLUDE_DIR)/package.mk
23
24define Package/swig
25  SECTION:=lang
26  CATEGORY:=Languages
27  TITLE:=Simplified Wrapper and Interface Generator
28  URL:=http://www.swig.org
29  DEPENDS:=+swig/host
30  MAINTAINER=David Kuehling <dvdkhlng TA gmx TOD de>
31endef
32
33define Package/swig/description
34SWIG is a software development tool that connects programs written in C and
35C++ with a variety of high-level programming languages. SWIG is used with
36different types of target languages including common scripting languages such
37as Perl, PHP, Python, Tcl and Ruby.
38
39You don\'t need to enable this package to build packages that rely on SWIG.
40Instead just add \'+swig/host\' to the PKG_BUILD_DEPENDS line of your
41package.
42endef
43
44##
45## Compile for the host
46##
47
48HOST_CONFIGURE_ARGS += --without-pcre
49
50define Host/Configure
51    $(call Host/Configure/Default)
52endef
53
54define Host/Compile
55    $(call Host/Compile/Default)
56endef
57
58define Host/Install
59    $(call Host/Install/Default)
60endef
61
62##
63## Compile for the target
64##
65
66# nothing to target-compile; everything done during host-compile step
67define Package/swig/compile
68endef
69
70define Package/swig/install
71endef
72
73$(eval $(call HostBuild))
74$(eval $(call BuildPackage,swig))
75
76# The following comments configure the Emacs editor. Just ignore them.
77# Local Variables:
78# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/swig/compile -j2 V=99"
79# End:
80

Archive Download this file



interactive