Andreas Wacknitz
2024-04-04 8590298b09ebad29af56370cd23105cd0931b389
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
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"). You may
# only use this file in accordance with the terms 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 2011 EveryCity Ltd. All rights reserved.
# Copyright 2018 Michal Nowak
#
BUILD_BITS= 64_and_32
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=        GeoIP
COMPONENT_VERSION=    1.6.12
COMPONENT_REVISION=    1
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
COMPONENT_FMRI=        database/geoip
COMPONENT_SUMMARY=    GeoIP is a C library finds the location of an IP address.
COMPONENT_ARCHIVE_HASH=    sha256:1dfb748003c5e4b7fd56ba8c4cd786633d5d6f409547584f6910398389636f80
COMPONENT_ARCHIVE_URL=    https://github.com/maxmind/geoip-api-c/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
COMPONENT_PROJECT_URL=    https://dev.maxmind.com/geoip/legacy/geolite/
COMPONENT_CLASSIFICATION=    System/Libraries
COMPONENT_LICENSE=    LGPLv2
COMPONENT_LICENSE_FILE=    geoip.license
 
include $(WS_MAKE_RULES)/common.mk
 
CONFIGURE_OPTIONS +=    --with-pic
CONFIGURE_OPTIONS +=    --no-recursion
CONFIGURE_OPTIONS +=    --enable-libtool-lock
CONFIGURE_OPTIONS +=    --disable-static
CONFIGURE_OPTIONS +=    --enable-shared
CONFIGURE_OPTIONS +=    --sysconfdir=$(ETCDIR)
CONFIGURE_OPTIONS +=    --enable-data-files
CONFIGURE_OPTIONS +=    CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS +=    LDFLAGS="$(LDFLAGS)"
CONFIGURE_SCRIPT   =    $(@D)/configure
 
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D) && \
        cd $(@D) && libtoolize && ./bootstrap )
 
COMPONENT_TEST_TRANSFORMER = $(NAWK)
COMPONENT_TEST_TRANSFORMS = "'/TOTAL|PASS|FAIL|XFAIL|SKIP|XPASS|ERROR/'"
 
# Needed for tests to pass.
unexport SHELLOPTS
 
# Auto-generated dependencies
REQUIRED_PACKAGES += system/library