| @@ -1,114 +1,114 @@ | | | @@ -1,114 +1,114 @@ |
1 | # $NetBSD: Makefile,v 1.76 2014/12/01 10:59:40 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.77 2015/01/05 23:25:20 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= dbus-1.8.12 | | 3 | DISTNAME= dbus-1.8.14 |
4 | CATEGORIES= sysutils | | 4 | CATEGORIES= sysutils |
5 | MASTER_SITES= http://dbus.freedesktop.org/releases/dbus/ | | 5 | MASTER_SITES= http://dbus.freedesktop.org/releases/dbus/ |
6 | | | 6 | |
7 | MAINTAINER= pkgsrc-users@NetBSD.org | | 7 | MAINTAINER= pkgsrc-users@NetBSD.org |
8 | HOMEPAGE= http://www.freedesktop.org/Software/dbus | | 8 | HOMEPAGE= http://www.freedesktop.org/Software/dbus |
9 | COMMENT= Message bus system | | 9 | COMMENT= Message bus system |
10 | LICENSE= gnu-gpl-v2 | | 10 | LICENSE= gnu-gpl-v2 |
11 | | | 11 | |
12 | CONFLICTS+= dbus-glib<0.71 | | 12 | CONFLICTS+= dbus-glib<0.71 |
13 | CONFLICTS+= py26-dbus<0.71 | | 13 | CONFLICTS+= py26-dbus<0.71 |
14 | CONFLICTS+= py27-dbus<0.71 | | 14 | CONFLICTS+= py27-dbus<0.71 |
15 | | | 15 | |
16 | GNU_CONFIGURE= YES | | 16 | GNU_CONFIGURE= YES |
17 | USE_TOOLS+= gmake msgfmt pkg-config | | 17 | USE_TOOLS+= gmake msgfmt pkg-config |
18 | USE_LIBTOOL= YES | | 18 | USE_LIBTOOL= YES |
19 | | | 19 | |
20 | PKGCONFIG_OVERRIDE= dbus-1.pc.in | | 20 | PKGCONFIG_OVERRIDE= dbus-1.pc.in |
21 | | | 21 | |
22 | BUILD_DEFS+= VARBASE | | 22 | BUILD_DEFS+= VARBASE |
23 | | | 23 | |
24 | OWN_DIRS_PERMS+= ${VARBASE}/db/dbus ${DBUS_USER} ${DBUS_GROUP} 0755 | | 24 | OWN_DIRS_PERMS+= ${VARBASE}/db/dbus ${DBUS_USER} ${DBUS_GROUP} 0755 |
25 | SPECIAL_PERMS+= libexec/dbus-daemon-launch-helper ${REAL_ROOT_USER} ${DBUS_GROUP} 4511 | | 25 | SPECIAL_PERMS+= libexec/dbus-daemon-launch-helper ${REAL_ROOT_USER} ${DBUS_GROUP} 4511 |
26 | | | 26 | |
27 | SMF_METHODS= dbus | | 27 | SMF_METHODS= dbus |
28 | SMF_NAME= dbus | | 28 | SMF_NAME= dbus |
29 | | | 29 | |
30 | .include "../../mk/bsd.prefs.mk" | | 30 | .include "../../mk/bsd.prefs.mk" |
31 | | | 31 | |
32 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} | | 32 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} |
33 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | | 33 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} |
34 | | | 34 | |
35 | CONFIGURE_ARGS_GROUPS= enable disable with without | | 35 | CONFIGURE_ARGS_GROUPS= enable disable with without |
36 | | | 36 | |
37 | .if ${OPSYS} == "Darwin" | | 37 | .if ${OPSYS} == "Darwin" |
38 | CONFIGURE_ARGS+= --with-session-socket-dir=/tmp | | 38 | CONFIGURE_ARGS+= --with-session-socket-dir=/tmp |
39 | .endif | | 39 | .endif |
40 | | | 40 | |
41 | CONFIGURE_ARGS.Linux= abstract-sockets selinux | | 41 | CONFIGURE_ARGS.Linux= abstract-sockets selinux |
42 | CONFIGURE_ARGS.docs= doxygen-docs xml-docs | | 42 | CONFIGURE_ARGS.docs= doxygen-docs xml-docs |
43 | | | 43 | |
44 | CONFIGURE_ARGS.without+= init-scripts | | 44 | CONFIGURE_ARGS.without+= init-scripts |
45 | CONFIGURE_ARGS.disable= ansi | | 45 | CONFIGURE_ARGS.disable= ansi |
46 | CONFIGURE_ARGS.disable+= console-owner-file | | 46 | CONFIGURE_ARGS.disable+= console-owner-file |
47 | CONFIGURE_ARGS.disable+= ${CONFIGURE_ARGS.docs} | | 47 | CONFIGURE_ARGS.disable+= ${CONFIGURE_ARGS.docs} |
48 | CONFIGURE_ARGS.enable= checks static | | 48 | CONFIGURE_ARGS.enable= checks static |
49 | ### | | 49 | ### |
50 | ### XXX the spawn test hangs, and some of these tests may be bogus | | 50 | ### XXX the spawn test hangs, and some of these tests may be bogus |
51 | ### | | 51 | ### |
52 | #.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss]) | | 52 | #.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss]) |
53 | #PKG_OPTIONS.dbus+= debug | | 53 | #PKG_OPTIONS.dbus+= debug |
54 | #TEST_TARGET= check | | 54 | #TEST_TARGET= check |
55 | #.endif | | 55 | #.endif |
56 | | | 56 | |
57 | CONFIGURE_ARGS.with= dbus-user=${DBUS_USER} | | 57 | CONFIGURE_ARGS.with= dbus-user=${DBUS_USER} |
58 | CONFIGURE_ARGS.with+= test-socket-dir=${WRKDIR:Q} | | 58 | CONFIGURE_ARGS.with+= test-socket-dir=${WRKDIR:Q} |
59 | | | 59 | |
60 | PTHREAD_AUTO_VARS= yes | | 60 | PTHREAD_AUTO_VARS= yes |
61 | | | 61 | |
62 | .if ${OPSYS} == "Linux" | | 62 | .if ${OPSYS} == "Linux" |
63 | PLIST.linux= yes | | 63 | PLIST.linux= yes |
64 | .else | | 64 | .else |
65 | CONFIGURE_ARGS.disable+=\ | | 65 | CONFIGURE_ARGS.disable+=\ |
66 | ${CONFIGURE_ARGS.Linux} | | 66 | ${CONFIGURE_ARGS.Linux} |
67 | .endif | | 67 | .endif |
68 | | | 68 | |
69 | PLIST_VARS+= linux | | 69 | PLIST_VARS+= linux |
70 | | | 70 | |
71 | CONFIGURE_ARGS+=\ | | 71 | CONFIGURE_ARGS+=\ |
72 | ${CONFIGURE_ARGS_GROUPS:@.g.@ \ | | 72 | ${CONFIGURE_ARGS_GROUPS:@.g.@ \ |
73 | ${CONFIGURE_ARGS.${.g.}:@.a.@ \ | | 73 | ${CONFIGURE_ARGS.${.g.}:@.a.@ \ |
74 | --${.g.}-${.a.} \ | | 74 | --${.g.}-${.a.} \ |
75 | @} \ | | 75 | @} \ |
76 | @:M*} | | 76 | @:M*} |
77 | | | 77 | |
78 | MAKE_DIRS= ${PKG_SYSCONFDIR}/dbus-1/event.d | | 78 | MAKE_DIRS= ${PKG_SYSCONFDIR}/dbus-1/event.d |
79 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/dbus-1/system.d | | 79 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/dbus-1/system.d |
80 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/dbus-1/session.d | | 80 | MAKE_DIRS+= ${PKG_SYSCONFDIR}/dbus-1/session.d |
81 | | | 81 | |
82 | EGDIR= ${PREFIX}/share/examples/dbus | | 82 | EGDIR= ${PREFIX}/share/examples/dbus |
83 | CONF_FILES= ${EGDIR}/session.conf ${PKG_SYSCONFDIR}/dbus-1/session.conf | | 83 | CONF_FILES= ${EGDIR}/session.conf ${PKG_SYSCONFDIR}/dbus-1/session.conf |
84 | CONF_FILES+= ${EGDIR}/system.conf ${PKG_SYSCONFDIR}/dbus-1/system.conf | | 84 | CONF_FILES+= ${EGDIR}/system.conf ${PKG_SYSCONFDIR}/dbus-1/system.conf |
85 | | | 85 | |
86 | RCD_SCRIPTS= dbus | | 86 | RCD_SCRIPTS= dbus |
87 | | | 87 | |
88 | PKG_GROUPS_VARS+= DBUS_GROUP | | 88 | PKG_GROUPS_VARS+= DBUS_GROUP |
89 | PKG_USERS_VARS+= DBUS_USER | | 89 | PKG_USERS_VARS+= DBUS_USER |
90 | | | 90 | |
91 | PKG_GROUPS= ${DBUS_GROUP} | | 91 | PKG_GROUPS= ${DBUS_GROUP} |
92 | PKG_USERS= ${DBUS_USER}:${DBUS_GROUP} | | 92 | PKG_USERS= ${DBUS_USER}:${DBUS_GROUP} |
93 | PKG_GECOS.${DBUS_USER}= System message bus | | 93 | PKG_GECOS.${DBUS_USER}= System message bus |
94 | PKG_HOME.${DBUS_USER}= ${VARBASE}/run/dbus | | 94 | PKG_HOME.${DBUS_USER}= ${VARBASE}/run/dbus |
95 | | | 95 | |
96 | FILES_SUBST+= DBUS_USER=${DBUS_USER} | | 96 | FILES_SUBST+= DBUS_USER=${DBUS_USER} |
97 | FILES_SUBST+= DBUS_GROUP=${DBUS_GROUP} | | 97 | FILES_SUBST+= DBUS_GROUP=${DBUS_GROUP} |
98 | | | 98 | |
99 | BUILDLINK_TRANSFORM+= rm:-Wl,--gc-sections | | 99 | BUILDLINK_TRANSFORM+= rm:-Wl,--gc-sections |
100 | # Package tries to use these if gcc accepts them, but that doesn't | | 100 | # Package tries to use these if gcc accepts them, but that doesn't |
101 | # mean that we universally can *run* the executables | | 101 | # mean that we universally can *run* the executables |
102 | BUILDLINK_TRANSFORM+= rm:-fPIE | | 102 | BUILDLINK_TRANSFORM+= rm:-fPIE |
103 | BUILDLINK_TRANSFORM+= rm:-pie | | 103 | BUILDLINK_TRANSFORM+= rm:-pie |
104 | | | 104 | |
105 | .if ${OPSYS} == "OpenBSD" | | 105 | .if ${OPSYS} == "OpenBSD" |
106 | BUILDLINK_TRANSFORM+= rm:-lrt | | 106 | BUILDLINK_TRANSFORM+= rm:-lrt |
107 | .endif | | 107 | .endif |
108 | | | 108 | |
109 | .include "options.mk" | | 109 | .include "options.mk" |
110 | | | 110 | |
111 | .include "../../mk/pthread.buildlink3.mk" | | 111 | .include "../../mk/pthread.buildlink3.mk" |
112 | .include "../../devel/gettext-lib/buildlink3.mk" | | 112 | .include "../../devel/gettext-lib/buildlink3.mk" |
113 | .include "../../textproc/expat/buildlink3.mk" | | 113 | .include "../../textproc/expat/buildlink3.mk" |
114 | .include "../../mk/bsd.pkg.mk" | | 114 | .include "../../mk/bsd.pkg.mk" |