2010-11-06 15:05:28 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.42 2010/11/06 19:05:28 ajacoutot Exp $
|
2009-06-03 12:27:12 -04:00
|
|
|
|
|
|
|
COMMENT-main= framework for Multicast DNS Service Discovery
|
|
|
|
COMMENT-gtk= GUI client utilities for avahi
|
2009-10-09 13:36:20 -04:00
|
|
|
COMMENT-mono= mono (.NET) bindings for avahi
|
2009-06-03 12:27:12 -04:00
|
|
|
COMMENT-qt3= qt3 bindings for avahi
|
|
|
|
COMMENT-qt4= qt4 bindings for avahi
|
|
|
|
|
2010-07-31 10:33:20 -04:00
|
|
|
V= 0.6.27
|
2009-06-03 12:27:12 -04:00
|
|
|
DISTNAME= avahi-${V}
|
|
|
|
CATEGORIES= net devel
|
|
|
|
|
2010-07-12 18:07:37 -04:00
|
|
|
PKGNAME-main= avahi-${V}
|
|
|
|
PKGNAME-gtk= avahi-gtk-${V}
|
|
|
|
PKGNAME-mono= mono-avahi-${V}
|
|
|
|
PKGNAME-qt3= avahi-qt3-${V}
|
|
|
|
PKGNAME-qt4= avahi-qt4-${V}
|
2009-06-03 12:27:12 -04:00
|
|
|
|
2010-11-06 15:05:28 -04:00
|
|
|
REVISION-main= 5
|
2010-10-11 04:11:24 -04:00
|
|
|
REVISION-gtk= 1
|
2010-08-30 17:14:34 -04:00
|
|
|
REVISION-qt3= 0
|
|
|
|
REVISION-qt4= 0
|
2010-08-21 15:41:10 -04:00
|
|
|
|
2009-06-03 12:27:12 -04:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
|
|
|
SHARED_LIBS += avahi-common 0.0 # .8.0
|
|
|
|
SHARED_LIBS += avahi-core 0.0 # .5.5
|
|
|
|
SHARED_LIBS += avahi-qt3 0.0 # .1.2
|
|
|
|
SHARED_LIBS += avahi-qt4 0.0 # .1.2
|
|
|
|
SHARED_LIBS += avahi-client 0.0 # .5.4
|
|
|
|
SHARED_LIBS += avahi-glib 0.0 # .1.1
|
|
|
|
SHARED_LIBS += avahi-gobject 0.0 # .0.1
|
|
|
|
SHARED_LIBS += howl 0.0 # .0.0
|
|
|
|
SHARED_LIBS += avahi-ui 0.0 # .1.0
|
|
|
|
SHARED_LIBS += dns_sd 0.0 # .1.0
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.avahi.org/
|
|
|
|
|
|
|
|
# LGPLv2.1
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/download/
|
|
|
|
|
2009-10-09 13:36:20 -04:00
|
|
|
PSEUDO_FLAVORS= no_gtk no_mono no_qt3 no_qt4
|
2010-03-29 03:52:26 -04:00
|
|
|
FLAVOR?= no_gtk no_mono no_qt3 no_qt4
|
2009-06-04 17:42:40 -04:00
|
|
|
|
|
|
|
MULTI_PACKAGES= -main
|
2009-06-03 12:27:12 -04:00
|
|
|
|
|
|
|
MODULES= devel/gettext \
|
2009-06-04 17:42:40 -04:00
|
|
|
textproc/intltool
|
2009-06-03 12:27:12 -04:00
|
|
|
|
2010-10-18 14:36:45 -04:00
|
|
|
USE_GROFF = Yes
|
2009-06-03 12:27:12 -04:00
|
|
|
|
2009-06-04 17:42:40 -04:00
|
|
|
BUILD_DEPENDS= ::converters/xmltoman
|
|
|
|
|
2010-11-05 06:06:44 -04:00
|
|
|
WANTLIB-main= c expat glib-2.0 gobject-2.0 pcre pthread \
|
2010-11-06 15:05:28 -04:00
|
|
|
gthread-2.0 gdbm daemon dbus-1 \
|
|
|
|
${MODGETTEXT_WANTLIB}
|
2009-06-03 12:27:12 -04:00
|
|
|
LIB_DEPENDS-main= ${MODGETTEXT_LIB_DEPENDS} \
|
2010-07-17 10:12:38 -04:00
|
|
|
::devel/glib2 \
|
|
|
|
::databases/gdbm \
|
|
|
|
::devel/libdaemon \
|
|
|
|
::x11/dbus
|
2009-06-03 12:27:12 -04:00
|
|
|
|
2010-09-16 14:53:29 -04:00
|
|
|
# keep in sync with lang/mono/mono.port.mk
|
|
|
|
ONLY_FOR_ARCHS-mono = i386 amd64
|
2010-07-06 09:02:14 -04:00
|
|
|
|
|
|
|
BUILD_MONO = No
|
2010-07-05 04:25:08 -04:00
|
|
|
.if !${FLAVOR:L:Mno_mono}
|
2009-10-09 14:17:25 -04:00
|
|
|
MULTI_PACKAGES+= -mono
|
2010-07-06 09:02:14 -04:00
|
|
|
. for _a in ${MACHINE_ARCH} ${ARCH}
|
|
|
|
. if ${ONLY_FOR_ARCHS-mono:M${_a}}
|
|
|
|
BUILD_MONO = Yes
|
|
|
|
. endif
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${BUILD_MONO:L} == "yes"
|
2009-10-09 14:17:25 -04:00
|
|
|
MODULES+= lang/mono
|
2010-04-08 10:21:24 -04:00
|
|
|
BUILD_DEPENDS+= ${MODMONO_BUILD_DEPENDS} \
|
|
|
|
::x11/mono-gtk2
|
|
|
|
RUN_DEPENDS-mono= ${MODMONO_RUN_DEPENDS} \
|
2010-06-28 15:50:10 -04:00
|
|
|
::net/avahi,-gtk,no_qt3,no_qt4 \
|
2010-04-08 10:21:24 -04:00
|
|
|
::x11/mono-gtk2
|
2009-10-09 14:17:25 -04:00
|
|
|
LIB_DEPENDS-mono= # empty
|
|
|
|
WANTLIB-mono= # empty
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mono \
|
|
|
|
--disable-monodoc
|
|
|
|
.endif
|
|
|
|
|
2010-07-06 09:02:14 -04:00
|
|
|
.if !${FLAVOR:L:Mno_gtk} || ${BUILD_MONO:L} == "yes"
|
2009-06-04 17:42:40 -04:00
|
|
|
MULTI_PACKAGES+= -gtk
|
|
|
|
MODULES+= lang/python
|
|
|
|
BUILD_DEPENDS+= :python-gdbm-*:lang/python/${MODPY_VERSION},-gdbm \
|
2009-06-03 12:27:12 -04:00
|
|
|
::x11/py-gtk2 \
|
|
|
|
::x11/dbus-python
|
2009-06-04 17:42:40 -04:00
|
|
|
LIB_DEPENDS-gtk= ${MODGETTEXT_LIB_DEPENDS} \
|
2010-07-17 10:12:38 -04:00
|
|
|
::net/avahi
|
2010-04-08 10:21:24 -04:00
|
|
|
RUN_DEPENDS-gtk= ${MODPY_RUN_DEPENDS} \
|
|
|
|
:python-gdbm-*:lang/python/${MODPY_VERSION},-gdbm \
|
2009-06-03 12:27:12 -04:00
|
|
|
::x11/py-gtk2 \
|
2009-10-04 03:48:37 -04:00
|
|
|
::x11/dbus-python \
|
|
|
|
::devel/py-twisted/web \
|
|
|
|
::devel/desktop-file-utils
|
2009-06-03 12:27:12 -04:00
|
|
|
WANTLIB-gtk= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
|
|
|
|
Xi Xinerama Xrandr Xrender atk-1.0 c cairo dbus-1 \
|
2010-07-17 10:12:38 -04:00
|
|
|
expat fontconfig freetype gdbm gdk-x11-2.0 gthread-2.0 \
|
2010-10-11 04:11:24 -04:00
|
|
|
gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 \
|
2009-06-03 12:27:12 -04:00
|
|
|
gobject-2.0 gtk-x11-2.0 m pango-1.0 pangocairo-1.0 \
|
2010-07-17 10:12:38 -04:00
|
|
|
pangoft2-1.0 pcre pixman-1 png pthread pthread-stubs xcb z \
|
2010-11-06 12:07:00 -04:00
|
|
|
xcb-render xcb-render-util avahi-client avahi-common \
|
|
|
|
avahi-core avahi-glib ${MODGETTEXT_WANTLIB}
|
2009-06-04 17:42:40 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -disable-gtk \
|
|
|
|
--disable-python \
|
|
|
|
--disable-pygtk \
|
|
|
|
--disable-python-dbus
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mno_qt3}
|
|
|
|
MULTI_PACKAGES+= -qt3
|
|
|
|
MODULES+= x11/qt3
|
2009-06-03 12:27:12 -04:00
|
|
|
LIB_DEPENDS-qt3= ${MODGETTEXT_LIB_DEPENDS} \
|
|
|
|
${MODQT3_LIB_DEPENDS} \
|
2010-07-17 10:12:38 -04:00
|
|
|
::net/avahi
|
2009-06-03 12:27:12 -04:00
|
|
|
WANTLIB-qt3= GL ICE SM X11 Xau Xcursor Xdmcp Xext Xfixes Xft Xi \
|
|
|
|
Xinerama Xmu Xrandr Xrender Xt expat fontconfig \
|
2010-07-17 10:12:38 -04:00
|
|
|
freetype jpeg lcms m mng png pthread-stubs xcb z \
|
2010-11-06 12:07:00 -04:00
|
|
|
avahi-common stdc++ ${MODQT3_WANTLIB} ${MODGETTEXT_WANTLIB}
|
2009-06-04 17:42:40 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-qt3
|
|
|
|
.endif
|
2009-06-03 12:27:12 -04:00
|
|
|
|
2009-06-04 17:42:40 -04:00
|
|
|
.if !${FLAVOR:L:Mno_qt4}
|
|
|
|
MULTI_PACKAGES+= -qt4
|
|
|
|
MODULES+= x11/qt4
|
2009-06-03 12:27:12 -04:00
|
|
|
LIB_DEPENDS-qt4= ${MODGETTEXT_LIB_DEPENDS} \
|
2010-07-17 10:12:38 -04:00
|
|
|
::x11/qt4 \
|
|
|
|
::net/avahi
|
2010-11-06 12:07:00 -04:00
|
|
|
WANTLIB-qt4= QtCore avahi-common m stdc++ ${MODGETTEXT_WANTLIB}
|
2009-06-04 17:42:40 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-qt4
|
|
|
|
.endif
|
2009-06-03 12:27:12 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
2010-04-08 10:21:24 -04:00
|
|
|
MODPY_RUNDEP= No
|
|
|
|
MODMONO_DEPS= No
|
|
|
|
|
2010-07-17 10:12:38 -04:00
|
|
|
AUTOCONF_VERSION= 2.65
|
2009-06-03 12:27:12 -04:00
|
|
|
|
2010-07-17 10:12:38 -04:00
|
|
|
CONFIGURE_STYLE=autoconf no-autoheader
|
2009-06-03 12:27:12 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
|
|
|
|
PTHREAD_CFLAGS="-pthread" \
|
|
|
|
PTHREAD_LIBS="-pthread" \
|
|
|
|
PYTHON="${MODPY_BIN}"
|
2009-06-04 17:42:40 -04:00
|
|
|
CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
|
2009-06-03 12:27:12 -04:00
|
|
|
--localstatedir="/var" \
|
|
|
|
--with-dbus-sys="${SYSCONFDIR}/dbus-1/" \
|
|
|
|
--with-avahi-user=_avahi \
|
|
|
|
--with-avahi-group=_avahi \
|
|
|
|
--with-avahi-priv-access-group=wheel \
|
|
|
|
--with-autoipd-user=_avahi-autoipd \
|
|
|
|
--with-autoipd-group=_avahi-autoipd \
|
|
|
|
--with-xml=expat \
|
|
|
|
--with-distro=openbsd \
|
|
|
|
--enable-compat-howl \
|
|
|
|
--enable-compat-libdns_sd \
|
|
|
|
--enable-core-docs \
|
|
|
|
--enable-tests \
|
2010-07-17 10:12:38 -04:00
|
|
|
--disable-silent-rules \
|
2009-06-03 12:27:12 -04:00
|
|
|
--disable-doxygen-doc \
|
|
|
|
--disable-doxygen-dot \
|
|
|
|
--disable-doxygen-xml \
|
2010-07-17 10:12:38 -04:00
|
|
|
--disable-doxygen-html \
|
|
|
|
--disable-introspection \
|
|
|
|
--disable-gtk3
|
2009-06-03 12:27:12 -04:00
|
|
|
|
2010-07-31 10:33:20 -04:00
|
|
|
# don't link with libssp from the gcc4 port
|
|
|
|
# __guard and __stack_smash_handler are part of libc
|
2009-06-03 12:27:12 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-stack-protector
|
|
|
|
|
|
|
|
# XXX
|
|
|
|
CONFIGURE_ARGS+=--disable-autoipd
|
|
|
|
|
|
|
|
FAKE_FLAGS= SYSCONFDIR=${SYSCONFDIR}
|
|
|
|
|
2009-10-09 13:36:20 -04:00
|
|
|
PC_FILES= avahi-ui.pc avahi-client.pc avahi-compat-howl.pc \
|
|
|
|
avahi-compat-libdns_sd.pc avahi-core.pc avahi-glib.pc \
|
|
|
|
avahi-gobject.pc avahi-qt3.pc avahi-qt4.pc
|
|
|
|
|
2010-07-17 10:12:38 -04:00
|
|
|
post-extract:
|
2010-07-31 10:33:20 -04:00
|
|
|
find ${WRKDIR} -type d -name PaxHeaders.\* | \
|
2010-07-17 10:12:38 -04:00
|
|
|
xargs rm -r
|
|
|
|
|
2009-06-03 12:27:12 -04:00
|
|
|
pre-configure:
|
|
|
|
find ${WRKSRC} -name Makefile.in -exec \
|
|
|
|
perl -pi -e 's,LIBINTL,INTLLIBS,g;' \
|
|
|
|
-e 's,LIBICONV,LTLIBICONV,g' {} \;
|
2010-07-17 10:12:38 -04:00
|
|
|
find ${WRKSRC}/man -type f | xargs \
|
|
|
|
perl -pi -e 's,/etc/avahi,${SYSCONFDIR}/avahi,g'
|
2009-06-03 12:27:12 -04:00
|
|
|
perl -pi -e 's,dbus_connection_disconnect,dbus_connection_close,g' \
|
|
|
|
${WRKSRC}/avahi-client/client.c \
|
|
|
|
${WRKSRC}/avahi-daemon/dbus-protocol.c
|
|
|
|
perl -pi -e 's,-ldl,,g' ${WRKSRC}/configure \
|
|
|
|
${WRKSRC}/avahi-client/Makefile.in \
|
|
|
|
${WRKSRC}/avahi-daemon/Makefile.in
|
2009-10-09 13:36:20 -04:00
|
|
|
for i in ${PC_FILES}; do \
|
2009-06-03 12:27:12 -04:00
|
|
|
perl -pi -e 's,Libs:,Libs: -pthread,;' \
|
2009-10-09 13:36:20 -04:00
|
|
|
-e 's,Cflags:,Cflags: -pthread,' ${WRKSRC}/$${i}.in; done
|
2009-06-03 12:27:12 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples
|
|
|
|
mv ${WRKINST}${SYSCONFDIR}/dbus-1 ${PREFIX}/share/examples/
|
|
|
|
mv ${WRKINST}${SYSCONFDIR}/avahi ${PREFIX}/share/examples/
|
2010-06-28 15:30:13 -04:00
|
|
|
# DLLMAP_FILES won't work here since the files are generated during the build process
|
|
|
|
find ${PREFIX} -name avahi-sharp.dll.config -or -name avahi-ui-sharp.dll.config | \
|
|
|
|
xargs perl -pi -e 's,\.so\.[0-9]+,\.so,g'
|
2009-06-03 12:27:12 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|