aboutsummaryrefslogblamecommitdiff
path: root/devel/date/Makefile
blob: a5121a3f42f401da7e36cb28f910c558bfecefc9 (plain) (tree)
1
2
3
4
5
6
7
8

                         
                     



                                                                              
                                                     



                                     



                                         

                   

                             
 
                                              

                                   
                                     
                                   

                                                        


                                                                         

                                       
 







                                                                                                                             
PORTNAME=	date
DISTVERSIONPREFIX=	v
DISTVERSION=	3.0.1
CATEGORIES=	devel

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Date and time library based on the C++11/14/17 <chrono> header
WWW=		https://github.com/HowardHinnant/date

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

LIB_DEPENDS=	libcurl.so:ftp/curl
TEST_DEPENDS=	bash:shells/bash

USES=		cmake compiler:c++17-lang
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	HowardHinnant

CMAKE_ON=	BUILD_SHARED_LIBS BUILD_TZ_LIB
CMAKE_OFF=	ENABLE_DATE_TESTING

PLIST_FILES=	include/date/date.h \
		include/date/tz.h \
		lib/cmake/date/dateConfig.cmake \
		lib/cmake/date/dateConfigVersion.cmake \
		lib/cmake/date/dateTargets-${CMAKE_BUILD_TYPE:tl}.cmake \
		lib/cmake/date/dateTargets.cmake \
		lib/libdate-tz.so \
		lib/libdate-tz.so.3 \
		lib/libdate-tz.so.3.0.0

do-test:
	@cd ${WRKSRC} && ${REINPLACE_CMD} 's|!/bin/bash|!${LOCALBASE}/bin/bash|' compile_fail.sh test_fail.sh
	@cd ${BUILD_WRKSRC} && \
		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DENABLE_DATE_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} testit

.include <bsd.port.mk>