Add optional GTK2 support to avahi.
This commit is contained in:
parent
778a4ef263
commit
6a0fe7b9a0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148791
2 changed files with 16 additions and 2 deletions
|
@ -24,7 +24,6 @@ USE_GMAKE= yes
|
|||
USE_AUTOTOOLS= libtool:15
|
||||
INSTALLS_SHLIB= yes
|
||||
CONFIGURE_ARGS= --with-distro=freebsd \
|
||||
--disable-gtk \
|
||||
--disable-qt3 \
|
||||
--disable-qt4 \
|
||||
--disable-python \
|
||||
|
@ -44,6 +43,18 @@ MAN1= avahi-browse-domains.1 avahi-browse.1 avahi-publish-address.1 \
|
|||
MAN5= avahi-daemon.conf.5 avahi.service.5
|
||||
MAN8= avahi-daemon.8 avahi-dnsconfd.8 avahi-dnsconfd.action.8
|
||||
|
||||
OPTIONS= GTK2 "Build a GTK+ 2 browser utility" off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_GTK2)
|
||||
USE_GNOME+= libglade2
|
||||
PLIST_SUB+= GTK=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-gtk
|
||||
PLIST_SUB+= GTK="@comment "
|
||||
.endif
|
||||
|
||||
post-configure:
|
||||
@${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||
${FILESDIR}/avahi-daemon.sh > ${WRKDIR}/avahi-daemon.sh
|
||||
|
@ -57,4 +68,4 @@ post-install:
|
|||
${INSTALL_SCRIPT} ${WRKDIR}/avahi-daemon.sh ${PREFIX}/etc/rc.d
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/avahi-dnsconfd.sh ${PREFIX}/etc/rc.d
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
bin/avahi-browse
|
||||
bin/avahi-browse-domains
|
||||
%%GTK%%bin/avahi-discover-standalone
|
||||
bin/avahi-publish
|
||||
bin/avahi-publish-address
|
||||
bin/avahi-publish-service
|
||||
|
@ -56,6 +57,7 @@ libdata/pkgconfig/avahi-glib.pc
|
|||
sbin/avahi-daemon
|
||||
sbin/avahi-dnsconfd
|
||||
%%DATADIR%%/avahi-service.dtd
|
||||
%%GTK%%%%DATADIR%%/interfaces/avahi-discover.glade
|
||||
%%DATADIR%%/introspection/AddressResolver.introspect
|
||||
%%DATADIR%%/introspection/DomainBrowser.introspect
|
||||
%%DATADIR%%/introspection/EntryGroup.introspect
|
||||
|
@ -67,6 +69,7 @@ sbin/avahi-dnsconfd
|
|||
%%DATADIR%%/introspection/ServiceTypeBrowser.introspect
|
||||
%%DATADIR%%/service-types
|
||||
@dirrm %%DATADIR%%/introspection
|
||||
%%GTK%%@dirrm %%DATADIR%%/interfaces
|
||||
@dirrm %%DATADIR%%
|
||||
@dirrm include/avahi-glib
|
||||
@dirrm include/avahi-core
|
||||
|
|
Loading…
Reference in a new issue