pkgsrc/geography/mapcode/Makefile

38 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2016/11/08 08:08:52 fhajny Exp $
DISTNAME= mapcode-cpp-2.5.1
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"