OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 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 | |
| 9 | include $(TOPDIR)/rules.mk |
| 10 | |
| 11 | PKG_NAME:=swig |
| 12 | PKG_VERSION:=2.0.1 |
| 13 | PKG_RELEASE:=1 |
| 14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 15 | PKG_SOURCE_URL:=@SF/swig |
| 16 | PKG_MD5SUM:=df4465a62ccc5f0120fee0890ea1a31f |
| 17 | |
| 18 | #PKG_INSTALL=1 |
| 19 | #PKG_BUILD_DEPENDS:= libtool/host |
| 20 | |
| 21 | include $(INCLUDE_DIR)/host-build.mk |
| 22 | include $(INCLUDE_DIR)/package.mk |
| 23 | |
| 24 | define 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> |
| 31 | endef |
| 32 | |
| 33 | define Package/swig/description |
| 34 | SWIG is a software development tool that connects programs written in C and |
| 35 | C++ with a variety of high-level programming languages. SWIG is used with |
| 36 | different types of target languages including common scripting languages such |
| 37 | as Perl, PHP, Python, Tcl and Ruby. |
| 38 | |
| 39 | You don\'t need to enable this package to build packages that rely on SWIG. |
| 40 | Instead just add \'+swig/host\' to the PKG_BUILD_DEPENDS line of your |
| 41 | package. |
| 42 | endef |
| 43 | |
| 44 | ## |
| 45 | ## Compile for the host |
| 46 | ## |
| 47 | |
| 48 | HOST_CONFIGURE_ARGS += --without-pcre |
| 49 | |
| 50 | define Host/Configure |
| 51 | $(call Host/Configure/Default) |
| 52 | endef |
| 53 | |
| 54 | define Host/Compile |
| 55 | $(call Host/Compile/Default) |
| 56 | endef |
| 57 | |
| 58 | define Host/Install |
| 59 | $(call Host/Install/Default) |
| 60 | endef |
| 61 | |
| 62 | ## |
| 63 | ## Compile for the target |
| 64 | ## |
| 65 | |
| 66 | # nothing to target-compile; everything done during host-compile step |
| 67 | define Package/swig/compile |
| 68 | endef |
| 69 | |
| 70 | define Package/swig/install |
| 71 | endef |
| 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 |
