some existing COMPILER lines with arch restrictions etc. In the usual case this is now using "COMPILER = base-clang ports-gcc base-gcc" on ports with c++ libraries in WANTLIB. This is basically intended to be a noop on architectures using clang as the system compiler, but help with other architectures where we currently have many ports knocked out due to building with an unsuitable compiler - - some ports require c++11/newer so the GCC version in base that is used on these archirtectures is too old. - some ports have conflicts where an executable is built with one compiler (e.g. gcc from base) but a library dependency is built with a different one (e.g. gcc from ports), resulted in mixing incompatible libraries in the same address space. devel/gmp is intentionally skipped as it's on the path to building gcc - the c++ library there is unused in ports (and not built by default upstream) so intending to disable building gmpcxx in a future commit.
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.41 2018/10/24 14:28:01 sthen Exp $
|
|
|
|
COMMENT= automatically generate Python bindings for C and C++ libs
|
|
|
|
# XXX Be particularly careful when testing updates.
|
|
# API breaks often.
|
|
|
|
DISTNAME= sip-4.19.3
|
|
PKGNAME= py-${DISTNAME}
|
|
REVISION = 3
|
|
CATEGORIES= devel
|
|
|
|
HOMEPAGE= http://www.riverbankcomputing.co.uk/software/sip/intro
|
|
|
|
# SIP license (Python like)
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB= m c ${COMPILER_LIBCXX}
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyqt/}
|
|
|
|
MODULES= lang/python
|
|
|
|
FLAVORS = python3
|
|
FLAVOR ?=
|
|
|
|
CONFIGURE_STYLE=simple
|
|
CONFIGURE_SCRIPT=${MODPY_BIN} configure.py
|
|
CONFIGURE_ARGS= -b ${PREFIX}/bin \
|
|
-d ${MODPY_SITEPKG} \
|
|
-e ${MODPY_INCDIR} \
|
|
-v ${PREFIX}/share/sip \
|
|
INCDIR=${LOCALBASE}/include \
|
|
LIBDIR=${LOCALBASE}/lib \
|
|
CC=${CC} CXX=${CXX} \
|
|
CFLAGS="${CFLAGS}" \
|
|
CXXFLAGS="${CXXFLAGS}"
|
|
|
|
NO_TEST= Yes
|
|
|
|
SUBST_VARS += MODPY_LIB_SUFFIX
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/configure.py
|
|
|
|
post-install:
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${WRKINST}${MODPY_SITEPKG}
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${MODPY_PY_PREFIX}sip
|
|
${INSTALL_DATA} ${WRKSRC}/doc/html/_sources/* ${PREFIX}/share/doc/${MODPY_PY_PREFIX}sip
|
|
mv -f ${PREFIX}/bin/sip ${PREFIX}/bin/sip${MODPY_BIN_SUFFIX}
|
|
|
|
.include <bsd.port.mk>
|