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
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 2015 Alexander Pyhalov
16 include ..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= libunique
19 COMPONENT_VERSION
= 1.1.6
20 COMPONENT_SUMMARY
= libunique
- library for writing single instance applications
21 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
22 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
23 COMPONENT_ARCHIVE_HASH
= \
24 sha256
:2cb918dde3554228a211925ba6165a661fd782394bd74dfe15e3853dc9c573ea
25 COMPONENT_ARCHIVE_URL
= \
26 http
://ftp.gnome.org
/pub
/GNOME
/sources
/$(COMPONENT_NAME
)/1.1/$(COMPONENT_ARCHIVE
)
27 COMPONENT_PROJECT_URL
= http
://www.gnome.org
28 COMPONENT_FMRI
= library
/libunique
29 COMPONENT_CLASSIFICATION
= System
/Libraries
30 COMPONENT_LICENSE
= LGPLv2.1
31 COMPONENT_LICENSE_FILE
= COPYING
33 include ..
/..
/make-rules
/prep.mk
34 include ..
/..
/make-rules
/configure.mk
35 include ..
/..
/make-rules
/ips.mk
37 PATH
=/usr
/gnu
/bin
:/usr
/bin
39 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && \
40 libtoolize
--automake
--copy
--force && \
41 aclocal
-Ibuild
/autotools
&& \
47 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
48 CONFIGURE_OPTIONS
+= --enable-introspection
=yes
49 CONFIGURE_OPTIONS
+= --enable-maintainer-flags
=no
51 # CFLAGS are not passed to compiler when g-ir-scanner is used
52 COMPONENT_BUILD_ENV
+= CFLAGS
="$(CFLAGS)"
53 COMPONENT_BUILD_ENV
+= CC
="$(CC)"
55 # Cleanup build env paths from header file
56 COMPONENT_POST_INSTALL_ACTION
+= ( $(GSED
) -i
-e
"s:$(SOURCE_DIR):..:" \
57 $(PROTO_DIR
)/usr
/include/unique-1.0
/unique
/uniqueenumtypes.h
)
59 build
: $(BUILD_32_and_64
)
61 install: $(INSTALL_32_and_64
)
63 test: $(TEST_32_and_64
)