sthen 3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
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.
2021-02-23 19:39:08 +00:00

76 lines
1.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.16 2021/02/23 19:39:14 sthen Exp $
COMMENT-main = distributed builds for C, C++ and Objective C
COMMENT-gtk = GTK+ monitor for distcc
COMMENT-server = distcc server
GH_PROJECT = distcc
GH_ACCOUNT = distcc
VERSION = 3.3.5
DISTNAME = distcc-${VERSION}
PKGNAME-main = ${DISTNAME}
PKGNAME-gtk = distcc-gtk-${VERSION}
PKGNAME-server = distcc-server-${VERSION}
EPOCH = 0
CATEGORIES = devel net
HOMEPAGE = https://distcc.github.io/
# GPLv2
PERMIT_PACKAGE = Yes
MASTER_SITES = https://github.com/distcc/distcc/releases/download/v${VERSION}/
MULTI_PACKAGES = -main -gtk -server
MODULES = lang/python
MODPY_EGG_VERSION = ${VERSION}
# Only -main needs an RDEP
MODPY_RUNDEP = No
WANTLIB += c popt pthread
LIB_DEPENDS = devel/popt
TEST_DEPENDS = devel/gdb
LIB_DEPENDS-main = ${LIB_DEPENDS}
RUN_DEPENDS-main += ${MODPY_RUN_DEPENDS}
WANTLIB-main = ${WANTLIB}
WANTLIB-server = ${WANTLIB}
LIB_DEPENDS-server = ${LIB_DEPENDS}
LIB_DEPENDS-gtk = ${LIB_DEPENDS} \
x11/gtk+2
RUN_DEPENDS-gtk = devel/desktop-file-utils
WANTLIB-gtk += ${WANTLIB} X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi
WANTLIB-gtk += Xinerama Xrandr Xrender atk-1.0 cairo fontconfig freetype
WANTLIB-gtk += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
WANTLIB-gtk += gtk-x11-2.0 harfbuzz intl pango-1.0 pangocairo-1.0
WANTLIB-gtk += pangoft2-1.0 z
USE_GMAKE = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS += --without-libiberty \
--without-avahi \
--with-gtk
FAKE_FLAGS = sysconfdir="${PREFIX}/share/examples/"
pre-configure:
cd ${WRKSRC} && sed -i -E \
-e 's,/usr/(bin|lib)/distcc,${PREFIX}/\1/distcc,g' \
man/distcc.1 man/distccd.1 update-distcc-symlinks.py \
src/daemon.c src/serve.c
post-install:
rm -r ${PREFIX}/share/examples/default
pre-test:
ln -s ${LOCALBASE}/bin/egdb ${WRKDIR}/bin/gdb
.include <bsd.port.mk>