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.
57 lines
1.6 KiB
Makefile
57 lines
1.6 KiB
Makefile
# $OpenBSD: Makefile,v 1.14 2018/10/24 14:28:01 sthen Exp $
|
|
|
|
COMMENT = python interface to subversion
|
|
|
|
MODPY_EGG_VERSION = 1.9.2
|
|
REVISION = 3
|
|
DISTNAME = pysvn-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-pysvn-${MODPY_EGG_VERSION}
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = http://pysvn.tigris.org
|
|
|
|
MAINTAINER = Stefan Sperling <stsp@openbsd.org>
|
|
|
|
# Apache v1.1, BSD-like
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MASTER_SITES = http://pysvn.barrys-emacs.org/source_kits/
|
|
|
|
MODULES = lang/python
|
|
LIB_DEPENDS = devel/subversion,-main
|
|
WANTLIB = expat m ${COMPILER_LIBCXX} svn_client-1 svn_diff-1 svn_repos-1
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
USE_GMAKE = Yes
|
|
_PYSVN_PYVERSION = ${MODPY_VERSION:S/./_/}
|
|
SUBST_VARS += _PYSVN_PYVERSION
|
|
|
|
WRKSRC = ${WRKDIST}/Source
|
|
|
|
MAKE_FLAGS = CC="${CC}" CXX="${CXX}" \
|
|
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
|
|
CONFIGURE_FLAGS = --apr-inc-dir=${LOCALBASE}/include/apr-1 \
|
|
--apr-lib-dir=${LOCALBASE}/lib \
|
|
--svn-inc-dir=${LOCALBASE}/include/subversion-1 \
|
|
--svn-lib-dir=${LOCALBASE}/lib
|
|
|
|
do-configure:
|
|
sed -i 's|#!/bin/bash|#!/bin/sh|' ${WRKDIST}/Tests/test-??.sh
|
|
cd ${WRKSRC} && ${MODPY_BIN} ./${MODPY_SETUP} configure ${CONFIGURE_FLAGS}
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${WRKINST}/${MODPY_SITEPKG}/pysvn
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pysvn/__init__.py \
|
|
${WRKINST}/${MODPY_SITEPKG}/pysvn/__init__.py
|
|
${INSTALL_DATA} ${WRKSRC}/pysvn/_pysvn_${_PYSVN_PYVERSION}.so \
|
|
${WRKINST}/${MODPY_SITEPKG}/pysvn/_pysvn_${_PYSVN_PYVERSION}.so
|
|
|
|
do-test:
|
|
cd ${WRKDIST}/Tests && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
|
|
|
|
.include <bsd.port.mk>
|