nrpe: update to 4.1.3
[oi-userland.git] / components / sysutils / upower / Makefile
blob7bb15f7d33e6d1b249288aedbd42ea35290ae05d
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2017 Alexander Pyhalov
14 # Copyright 2020 Michal Nowak
17 BUILD_BITS= 64
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME= upower
22 COMPONENT_VERSION= 0.99.11
23 COMPONENT_REVISION= 3
24 COMPONENT_PROJECT_URL= http://upower.freedesktop.org/
25 COMPONENT_CLASSIFICATION= System/Libraries
26 COMPONENT_FMRI= system/upower
27 COMPONENT_SUMMARY= A service for enumerating and querying data related to power devices
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
30 COMPONENT_ARCHIVE_HASH= \
31 sha256:64b5ffbfccd5bdb15d925777979a4dbee1a957f9eaeb158dc76175267eddbdef
32 COMPONENT_ARCHIVE_URL= \
33 http://upower.freedesktop.org/releases/$(COMPONENT_ARCHIVE)
34 COMPONENT_LICENSE= GPLv2
35 COMPONENT_LICENSE_FILE= COPYING
37 TEST_TARGET= $(NO_TESTS)
39 include $(WS_MAKE_RULES)/common.mk
41 PATH=$(PATH.gnu)
43 CPPFLAGS += $(CPP_LARGEFILES)
45 COMPONENT_PREP_ACTION = (cd $(@D) && \
46 libtoolize --copy --force &&\
47 aclocal -I . &&\
48 autoheader &&\
49 automake -c -f -a &&\
50 autoconf )
52 CONFIGURE_BINDIR.64 = /usr/bin
54 CONFIGURE_OPTIONS += --libexecdir=/usr/lib
55 CONFIGURE_OPTIONS += --sysconfdir=/etc
56 CONFIGURE_OPTIONS += --localstatedir=/var
57 CONFIGURE_OPTIONS += --disable-static
58 CONFIGURE_OPTIONS += --enable-gtk-doc
59 CONFIGURE_OPTIONS += --enable-man-pages
60 CONFIGURE_OPTIONS += --enable-shared
61 CONFIGURE_OPTIONS += --with-pic
63 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
65 # gobject-introspection
66 COMPONENT_BUILD_ENV += CC="$(CC)"
67 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
69 REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
70 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
71 REQUIRED_PACKAGES += library/glib2
72 REQUIRED_PACKAGES += system/library
73 REQUIRED_PACKAGES += system/library/math