component(developer/golang-123): Add Component
[oi-userland.git] / components / desktop / gksu / Makefile
blob29a709ee0747e0df01549850f7d929071e750cae
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2016 Alexander Pyhalov
15 BUILD_STYLE=configure
16 BUILD_BITS=64
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= gksu
20 COMPONENT_VERSION= 2.0.2
21 COMPONENT_REVISION= 6
22 COMPONENT_FMRI= desktop/gksu
23 COMPONENT_CLASSIFICATION=Applications/System Utilities
24 COMPONENT_PROJECT_URL= http://www.nongnu.org/gksu/
25 COMPONENT_SUMMARY= Graphical frontend to su
26 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
28 COMPONENT_ARCHIVE_HASH= \
29 sha256:a1de3dca039d88c195fcdc9516379439a1d699750417f1e655aa2101a955ee5a
30 COMPONENT_ARCHIVE_URL= http://people.debian.org/~kov/gksu/$(COMPONENT_ARCHIVE)
31 COMPONENT_LICENSE_FILE= COPYING
32 COMPONENT_LICENSE= GPLv2
34 TEST_TARGET=$(NO_TESTS)
35 include $(WS_MAKE_RULES)/common.mk
37 PATH=$(PATH.gnu)
39 COMPONENT_PREP_ACTION = ( cd $(@D) && \
40 $(TOUCH) NEWS README&&\
41 libtoolize --copy --force &&\
42 aclocal &&\
43 automake -a -c -f && \
44 autoconf &&\
45 intltoolize --force --copy )
47 COMPONENT_PRE_CONFIGURE_ACTION = (chmod -R u+r $(SOURCE_DIR) && cp -rp $(SOURCE_DIR)/* $(@D) && \
48 cp -r $(COMPONENT_DIR)/files/po-sun $(@D) && \
49 cd $(@D)/po-sun && $(MAKE) all )
51 CONFIGURE_ENV+= LT_SYS_LIBRARY_PATH=$(USRLIBDIR.$(BITS))
52 CONFIGURE_OPTIONS+= --sysconfdir=$(ETCDIR)
53 CONFIGURE_OPTIONS+= --libexecdir=$(USRLIBDIR.$(BITS))
54 CONFIGURE_OPTIONS+= --disable-nautilus-extension
56 # -O2 is hardcoded
57 gcc_OPT=
59 # Build dependencies
60 REQUIRED_PACKAGES += library/gnome/gnome-keyring
62 # Auto-generated dependencies
63 REQUIRED_PACKAGES += library/desktop/atk
64 REQUIRED_PACKAGES += library/desktop/gtk2
65 REQUIRED_PACKAGES += library/desktop/libgksu
66 REQUIRED_PACKAGES += library/glib2
67 REQUIRED_PACKAGES += shell/bash
68 REQUIRED_PACKAGES += system/library