2013-03-04 11:08:12 +00:00
|
|
|
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
|
2006-05-06 23:04:39 +00:00
|
|
|
# $FreeBSD$
|
2008-07-03 21:53:55 +00:00
|
|
|
# $MCom: ports/net/py-avahi/Makefile,v 1.4 2007/07/31 18:24:13 ahze Exp $
|
2013-12-14 16:25:21 +00:00
|
|
|
|
2018-08-13 01:49:59 +00:00
|
|
|
PORTREVISION= 0
|
2006-05-06 23:04:39 +00:00
|
|
|
CATEGORIES= net gnome python
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2007-10-24 23:37:25 +00:00
|
|
|
PKGNAMESUFFIX= # empty
|
2006-05-06 23:04:39 +00:00
|
|
|
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
COMMENT= Python interface to the Avahi mDNS system
|
|
|
|
|
2020-03-08 17:01:46 +00:00
|
|
|
DEPRECATED= Uses deprecated version of python
|
|
|
|
EXPIRATION_DATE= 2020-09-15
|
|
|
|
|
2018-06-20 17:05:41 +00:00
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gdbm>0:databases/py-gdbm@${PY_FLAVOR} \
|
|
|
|
${PYTHON_SITELIBDIR}/dbus/_dbus.py:devel/py-dbus@${PY_FLAVOR}
|
2016-04-01 14:16:16 +00:00
|
|
|
LIB_DEPENDS= libavahi-client.so:net/avahi-app
|
2018-06-20 17:05:41 +00:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gdbm>0:databases/py-gdbm@${PY_FLAVOR} \
|
2018-08-13 01:49:59 +00:00
|
|
|
${PYTHON_SITELIBDIR}/dbus/_dbus.py:devel/py-dbus@${PY_FLAVOR} \
|
|
|
|
avahi-gtk>=0.7:net/avahi-gtk
|
2006-05-06 23:04:39 +00:00
|
|
|
|
2007-10-24 23:37:25 +00:00
|
|
|
MASTERDIR= ${.CURDIR}/../avahi-app
|
2006-05-06 23:04:39 +00:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/avahi-python
|
|
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
|
|
DESCR= ${.CURDIR}/pkg-descr
|
|
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
|
|
|
2007-10-24 23:37:25 +00:00
|
|
|
AVAHI_SLAVE= python
|
2006-05-06 23:04:39 +00:00
|
|
|
|
2018-08-13 01:49:59 +00:00
|
|
|
USE_GNOME= pygobject3 pygtk2 gtk30
|
2018-02-19 11:10:43 +00:00
|
|
|
USES= python:2.7
|
2017-11-30 15:50:30 +00:00
|
|
|
USE_PYTHON= flavors
|
2013-12-14 16:25:21 +00:00
|
|
|
MANPAGES= avahi-bookmarks.1 avahi-discover.1
|
2006-05-06 23:04:39 +00:00
|
|
|
|
2008-02-09 18:25:32 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|@pkglibdir@|${DATADIR}|' \
|
2016-04-01 13:18:17 +00:00
|
|
|
${WRKSRC}/avahi-python/avahi/ServiceTypeDatabase.py.in
|
2008-02-09 18:25:32 +00:00
|
|
|
|
2007-04-21 00:42:31 +00:00
|
|
|
pre-build:
|
2014-06-25 05:35:31 +00:00
|
|
|
@cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
|
2016-04-01 13:18:17 +00:00
|
|
|
Makefile ${MAKE_ARGS} clean
|
2007-04-21 00:42:31 +00:00
|
|
|
|
2006-05-06 23:04:39 +00:00
|
|
|
post-build:
|
2014-06-25 05:35:31 +00:00
|
|
|
@cd ${WRKSRC}/service-type-database && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
|
2006-05-06 23:04:39 +00:00
|
|
|
${MAKE_FLAGS} Makefile ${MAKE_ARGS} ${ALL_TARGET}
|
|
|
|
|
|
|
|
post-install:
|
2014-06-25 05:35:31 +00:00
|
|
|
@cd ${WRKSRC}/service-type-database && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
|
2013-12-14 16:25:21 +00:00
|
|
|
${MAKE_FLAGS} Makefile ${MAKE_ARGS} install
|
|
|
|
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
|
|
|
-d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S,${PREFIX}/,,})
|
|
|
|
(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
|
|
|
-d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S,${PREFIX}/,,})
|
2006-05-06 23:04:39 +00:00
|
|
|
|
|
|
|
.include "${MASTERDIR}/Makefile"
|