pkgsrc/geography/mapcode/Makefile
fhajny ea09fdefe3 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.
2017-01-16 13:49:40 +00:00

38 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2017/01/16 13:49:40 fhajny Exp $
DISTNAME= mapcode-cpp-2.5.2
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
CMAKE_ARGS+= -DCMAKE_BINARY_DIR=${WRKSRC}/build
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}/unittest && ${SETENV} ${TEST_ENV} LD_LIBRARY_PATH=${WRKSRC}/build ${WRKSRC}/build/unittest
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"