2000-10-16 05:43:32 -04:00
|
|
|
# New ports collection makefile for: SWIG
|
|
|
|
# Date created: 19 April 1996
|
|
|
|
# Whom: jkh
|
1996-04-19 14:44:04 -04:00
|
|
|
#
|
1999-08-25 01:57:29 -04:00
|
|
|
# $FreeBSD$
|
1996-04-19 14:44:04 -04:00
|
|
|
#
|
|
|
|
|
2000-04-11 17:30:15 -04:00
|
|
|
PORTNAME= swig
|
2001-07-14 00:15:07 -04:00
|
|
|
PORTVERSION= 1.3.6
|
2000-09-06 11:58:07 -04:00
|
|
|
CATEGORIES= devel perl5 python ruby tcl82
|
2000-06-14 09:21:38 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
2000-06-02 15:28:07 -04:00
|
|
|
ftp://ftp.rge.com/pub/languages/swig/ \
|
1997-12-04 06:17:45 -05:00
|
|
|
ftp://ftp.mcc.ac.uk/pub/mvc/swig/
|
2000-06-14 09:21:38 -04:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1996-04-23 03:47:40 -04:00
|
|
|
|
2000-08-21 21:45:49 -04:00
|
|
|
MAINTAINER= knu@FreeBSD.org
|
1996-04-23 03:47:40 -04:00
|
|
|
|
2001-08-06 08:05:21 -04:00
|
|
|
BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf
|
|
|
|
|
2001-07-14 00:15:07 -04:00
|
|
|
VER= ${PORTVERSION:R}
|
2000-10-16 05:43:32 -04:00
|
|
|
|
2001-04-24 04:53:52 -04:00
|
|
|
SWIG_LANGUAGES?= guile perl python ruby tcl
|
|
|
|
.for lang in ${SWIG_LANGUAGES}
|
|
|
|
WANT_SWIG_${lang:U}= yes
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.if defined(WANT_SWIG_GUILE)
|
|
|
|
BUILD_DEPENDS+= guile:${PORTSDIR}/lang/guile
|
|
|
|
.endif
|
|
|
|
.if defined(WANT_SWIG_PERL)
|
|
|
|
USE_PERL5= yes
|
|
|
|
.endif
|
|
|
|
.if defined(WANT_SWIG_PYTHON)
|
|
|
|
USE_PYTHON= yes
|
|
|
|
PYTHON_NO_DEPENDS= yes
|
|
|
|
BUILD_DEPENDS+= ${PYTHON_CMD}:${PYTHON_PORTSDIR}
|
|
|
|
CONFIGURE_ARGS+= --with-pyincl=${PYTHON_INCLUDEDIR} \
|
|
|
|
--with-pylib=${PYTHON_LIBDIR}
|
|
|
|
.endif
|
|
|
|
.if defined(WANT_SWIG_RUBY)
|
2000-09-22 00:50:44 -04:00
|
|
|
USE_RUBY= yes
|
|
|
|
RUBY_NO_RUN_DEPENDS= yes
|
2001-04-24 04:53:52 -04:00
|
|
|
.endif
|
|
|
|
.if defined(WANT_SWIG_TCL)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/tclsh8.2:${PORTSDIR}/lang/tcl82
|
|
|
|
CONFIGURE_ARGS+= --with-tclincl=${LOCALBASE}/include/tcl8.2/ \
|
|
|
|
--with-tcllib=${LOCALBASE}/lib/tcl8.2/
|
|
|
|
.endif
|
|
|
|
|
2000-06-16 17:52:40 -04:00
|
|
|
INSTALLS_SHLIB= yes
|
2001-07-14 00:15:07 -04:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:U}
|
2000-06-15 13:12:51 -04:00
|
|
|
USE_LIBTOOL= yes
|
2001-02-02 00:11:48 -05:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -fpic -DPIC"
|
2000-10-16 05:43:32 -04:00
|
|
|
ALL_TARGET= swig runtime
|
|
|
|
PLIST_SUB= VER="${VER}"
|
|
|
|
|
|
|
|
post-install:
|
2001-04-24 04:53:52 -04:00
|
|
|
${LN} -f ${PREFIX}/bin/swig ${PREFIX}/bin/swig${VER}
|
2000-06-16 17:52:40 -04:00
|
|
|
|
1996-04-19 14:44:04 -04:00
|
|
|
.include <bsd.port.mk>
|