summaryrefslogtreecommitdiff
path: root/geography/mapcode
diff options
context:
space:
mode:
authorfhajny <fhajny>2016-10-25 08:22:27 +0000
committerfhajny <fhajny>2016-10-25 08:22:27 +0000
commit117800f6a0a28cc4f5e4346cf908c8d3ac56d3df (patch)
tree3606710dd62253874a47c90f0b2ea5121d4e7c88 /geography/mapcode
parent2c95361ed288a6174d5e30242938e27b52da1223 (diff)
downloadpkgsrc-117800f6a0a28cc4f5e4346cf908c8d3ac56d3df.tar.gz
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.
Diffstat (limited to 'geography/mapcode')
-rw-r--r--geography/mapcode/DESCR4
-rw-r--r--geography/mapcode/Makefile32
-rw-r--r--geography/mapcode/PLIST4
-rw-r--r--geography/mapcode/buildlink3.mk13
-rw-r--r--geography/mapcode/distinfo6
5 files changed, 59 insertions, 0 deletions
diff --git a/geography/mapcode/DESCR b/geography/mapcode/DESCR
new file mode 100644
index 00000000000..a3259ca0478
--- /dev/null
+++ b/geography/mapcode/DESCR
@@ -0,0 +1,4 @@
+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.
diff --git a/geography/mapcode/Makefile b/geography/mapcode/Makefile
new file mode 100644
index 00000000000..f6680a56ffc
--- /dev/null
+++ b/geography/mapcode/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2016/10/25 08:22:27 fhajny Exp $
+
+DISTNAME= mapcode-cpp-2.3.0
+PKGNAME= ${DISTNAME:S/-cpp//}
+CATEGORIES= geography
+MASTER_SITES= ${MASTER_SITE_GITHUB:=mapcode-foundation/}
+
+MAINTAINER= filip@joyent.com
+HOMEPAGE= https://github.com/mapcode-foundation/mapcode-cpp/
+COMMENT= Mapcode Library for C/C++
+LICENSE= apache-2.0
+
+GITHUB_PROJECT= mapcode-cpp
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+USE_LANGUAGES= c c++
+
+# Included CMakeLists is nonsensical
+# USE_CMAKE= yes
+
+INSTALLATION_DIRS= bin include lib
+
+do-build:
+ cd ${WRKSRC}/utility && ${CXX} ${CXXFLAGS} mapcode.cpp -o mapcode
+ cd ${WRKSRC}/mapcodelib && ${CC} ${CFLAGS} -fPIC -shared ${LDFLAGS} mapcoder.c -o libmapcode.so
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/utility/mapcode ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/mapcodelib/mapcoder.h ${DESTDIR}${PREFIX}/include/mapcode.h
+ ${INSTALL_LIB} ${WRKSRC}/mapcodelib/libmapcode.so ${DESTDIR}${PREFIX}/lib
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/geography/mapcode/PLIST b/geography/mapcode/PLIST
new file mode 100644
index 00000000000..2c2d7404576
--- /dev/null
+++ b/geography/mapcode/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2016/10/25 08:22:27 fhajny Exp $
+bin/mapcode
+include/mapcode.h
+lib/libmapcode.so
diff --git a/geography/mapcode/buildlink3.mk b/geography/mapcode/buildlink3.mk
new file mode 100644
index 00000000000..f7479a18d72
--- /dev/null
+++ b/geography/mapcode/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2016/10/25 08:22:27 fhajny Exp $
+
+BUILDLINK_TREE+= mapcode
+
+.if !defined(MAPCODE_BUILDLINK3_MK)
+MAPCODE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.mapcode+= mapcode>=2.3.0
+BUILDLINK_ABI_DEPENDS.mapcode+= mapcode>=2.3.0
+BUILDLINK_PKGSRCDIR.mapcode?= ../../geography/mapcode
+.endif # MAPCODE_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -mapcode
diff --git a/geography/mapcode/distinfo b/geography/mapcode/distinfo
new file mode 100644
index 00000000000..982789b9a87
--- /dev/null
+++ b/geography/mapcode/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/10/25 08:22:27 fhajny Exp $
+
+SHA1 (mapcode-cpp-2.3.0.tar.gz) = 6c0a8520bb42ac635849b52e94bcd90cb29348ef
+RMD160 (mapcode-cpp-2.3.0.tar.gz) = ffc35adac1255c77df6c9f4b7b347341c177300c
+SHA512 (mapcode-cpp-2.3.0.tar.gz) = 7ed70930ae6444d3d5ef7b82c1e719dc179ec18e204c892d0c140e30dddd68021f684d9ab4cae8be7998a290f999b740af4c42fee6b147718cdfc6b2aa743975
+Size (mapcode-cpp-2.3.0.tar.gz) = 919736 bytes