update Mon May 17 12:37:00 PDT 2010
[pkgsrc.git] / devel / swig / Makefile
1 # $NetBSD: Makefile,v 1.29 2010/04/12 13:57:59 taca Exp $
2
3 DISTNAME=       swig-1.3.36
4 PKGREVISION=    1
5 CATEGORIES=     devel
6 MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=swig/}
7
8 #
9 # 1.3.37 has a bug where .py files are written to the directory of the
10 # .i file instead of where the output is supposed to go, and this
11 # breaks gnuradio.  Please try to contact gdt@netbsd.org before
12 # updating to 1.3.37.  See message on discuss-gnuradio:
13 # Message-Id: <FA0E4567-C660-4C30-B604-2FA000330874@alum.mit.edu>
14 #
15 # x11/ruby-wxruby-2.0.1 requires 1.3.32 for Ruby 1.8 and 1.3.37 for
16 # Ruby 1.9.  And SWIG 1.3.39 introduced some incompatibility with
17 # wxRuby, sigh.
18 #
19
20 MAINTAINER=     pkgsrc-users@NetBSD.org
21 HOMEPAGE=       http://www.swig.org/
22 COMMENT=        Simplified Wrapper and Interface Generator
23 LICENSE=        2-clause-bsd
24
25 PKG_DESTDIR_SUPPORT=    user-destdir
26
27 CONFLICTS=              swig-build-[0-9]*
28
29 CONFIGURE_ARGS+=        --with-swiglibdir=${PREFIX}/share/swig/1.3
30 BUILD_TARGET=           swig
31
32 USE_TOOLS+=             gmake pax
33 GNU_CONFIGURE=          YES
34 USE_LANGUAGES=          c c++
35 USE_LIBTOOL=            YES
36
37 INSTALLATION_DIRS+=     share/doc/swig share/examples/swig
38
39 CHECK_INTERPRETER_SKIP+=        share/examples/swig/*
40
41 post-install:
42         cd ${WRKSRC}/Doc/Manual && \
43         ${INSTALL_DATA} SWIGDocumentation.html SWIGDocumentation.pdf    \
44                 *.png ${DESTDIR}${PREFIX}/share/doc/swig
45         cd ${WRKSRC}/Examples &&                                        \
46         pax -wr                                                         \
47                 -s ',.*CVS.*,,'                                         \
48                 -s ',.*Makefile\.in$$,,'                                \
49                 -s ',^test-suite.*,,'                                   \
50                 . ${DESTDIR}${PREFIX}/share/examples/swig
51
52 .include "../../mk/bsd.pkg.mk"