1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/swig/trunk/Makefile @ 4981

Revision 4981, 2.2 KB (checked in by ellson, 4 years ago)

add swig docs to package

Line 
1GARNAME = swig
2GARVERSION = 1.3.39
3CATEGORIES = devel
4
5DESCRIPTION = A scripting interface generator for C/C++ code.
6define 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.
17endef
18
19MASTER_SITES = $(SF_MIRRORS)
20DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
21
22# We define upstream file regex so we can be notifed of new upstream software release
23UFILES_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
27UPSTREAM_MASTER_SITES = $(SF_PROJECT_SHOWFILE)=1645
28UPSTREAM_USE_SF = 1
29
30REQUIRED_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
41CONFIGURE_ARGS  = $(DIRPATHS)
42CONFIGURE_ARGS += --with-tcl=$(prefix)
43
44# Configure finds most things, but point to a more current Java
45CONFIGURE_ARGS += --with-java=/usr/j2se/bin/java
46CONFIGURE_ARGS += --with-javac=/usr/j2se/bin/javac
47CONFIGURE_ARGS += --with-javaincl=/usr/j2se/include
48
49MAKE_ARGS += docs
50
51# Not sure if this was meant to run by non-developers
52TEST_TARGET = check
53TEST_SCRIPTS =
54
55include gar/category.mk
56
57post-install-modulated: install-swig-doc
58
59install-swig-doc:
60        @mkdir -p $(DESTDIR)$(docdir)/$(GARNAME)
61        @cp -R $(WORKSRC)/Doc $(DESTDIR)$(docdir)/$(GARNAME)
62        @cp -R $(WORKSRC)/Examples $(DESTDIR)$(docdir)/$(GARNAME)
Note: See TracBrowser for help on using the browser.