| 1 | GARNAME = swig |
|---|
| 2 | GARVERSION = 1.3.39 |
|---|
| 3 | CATEGORIES = devel |
|---|
| 4 | |
|---|
| 5 | DESCRIPTION = A scripting interface generator for C/C++ code. |
|---|
| 6 | define BLURB |
|---|
| 7 | SWIG is a software development tool that connects programs written in C and |
|---|
| 8 | C++ with a variety of high-level programming languages. SWIG is primarily used |
|---|
| 9 | with common scripting languages such as Perl, Python, Tcl/Tk, and Ruby, |
|---|
| 10 | however the list of supported languages also includes non-scripting languages |
|---|
| 11 | such as Java, OCAML and C#. Also several interpreted and compiled Scheme |
|---|
| 12 | implementations (Guile, MzScheme, Chicken) are supported. SWIG is most |
|---|
| 13 | commonly used to create high-level interpreted or compiled programming |
|---|
| 14 | environments, user interfaces, and as a tool for testing and prototyping C/C++ |
|---|
| 15 | software. SWIG can also export its parse tree in the form of XML and Lisp |
|---|
| 16 | s-expressions. |
|---|
| 17 | endef |
|---|
| 18 | |
|---|
| 19 | MASTER_SITES = $(SF_MIRRORS) |
|---|
| 20 | DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz |
|---|
| 21 | |
|---|
| 22 | # We define upstream file regex so we can be notifed of new upstream software release |
|---|
| 23 | UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz |
|---|
| 24 | |
|---|
| 25 | # uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES |
|---|
| 26 | # 1645 is the group_id for the swig project on sourceforge |
|---|
| 27 | UPSTREAM_MASTER_SITES = $(SF_PROJECT_SHOWFILE)=1645 |
|---|
| 28 | UPSTREAM_USE_SF = 1 |
|---|
| 29 | |
|---|
| 30 | REQUIRED_PKGS = CSWzlib |
|---|
| 31 | |
|---|
| 32 | #SWIG doesn't DEPEND on the languages it supports being instaalled |
|---|
| 33 | # but, for the record, languages we *do* have: |
|---|
| 34 | #DEPEND += lang/tcl lang/python lang/perl lang/guile |
|---|
| 35 | #DEPEND += lang/ruby lang/php4 lang/ocaml |
|---|
| 36 | #DEPEND += lang/lua |
|---|
| 37 | |
|---|
| 38 | # and languages we don't have, yet: |
|---|
| 39 | #DEPEND += lang/pike lang/chicken lang/mono lang/mzscheme |
|---|
| 40 | |
|---|
| 41 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 42 | CONFIGURE_ARGS += --with-tcl=$(prefix) |
|---|
| 43 | |
|---|
| 44 | # Configure finds most things, but point to a more current Java |
|---|
| 45 | CONFIGURE_ARGS += --with-java=/usr/j2se/bin/java |
|---|
| 46 | CONFIGURE_ARGS += --with-javac=/usr/j2se/bin/javac |
|---|
| 47 | CONFIGURE_ARGS += --with-javaincl=/usr/j2se/include |
|---|
| 48 | |
|---|
| 49 | MAKE_ARGS += docs |
|---|
| 50 | |
|---|
| 51 | # Not sure if this was meant to run by non-developers |
|---|
| 52 | TEST_TARGET = check |
|---|
| 53 | TEST_SCRIPTS = |
|---|
| 54 | |
|---|
| 55 | include gar/category.mk |
|---|
| 56 | |
|---|
| 57 | post-install-modulated: install-swig-doc |
|---|
| 58 | |
|---|
| 59 | install-swig-doc: |
|---|
| 60 | @mkdir -p $(DESTDIR)$(docdir)/$(GARNAME) |
|---|
| 61 | @cp -R $(WORKSRC)/Doc $(DESTDIR)$(docdir)/$(GARNAME) |
|---|
| 62 | @cp -R $(WORKSRC)/Examples $(DESTDIR)$(docdir)/$(GARNAME) |
|---|