summaryrefslogtreecommitdiff
path: root/devel/hhdate/Makefile
blob: 05e8217baca25a3eb92d015c726b2de0ca96e74c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Created by: Andreas Sommer <andreas.sommer87@googlemail.com>
# $FreeBSD$

PORTNAME=	hhdate
DISTVERSIONPREFIX=	v
DISTVERSION=	2.4
PORTREVISION=	2
CATEGORIES=	devel

MAINTAINER=	andreas.sommer87@googlemail.com
COMMENT=	Date and time library based on the C++11 (and beyond) <chrono> header

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

USE_GITHUB=	yes
GH_ACCOUNT=	HowardHinnant
GH_PROJECT=	date

NO_ARCH=	yes
NO_BUILD=	yes

PLIST_FILES=	include/hhdate/date.h

# TODO add timezone support when interest grows
OPTIONS_DEFINE=		TEST
TEST_DESC=		Build with minimal tests
TEST_ENV=		${MAKE_ENV} WRKDIR=${WRKDIR}
TEST_USES=		compiler:c++11-lib
TEST_TEST_TARGET=	test
USE_CXXSTD=		c++11

post-extract-TEST-on:
	${INSTALL_DATA} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
	${INSTALL_DATA} ${FILESDIR}/test-minimal.cpp ${WRKSRC}/test/test-minimal.cpp

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/hhdate
	${INSTALL_DATA} ${WRKSRC}/include/date/date.h ${STAGEDIR}${PREFIX}/include/hhdate/

.include <bsd.port.mk>