head	1.12;
access;
symbols
	pkgsrc-2026Q1:1.12.0.6
	pkgsrc-2026Q1-base:1.12
	pkgsrc-2025Q4:1.12.0.4
	pkgsrc-2025Q4-base:1.12
	pkgsrc-2025Q3:1.12.0.2
	pkgsrc-2025Q3-base:1.12
	pkgsrc-2025Q2:1.11.0.8
	pkgsrc-2025Q2-base:1.11
	pkgsrc-2025Q1:1.11.0.6
	pkgsrc-2025Q1-base:1.11
	pkgsrc-2024Q4:1.11.0.4
	pkgsrc-2024Q4-base:1.11
	pkgsrc-2024Q3:1.11.0.2
	pkgsrc-2024Q3-base:1.11
	pkgsrc-2024Q2:1.10.0.22
	pkgsrc-2024Q2-base:1.10
	pkgsrc-2024Q1:1.10.0.20
	pkgsrc-2024Q1-base:1.10
	pkgsrc-2023Q4:1.10.0.18
	pkgsrc-2023Q4-base:1.10
	pkgsrc-2023Q3:1.10.0.16
	pkgsrc-2023Q3-base:1.10
	pkgsrc-2023Q2:1.10.0.14
	pkgsrc-2023Q2-base:1.10
	pkgsrc-2023Q1:1.10.0.12
	pkgsrc-2023Q1-base:1.10
	pkgsrc-2022Q4:1.10.0.10
	pkgsrc-2022Q4-base:1.10
	pkgsrc-2022Q3:1.10.0.8
	pkgsrc-2022Q3-base:1.10
	pkgsrc-2022Q2:1.10.0.6
	pkgsrc-2022Q2-base:1.10
	pkgsrc-2022Q1:1.10.0.4
	pkgsrc-2022Q1-base:1.10
	pkgsrc-2021Q4:1.10.0.2
	pkgsrc-2021Q4-base:1.10
	pkgsrc-2021Q3:1.8.0.12
	pkgsrc-2021Q3-base:1.8
	pkgsrc-2021Q2:1.8.0.10
	pkgsrc-2021Q2-base:1.8
	pkgsrc-2021Q1:1.8.0.8
	pkgsrc-2021Q1-base:1.8
	pkgsrc-2020Q4:1.8.0.6
	pkgsrc-2020Q4-base:1.8
	pkgsrc-2020Q3:1.8.0.4
	pkgsrc-2020Q3-base:1.8
	pkgsrc-2020Q2:1.8.0.2
	pkgsrc-2020Q2-base:1.8
	pkgsrc-2020Q1:1.7.0.10
	pkgsrc-2020Q1-base:1.7
	pkgsrc-2019Q4:1.7.0.12
	pkgsrc-2019Q4-base:1.7
	pkgsrc-2019Q3:1.7.0.8
	pkgsrc-2019Q3-base:1.7
	pkgsrc-2019Q2:1.7.0.6
	pkgsrc-2019Q2-base:1.7
	pkgsrc-2019Q1:1.7.0.4
	pkgsrc-2019Q1-base:1.7
	pkgsrc-2018Q4:1.7.0.2
	pkgsrc-2018Q4-base:1.7
	pkgsrc-2018Q3:1.6.0.8
	pkgsrc-2018Q3-base:1.6
	pkgsrc-2018Q2:1.6.0.6
	pkgsrc-2018Q2-base:1.6
	pkgsrc-2018Q1:1.6.0.4
	pkgsrc-2018Q1-base:1.6
	pkgsrc-2017Q4:1.6.0.2
	pkgsrc-2017Q4-base:1.6
	pkgsrc-2017Q3:1.5.0.8
	pkgsrc-2017Q3-base:1.5
	pkgsrc-2017Q2:1.5.0.4
	pkgsrc-2017Q2-base:1.5
	pkgsrc-2017Q1:1.5.0.2
	pkgsrc-2017Q1-base:1.5
	pkgsrc-2016Q4:1.4.0.2
	pkgsrc-2016Q4-base:1.4;
locks; strict;
comment	@# @;


1.12
date	2025.08.20.11.34.58;	author wiz;	state Exp;
branches;
next	1.11;
commitid	lgT5N7I1hRAxGs7G;

1.11
date	2024.08.25.06.18.48;	author wiz;	state Exp;
branches;
next	1.10;
commitid	BcrSL94SO85mvanF;

1.10
date	2021.10.21.12.06.15;	author gdt;	state Exp;
branches;
next	1.9;
commitid	0CJN5Qxtyc7nPFdD;

1.9
date	2021.10.21.00.50.59;	author gdt;	state Exp;
branches;
next	1.8;
commitid	BTsIMigjP82Q5CdD;

1.8
date	2020.05.27.19.37.40;	author wiz;	state Exp;
branches;
next	1.7;
commitid	anuppwIr6jQDMU9C;

1.7
date	2018.12.15.21.12.21;	author wiz;	state Exp;
branches;
next	1.6;
commitid	MNezDhBeO99pjW3B;

1.6
date	2017.10.03.12.15.02;	author fhajny;	state Exp;
branches;
next	1.5;
commitid	E8H8FcEgR6uRpB9A;

1.5
date	2017.01.16.13.49.40;	author fhajny;	state Exp;
branches;
next	1.4;
commitid	QXpmknMrJcxricCz;

1.4
date	2016.11.08.08.08.52;	author fhajny;	state Exp;
branches;
next	1.3;
commitid	Nv5MrSk8Lqs8Ditz;

1.3
date	2016.11.03.15.06.41;	author fhajny;	state Exp;
branches;
next	1.2;
commitid	0psWvYAF9HI76Hsz;

1.2
date	2016.10.26.10.50.33;	author fhajny;	state Exp;
branches;
next	1.1;
commitid	jt7v8vliSMRVVDrz;

1.1
date	2016.10.25.08.22.27;	author fhajny;	state Exp;
branches;
next	;
commitid	tHXVs7Ajcd2e9vrz;


desc
@@


1.12
log
@*: fix build with cmake 4
@
text
@# $NetBSD: Makefile,v 1.11 2024/08/25 06:18:48 wiz Exp $

GITHUB_PROJECT=	mapcode-cpp
GITHUB_TAG=	v${PKGVERSION_NOREV}
DISTNAME=	mapcode-cpp-2.5.5
PKGNAME=	${DISTNAME:S/-cpp//}
CATEGORIES=	geography
MASTER_SITES=	${MASTER_SITE_GITHUB:=mapcode-foundation/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/mapcode-foundation/mapcode-cpp/
COMMENT=	Mapcode Library for C/C++
LICENSE=	apache-2.0

USE_LANGUAGES=		c c++

# Included CMakeLists is nonsensical
USE_CMAKE=		yes

CMAKE_CONFIGURE_ARGS+=	-DCMAKE_BINARY_DIR=${WRKSRC}/build
CMAKE_CONFIGURE_ARGS+=  -DCMAKE_POLICY_VERSION_MINIMUM=3.5

LDFLAGS+=		-lm

PTHREAD_AUTO_VARS=	yes

INSTALLATION_DIRS=	bin include lib

do-install:
	${INSTALL_DATA} ${WRKSRC}/mapcodelib/mapcoder.h ${DESTDIR}${PREFIX}/include/mapcode.h
	${INSTALL_PROGRAM} ${WRKSRC}/build/mapcode ${DESTDIR}${PREFIX}/bin
	${INSTALL_LIB} ${WRKSRC}/build/libmapcode.so ${DESTDIR}${PREFIX}/lib

do-test:
	cd ${WRKSRC}/test && ${SETENV} ${TEST_ENV} LD_LIBRARY_PATH=${WRKSRC}/build ../build/unittest

.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.11
log
@*: replace CMAKE_ARGS with CMAKE_CONFIGURE_ARGS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2021/10/21 12:06:15 gdt Exp $
d20 2
a21 1
CMAKE_CONFIGURE_ARGS+=		-DCMAKE_BINARY_DIR=${WRKSRC}/build
@


1.10
log
@geography/mapcode: Update to 2.5.5

Upstream lacks NEWS, but obviously this should be a bugfix release
from 2.5.4.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2021/10/21 00:50:59 gdt Exp $
d20 1
a20 1
CMAKE_ARGS+=		-DCMAKE_BINARY_DIR=${WRKSRC}/build
@


1.9
log
@geography/mapcode: Reorder lines (pkglint)

and whitespace rationalization
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2020/05/27 19:37:40 wiz Exp $
d5 1
a5 1
DISTNAME=	mapcode-cpp-2.5.4
@


1.8
log
@*: reset MAINTAINER for fhajny on his request
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2018/12/15 21:12:21 wiz Exp $
d3 2
d15 1
a15 4
GITHUB_PROJECT=	mapcode-cpp
GITHUB_TAG=	v${PKGVERSION_NOREV}

USE_LANGUAGES=	c c++
d18 1
a18 1
USE_CMAKE=	yes
@


1.7
log
@*: update email for fhajny
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2017/10/03 12:15:02 fhajny Exp $
d8 1
a8 1
MAINTAINER=	fhajny@@NetBSD.org
@


1.6
log
@Update geography/mapcode to 2.5.4.

- Added encodeLatLonToSelectedMapcode as a convenience for languages
  that use the C library, but have difficulties dealing with
  multi-dimensional arrays (like Swift).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2017/01/16 13:49:40 fhajny Exp $
d8 1
a8 1
MAINTAINER=	filip@@joyent.com
@


1.5
log
@Update geography/mapcode to 2.5.2.

- Added unit test for floating point error with code "40822.schol".
- Added locale support.
- Added many languages.
- Hardened unit tests.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2016/11/08 08:08:52 fhajny Exp $
d3 1
a3 1
DISTNAME=	mapcode-cpp-2.5.2
d35 1
a35 1
	cd ${WRKSRC}/unittest && ${SETENV} ${TEST_ENV} LD_LIBRARY_PATH=${WRKSRC}/build ${WRKSRC}/build/unittest
@


1.4
log
@Expand -lm arg to all platforms. Fixes build elsewhere.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2016/11/03 15:06:41 fhajny Exp $
d3 1
a3 1
DISTNAME=	mapcode-cpp-2.5.1
@


1.3
log
@Update geography/mapcode to 2.5.1. Fix cmake build.

2.5.1
- Updated unit test to compile with plain C and added some test cases.

2.5.0
- Added support for getting territory names in English and local
  alphabets.
- Added much improved unit test scripts to run gprof, valgrind,
  the CLang address sanitize and compare the output of the new library
  with and older version.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2016/10/26 10:50:33 fhajny Exp $
d23 1
a23 1
LDFLAGS.SunOS+=		-lm
@


1.2
log
@Update geography/mapcode to 2.4.0. Build with thread support.

Changes in 2.4.0

- Added scripts for Korean (Choson'gul / Hangul), Burmese, Khmer,
  Sinhalese, Thaana (Maldivan), Chinese (Zhuyin, Bopomofo), Tifinagh
  (Berber), Tamil, Amharic, Telugu, Odia, Kannada, Gujarati.
- Renamed constants to more correct terms (Malay to Malayalam, Hindi to
  Devanagari).
- Added getAlphabetsForTerritory(t), returning the most commonly used
  alphabets for territory t.
- Improved some characters for Arabic and Devanagari.
- Fixed Bengali to also support Assamese.
- Improved readability of implementation.
- Added conditional define option for unittest: NO_POSIX_THREADS. Add
  -DNO_POSIX_THREADS to your compiler command-line to not use
  pthreads.h, for example, on MSVC platforms.
- Added conditional define option library: NO_FAST_ENCODE. Add
  -DNO_FAST_ENCODE to your compiler command-line to not use the fast
  encoding (default is to use fast encoding). Using fast encoding speeds
  up de encoding by a factor of 2. For normal use, there is no reason not
  to use fast encoding.
- Added parseMapcodeString to get individual mapcode elements, like the
  territory code, the 'proper' mapcode (without the territory and
  precision extension) and the precision extension parsed from a (user)
  input string.
- Additional bug fixes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2016/10/25 08:22:27 fhajny Exp $
d3 1
a3 1
DISTNAME=	mapcode-cpp-2.4.0
d19 5
a23 1
# USE_CMAKE=	yes
a28 4
do-build:
	cd ${WRKSRC}/utility && ${CXX} ${CXXFLAGS} mapcode.cpp -o mapcode
	cd ${WRKSRC}/mapcodelib && ${CC} ${CFLAGS} -fPIC -shared ${LDFLAGS} mapcoder.c -o libmapcode.so

a29 1
	${INSTALL_PROGRAM} ${WRKSRC}/utility/mapcode ${DESTDIR}${PREFIX}/bin
d31 5
a35 1
	${INSTALL_LIB} ${WRKSRC}/mapcodelib/libmapcode.so ${DESTDIR}${PREFIX}/lib
@


1.1
log
@Import mapcode 2.3.0 as geography/mapcode.
Based on a PR by Aleksej Lebedev.

A mapcode represents a location. Every location on Earth can be
represented by a mapcode. Mapcodes were designed to be short,
easy to recognise, remember and communicate. They are precise
to a few meters, which is good enough for every-day use.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME=	mapcode-cpp-2.3.0
d21 2
d34 1
@

