67 lines
1.4 KiB
Makefile
Raw Normal View History

2018-02-01 08:43:11 +00:00
# $OpenBSD: Makefile,v 1.38 2018/02/01 08:43:11 ajacoutot Exp $
2016-03-01 09:11:27 +00:00
PORTROACH= limitw:2,even
2013-09-10 16:57:11 +00:00
COMMENT-main = dbus bindings for Python
COMMENT-common = common files for py-dbus
2018-02-01 08:43:11 +00:00
V = 1.2.6
2013-09-10 16:57:11 +00:00
DISTNAME = dbus-python-${V}
PKGNAME-main = py-dbus-${V}
FULLPKGNAME-common = py-dbus-common-${V}
FULLPKGPATH-common = x11/dbus-python,-common
2013-09-10 16:57:11 +00:00
CATEGORIES = x11
2013-09-10 16:57:11 +00:00
HOMEPAGE = http://dbus.freedesktop.org/
2013-09-10 16:57:11 +00:00
MAINTAINER = Antoine Jacoutot <ajacoutot@openbsd.org>
2010-07-02 18:01:53 +00:00
# ISC-like
PERMIT_PACKAGE_CDROM = Yes
2008-02-01 21:38:26 +00:00
WANTLIB-main += dbus-1 dbus-glib-1 ffi gio-2.0 glib-2.0 gmodule-2.0
2017-11-12 15:49:45 +00:00
WANTLIB-main += gobject-2.0 iconv intl pcre pthread z
2013-09-10 16:57:11 +00:00
WANTLIB-common += #empty
2013-09-10 16:57:11 +00:00
MASTER_SITES = ${HOMEPAGE}releases/dbus-python/
MULTI_PACKAGES = -main -common
2017-11-12 15:49:45 +00:00
MODULES = lang/python
2013-09-10 16:57:11 +00:00
FLAVORS = python3
FLAVOR ?=
2016-03-01 09:11:27 +00:00
USE_GMAKE= Yes
.if ${FLAVOR:Mpython3}
2013-09-10 16:57:11 +00:00
FULLPKGNAME-main= ${PKGNAME-main:S/^py-/py3-/}
2013-09-11 14:38:44 +00:00
FULLPKGPATH-main= x11/dbus-python,-main${MODPY_FLAVOR}
.endif
2017-11-12 15:49:45 +00:00
LIB_DEPENDS-main = x11/dbus-glib
2017-11-12 15:49:45 +00:00
RUN_DEPENDS-main = ${MODPY_RUN_DEPENDS} \
x11/dbus-python,-common
LIB_DEPENDS-common = #empty
RUN_DEPENDS-common = #empty
2013-09-10 16:57:11 +00:00
CONFIGURE_STYLE = gnu
2016-03-11 20:28:21 +00:00
CONFIGURE_ARGS = --disable-html-docs
2013-09-10 16:57:11 +00:00
TEST_FLAGS = LDFLAGS="-L${LOCALBASE}/lib"
TEST_DEPENDS = devel/py-gobject3${MODPY_FLAVOR}
2012-03-31 08:45:09 +00:00
2016-03-01 09:11:27 +00:00
pre-configure:
sed -i "s,/bin/bash,/bin/sh,g" \
${WRKSRC}/test/{TestSuitePythonService.service.in,run-test.sh}
2013-07-12 06:15:29 +00:00
post-install:
rm ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/*.{a,la}
.include <bsd.port.mk>