blob: d22766bdb96434727b77d3af3c48a21414610e16 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# $NetBSD: Makefile,v 1.3 2014/12/15 08:45:47 mef Exp $
DISTNAME= v0.3.1
PKGNAME= ${DISTNAME:S/^v/dateutils-/}
CATEGORIES= time
MASTER_SITES= http://github.com/hroptatyr/dateutils/archive/
DIST_SUBDIR= dateutils
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.fresse.org/dateutils/
COMMENT= Command line tools for working with dates
LICENSE= modified-bsd
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config automake autoreconf gmake makeinfo bison flex
USE_LIBTOOL= yes
INFO_FILES= yes
TEST_TARGET= check
INCLUDEDIR= include/${PKGBASE}
AUTO_MKDIRS= YES
pre-configure:
(cd ${WRKSRC}; autoreconf -i )
post-build:
(cd ${WRKSRC}/lib; ${GMAKE})
post-install:
(cd ${WRKSRC}/lib; \
env DESTDIR=${DESTDIR} ${GMAKE} install-libLIBRARIES)
# To have the similar PLIST of previous version, installing headers.
.for i in \
boops.h \
date-core-strpf.h \
date-core.h \
dt-core-strpf.h \
dt-core-tz-glue.h \
dt-core.h \
generics.h \
gmtime.h \
leaps.h \
leapseconds.def \
leapseconds.h \
nifty.h \
strops.h \
time-core-strpf.h \
time-core.h \
token.h \
tzmap.h \
tzraw.h \
version.h
(cd ${WRKSRC}/lib; ${INSTALL_DATA} ${i} ${DESTDIR}${PREFIX}/${INCLUDEDIR})
.endfor
.include "../../devel/gperf/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|