2006-05-07 01:04:39 +02:00
|
|
|
# New ports collection makefile for: py-avahi
|
|
|
|
# Date Created: 06 May 2006
|
|
|
|
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2008-07-03 23:53:55 +02:00
|
|
|
# $MCom: ports/net/py-avahi/Makefile,v 1.4 2007/07/31 18:24:13 ahze Exp $
|
|
|
|
#
|
2006-05-07 01:04:39 +02:00
|
|
|
|
2010-07-27 01:30:32 +02:00
|
|
|
PORTREVISION= 4
|
2006-05-07 01:04:39 +02:00
|
|
|
CATEGORIES= net gnome python
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2007-10-25 01:37:25 +02:00
|
|
|
PKGNAMESUFFIX= # empty
|
2006-05-07 01:04:39 +02:00
|
|
|
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
COMMENT= Python interface to the Avahi mDNS system
|
|
|
|
|
2006-10-10 23:27:29 +02:00
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/gdbm.so:${PORTSDIR}/databases/py-gdbm \
|
2006-10-14 10:35:50 +02:00
|
|
|
${PYTHON_SITELIBDIR}/dbus/_dbus.py:${PORTSDIR}/devel/py-dbus
|
2007-10-28 19:16:40 +01:00
|
|
|
LIB_DEPENDS= avahi-client.3:${PORTSDIR}/net/avahi-app
|
2006-10-10 23:27:29 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gdbm.so:${PORTSDIR}/databases/py-gdbm \
|
2006-10-14 10:35:50 +02:00
|
|
|
${PYTHON_SITELIBDIR}/dbus/_dbus.py:${PORTSDIR}/devel/py-dbus
|
2006-05-07 01:04:39 +02:00
|
|
|
|
2007-10-25 01:37:25 +02:00
|
|
|
MASTERDIR= ${.CURDIR}/../avahi-app
|
2006-05-07 01:04:39 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/avahi-python
|
|
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
|
|
DESCR= ${.CURDIR}/pkg-descr
|
|
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
|
|
|
2007-10-25 01:37:25 +02:00
|
|
|
AVAHI_SLAVE= python
|
2006-05-07 01:04:39 +02:00
|
|
|
|
2011-08-11 21:20:17 +02:00
|
|
|
USE_GNOME= gnomehack pygtk2
|
2006-05-07 01:04:39 +02:00
|
|
|
USE_PYTHON= yes
|
|
|
|
MAN1= avahi-bookmarks.1 avahi-discover.1
|
|
|
|
|
2008-02-09 19:25:32 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|@pkglibdir@|${DATADIR}|' \
|
|
|
|
${WRKSRC}/avahi-python/avahi/ServiceTypeDatabase.py.in
|
|
|
|
|
2007-04-21 02:42:31 +02:00
|
|
|
pre-build:
|
|
|
|
@cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
|
|
|
|
Makefile ${MAKE_ARGS} clean
|
|
|
|
|
2006-05-07 01:04:39 +02:00
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}/service-type-database && ${SETENV} ${MAKE_ENV} ${GMAKE} \
|
|
|
|
${MAKE_FLAGS} Makefile ${MAKE_ARGS} ${ALL_TARGET}
|
|
|
|
|
|
|
|
post-install:
|
2006-05-25 03:31:30 +02:00
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/service-type-database/service-types.db ${DATADIR}
|
2006-09-08 18:34:30 +02:00
|
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -l ${PYTHONPREFIX_SITELIBDIR}/avahi
|
|
|
|
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -l ${PYTHONPREFIX_SITELIBDIR}/avahi
|
2006-05-07 01:04:39 +02:00
|
|
|
|
|
|
|
.include "${MASTERDIR}/Makefile"
|