openbsd-ports/devel/swig/Makefile
landry dca1b3fa0d devel/swig: update to 4.1.0.
- remove patches for php8 support that were previously backported
- add node, go & boost to TDEP so that most tests can run (most of them pass)
- switch to pcre2

ran all tests on i386, amd64 & arm64 (thanks stsp@ for providing access)
also tested on arm64 by tb@ and riscv64 by jca@
went in an amd64 bulk build by tb@
2022-11-02 16:37:58 +00:00

69 lines
1.4 KiB
Makefile

COMMENT = simplified wrapper and interface generator
SUBST_VARS = VERSION
VERSION = 4.1.0
DISTNAME = swig-${VERSION}
CATEGORIES = devel
HOMEPAGE = http://www.swig.org/
# BSD
PERMIT_PACKAGE = Yes
WANTLIB = c m pcre2-8 ${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
MODPHP_BUILDDEP = Yes
BUILD_DEPENDS = ${MODTCL_BUILD_DEPENDS} \
lang/guile
LIB_DEPENDS = devel/pcre2
# dont run update-plist after make test
TEST_DEPENDS = lang/go \
lang/node \
devel/boost
USE_GMAKE = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += --with-tclincl=${MODTCL_INCDIR} \
--with-tcllib=${MODTCL_LIBDIR} \
--with-guilelib=${LOCALBASE}/lib \
--with-php=${MODPHP_BIN} \
--with-python=${MODPY_BIN} \
--with-ruby=${RUBY} \
--without-mzscheme \
--without-ocaml
MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC}/Tools/config
ALL_TARGET = swig
SWIG_EXAMPLES = ${PREFIX}/share/examples/swig
SWIG_DOCS = ${PREFIX}/share/doc/swig
PORTHOME = ${WRKDIR}
pre-test:
ln -sf ${MODTCL_BIN} ${WRKDIR}/bin/tclsh
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>