2019-07-22 00:23:57 +02:00
|
|
|
# $NetBSD: Makefile,v 1.86 2019/07/21 22:24:09 wiz Exp $
|
2008-12-20 18:36:14 +01:00
|
|
|
|
2016-04-09 07:55:34 +02:00
|
|
|
DISTNAME= avahi-0.6.32
|
2019-07-22 00:23:57 +02:00
|
|
|
PKGREVISION= 19
|
2008-12-20 18:36:14 +01:00
|
|
|
CATEGORIES= net
|
2016-04-09 08:50:46 +02:00
|
|
|
MASTER_SITES= https://github.com/lathiat/avahi/releases/download/v${PKGVERSION_NOREV}/
|
2008-12-20 18:36:14 +01:00
|
|
|
|
2008-12-28 18:44:37 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2008-12-20 18:36:14 +01:00
|
|
|
HOMEPAGE= http://avahi.org/
|
|
|
|
COMMENT= Facilitate service discovery on a local network
|
2009-06-09 15:07:13 +02:00
|
|
|
LICENSE= gnu-lgpl-v2.1
|
2008-12-20 18:36:14 +01:00
|
|
|
|
2013-07-05 18:28:43 +02:00
|
|
|
EXTRACT_USING= bsdtar
|
|
|
|
|
2008-12-20 18:36:14 +01:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
USE_LIBTOOL= YES
|
|
|
|
USE_PKGINSTALL= YES
|
|
|
|
USE_PKGLOCALEDIR= YES
|
2012-09-12 13:28:48 +02:00
|
|
|
USE_TOOLS+= pkg-config gmake intltool msgfmt xgettext
|
2008-12-20 18:36:14 +01:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
|
|
|
PKGCONFIG_OVERRIDE+= avahi-client.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= avahi-compat-howl.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= avahi-compat-libdns_sd.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= avahi-core.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= avahi-glib.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= avahi-gobject.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= avahi-qt3.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= avahi-qt4.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= avahi-sharp.pc.in
|
2011-05-14 15:04:04 +02:00
|
|
|
PKGCONFIG_OVERRIDE+= avahi-ui-gtk3.pc.in
|
2008-12-20 18:36:14 +01:00
|
|
|
PKGCONFIG_OVERRIDE+= avahi-ui-sharp.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= avahi-ui.pc.in
|
|
|
|
|
|
|
|
AVAHI_USER= avahi
|
|
|
|
AVAHI_GROUP= avahi
|
|
|
|
RCD_SCRIPTS= avahidaemon
|
2009-01-16 23:25:04 +01:00
|
|
|
BUILD_DEFS+= VARBASE PKG_SYSCONFBASE
|
2008-12-20 18:36:14 +01:00
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST
|
|
|
|
PKG_SYSCONFSUBDIR= avahi
|
2018-01-25 11:24:50 +01:00
|
|
|
USE_LANGUAGES= c99 c++
|
2008-12-20 18:36:14 +01:00
|
|
|
|
2009-01-08 02:00:15 +01:00
|
|
|
PKG_USERS= ${AVAHI_USER}:${AVAHI_GROUP}
|
2008-12-20 18:36:14 +01:00
|
|
|
PKG_GROUPS= ${AVAHI_GROUP}
|
2009-01-08 02:00:15 +01:00
|
|
|
PKG_GECOS.${AVAHI_USER}= Avahi user
|
2008-12-20 18:36:14 +01:00
|
|
|
|
|
|
|
.include "options.mk"
|
|
|
|
|
2016-02-25 17:20:49 +01:00
|
|
|
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
|
2018-01-25 11:24:50 +01:00
|
|
|
CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600
|
2014-06-16 21:23:42 +02:00
|
|
|
# Not yet reported upstream.
|
|
|
|
CPPFLAGS.Darwin+= -D__APPLE_USE_RFC_3542
|
2011-04-21 15:25:28 +02:00
|
|
|
|
2008-12-20 18:36:14 +01:00
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.shared
|
|
|
|
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/avahi/avahi-daemon.conf \
|
|
|
|
${PKG_SYSCONFDIR}/avahi-daemon.conf
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/avahi/hosts \
|
|
|
|
${PKG_SYSCONFDIR}/hosts
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/avahi/avahi-dnsconfd.action \
|
|
|
|
${PKG_SYSCONFDIR}/avahi-dnsconfd.action
|
2011-05-14 15:04:04 +02:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/avahi/services/sftp-ssh.service \
|
|
|
|
${PKG_SYSCONFDIR}/services/sftp-ssh.service
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/avahi/services/ssh.service \
|
2008-12-20 18:36:14 +01:00
|
|
|
${PKG_SYSCONFDIR}/services/ssh.service
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/avahi/avahi-dbus.conf \
|
2008-12-21 00:51:39 +01:00
|
|
|
${PKG_SYSCONFBASE}/dbus-1/system.d/avahi-dbus.conf
|
2008-12-20 18:36:14 +01:00
|
|
|
|
2009-01-16 23:25:04 +01:00
|
|
|
CONFIGURE_ARGS+= --with-avahi-user=${AVAHI_USER}
|
|
|
|
CONFIGURE_ARGS+= --with-avahi-group=${AVAHI_GROUP}
|
2009-03-08 11:08:16 +01:00
|
|
|
CONFIGURE_ARGS+= --with-avahi_priv_access_group=${REAL_ROOT_GROUP}
|
2009-01-16 23:25:04 +01:00
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
2009-12-01 19:53:54 +01:00
|
|
|
CONFIGURE_ARGS+= --with-dbus-system-socket=${VARBASE}/run/dbus/system_bus_socket
|
2008-12-20 18:36:14 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE}
|
|
|
|
CONFIGURE_ARGS+= --disable-doxygen-doc
|
|
|
|
CONFIGURE_ARGS+= --disable-doxygen-dot
|
2013-04-21 02:58:46 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-doxygen-html --disable-doxygen-xml
|
2008-12-20 18:36:14 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-xmltoman
|
|
|
|
CONFIGURE_ARGS+= --disable-autoipd
|
2017-09-27 08:30:37 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-qt3
|
2009-01-23 12:21:09 +01:00
|
|
|
CONFIGURE_ARGS+= --with-distro=none
|
|
|
|
|
2011-05-14 15:04:04 +02:00
|
|
|
INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples
|
|
|
|
INSTALL_MAKE_FLAGS+= dbusservicedir=${PREFIX}/share/examples/avahi
|
|
|
|
|
2009-01-16 23:25:04 +01:00
|
|
|
INSTALLATION_DIRS+= share/doc/avahi
|
|
|
|
|
2009-02-07 19:24:06 +01:00
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/services
|
2008-12-20 18:36:14 +01:00
|
|
|
|
2009-02-07 19:24:06 +01:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/HACKING ${DESTDIR}${PREFIX}/share/doc/avahi
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/INSTALL ${DESTDIR}${PREFIX}/share/doc/avahi
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/NEWS ${DESTDIR}${PREFIX}/share/doc/avahi
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/README ${DESTDIR}${PREFIX}/share/doc/avahi
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/TODO ${DESTDIR}${PREFIX}/share/doc/avahi
|
2008-12-20 18:36:14 +01:00
|
|
|
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
.include "../../devel/glib2/buildlink3.mk"
|
2011-05-14 15:04:04 +02:00
|
|
|
BUILDLINK_API_DEPENDS.libdaemon+= libdaemon>=0.14
|
2008-12-20 18:36:14 +01:00
|
|
|
.include "../../devel/libdaemon/buildlink3.mk"
|
|
|
|
.include "../../sysutils/dbus/buildlink3.mk"
|
|
|
|
.include "../../textproc/expat/buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|