if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
59 lines
1.2 KiB
Makefile
59 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.73 2021/02/23 19:39:21 sthen Exp $
|
|
|
|
COMMENT = simplified wrapper and interface generator
|
|
|
|
SUBST_VARS = VERSION
|
|
VERSION = 4.0.2
|
|
|
|
DISTNAME = swig-${VERSION}
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = http://www.swig.org/
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB = c m pcre ${COMPILER_LIBCXX} z
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=swig/}
|
|
|
|
MODULES = lang/python \
|
|
lang/ruby \
|
|
lang/tcl
|
|
|
|
MODRUBY_RUNDEP = No
|
|
|
|
MODPY_RUNDEP = No
|
|
|
|
BUILD_DEPENDS = ${MODTCL_BUILD_DEPENDS} \
|
|
lang/guile
|
|
LIB_DEPENDS = devel/pcre
|
|
|
|
USE_GMAKE = Yes
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ARGS += --with-tclincl=${MODTCL_INCDIR} \
|
|
--with-tcllib=${MODTCL_LIBDIR} \
|
|
--with-guilelib=${LOCALBASE}/lib \
|
|
--with-python=${MODPY_BIN} \
|
|
--with-ruby=${RUBY} \
|
|
--without-mzscheme \
|
|
--without-php \
|
|
--without-ocaml
|
|
MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC}/Tools/config
|
|
|
|
ALL_TARGET = swig
|
|
|
|
SWIG_EXAMPLES = ${PREFIX}/share/examples/swig
|
|
SWIG_DOCS = ${PREFIX}/share/doc/swig
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${SWIG_EXAMPLES}
|
|
${INSTALL_DATA_DIR} ${SWIG_DOCS}
|
|
cp -R ${WRKSRC}/Examples/* ${SWIG_EXAMPLES}
|
|
cp -R ${WRKSRC}/Doc/* ${SWIG_DOCS}
|
|
chmod 0644 ${SWIG_DOCS}/Manual/CCache.html
|
|
|
|
.include <bsd.port.mk>
|