Joshua M. Clulow
2020-09-24 7274f565b60f4225f90980481952d01a33acc432
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2015 Alexander Pyhalov
# Copyright 2019 Jason Martin
#
 
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME= libgsf
COMPONENT_VERSION= 1.14.45
COMPONENT_REVISION= 1
COMPONENT_SUMMARY= GNOME Structured File Library
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
COMPONENT_ARCHIVE_HASH= \
  sha256:5cbc2c0f1dc44d202fa0c6e3a51e9f17b0c2deb8711ba650432bfde3180b69fa
COMPONENT_ARCHIVE_URL= \
  http://ftp.gnome.org/pub/GNOME/sources/$(COMPONENT_NAME)/1.14/$(COMPONENT_ARCHIVE)
COMPONENT_PROJECT_URL= http://www.gnome.org
COMPONENT_FMRI= library/desktop/libgsf
COMPONENT_CLASSIFICATION= Desktop (GNOME)/Libraries
COMPONENT_LICENSE= LGPLv2
COMPONENT_LICENSE_FILE = COPYING.LIB
 
include $(WS_TOP)/make-rules/prep.mk
include $(WS_TOP)/make-rules/configure.mk
include $(WS_TOP)/make-rules/ips.mk
 
PATH=$(PATH.gnu)
 
COMPONENT_PREP_ACTION= ( cd $(@D)  && \
                            libtoolize --copy --force &&\
                            aclocal -I m4 &&\
                            autoheader &&\
                            automake -c -f -a &&\
                            autoconf &&\
                            cp /usr/share/gettext/config.rpath .)
 
# Missing files in build dir without this.
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
 
CONFIGURE_OPTIONS += --sysconfdir=/etc
CONFIGURE_OPTIONS += --enable-static=no
 
COMPONENT_TEST_ENV += CC=$(CC)
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
COMPONENT_TEST_TRANSFORMS += \
    '-ne "/^\# TOTAL:/p" ' \
    '-ne "/^\# PASS:/p" ' \
    '-ne "/^\# SKIP:/p" ' \
    '-ne "/^\# XFAIL:/p" ' \
    '-ne "/^\# FAIL:/p" ' \
    '-ne "/^\# XPASS:/p" ' \
    '-ne "/^\# ERROR::/p" '
 
build: $(BUILD_32_and_64)
 
install: $(INSTALL_32_and_64)
 
# To prevent "libtool_install_magic: unbound variable"
unexport SHELLOPTS
 
test: $(TEST_32_and_64)
 
REQUIRED_PACKAGES += compress/bzip2
REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
REQUIRED_PACKAGES += library/glib2
REQUIRED_PACKAGES += library/libxml2
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc