pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/geography/mapcode



Module Name:    pkgsrc
Committed By:   fhajny
Date:           Tue Oct 25 08:22:27 UTC 2016

Added Files:
        pkgsrc/geography/mapcode: DESCR Makefile PLIST buildlink3.mk distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/geography/mapcode/DESCR \
    pkgsrc/geography/mapcode/Makefile pkgsrc/geography/mapcode/PLIST \
    pkgsrc/geography/mapcode/buildlink3.mk pkgsrc/geography/mapcode/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/geography/mapcode/DESCR
diff -u /dev/null pkgsrc/geography/mapcode/DESCR:1.1
--- /dev/null   Tue Oct 25 08:22:27 2016
+++ pkgsrc/geography/mapcode/DESCR      Tue Oct 25 08:22:27 2016
@@ -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.
Index: pkgsrc/geography/mapcode/Makefile
diff -u /dev/null pkgsrc/geography/mapcode/Makefile:1.1
--- /dev/null   Tue Oct 25 08:22:27 2016
+++ pkgsrc/geography/mapcode/Makefile   Tue Oct 25 08:22:27 2016
@@ -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@localhost
+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"
Index: pkgsrc/geography/mapcode/PLIST
diff -u /dev/null pkgsrc/geography/mapcode/PLIST:1.1
--- /dev/null   Tue Oct 25 08:22:27 2016
+++ pkgsrc/geography/mapcode/PLIST      Tue Oct 25 08:22:27 2016
@@ -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
Index: pkgsrc/geography/mapcode/buildlink3.mk
diff -u /dev/null pkgsrc/geography/mapcode/buildlink3.mk:1.1
--- /dev/null   Tue Oct 25 08:22:27 2016
+++ pkgsrc/geography/mapcode/buildlink3.mk      Tue Oct 25 08:22:27 2016
@@ -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
Index: pkgsrc/geography/mapcode/distinfo
diff -u /dev/null pkgsrc/geography/mapcode/distinfo:1.1
--- /dev/null   Tue Oct 25 08:22:27 2016
+++ pkgsrc/geography/mapcode/distinfo   Tue Oct 25 08:22:27 2016
@@ -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



Home | Main Index | Thread Index | Old Index