summaryrefslogtreecommitdiff
path: root/devel/uthash/Makefile
blob: 8af70eafd3030e253e91078eeb916e55d36b2fd5 (plain) (blame)
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
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$

PORTNAME=	uthash
PORTVERSION=	1.9.8p2
CATEGORIES=	devel
MASTER_SITES=	GH

MAINTAINER=	zi@FreeBSD.org
COMMENT=	hash table for C structures

LICENSE=	BSD

OPTIONS_DEFINE=	DOCS

USES=	tar:bzip2
NO_BUILD=	yes
USE_GITHUB=	yes
GH_ACCOUNT=	troydhanson
GH_COMMIT=	d10c46a
GH_TAGNAME=	${GH_COMMIT}

PORTDOCS=	ChangeLog.txt todo.txt userguide.txt utarray.txt \
		utlist.txt utstring.txt
PLIST_FILES=	include/utarray.h include/uthash.h include/utlist.h \
		include/utstring.h

do-install:
	@${INSTALL_DATA} ${WRKSRC}/src/utarray.h \
		${WRKSRC}/src/uthash.h \
		${WRKSRC}/src/utlist.h \
		${WRKSRC}/src/utstring.h ${STAGEDIR}${PREFIX}/include/
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>