aboutsummaryrefslogtreecommitdiff
path: root/devel/libghthash/Makefile
blob: c63dbad2aead016622e9a46d2911d6dc6818d8b6 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: ijliao
# $FreeBSD$

PORTNAME=	libghthash
PORTVERSION=	0.6.2
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	http://www.ipd.bth.se/ska/sim_home/filer/

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	Generic Hash Table

USE_AUTOTOOLS=	libtool
CONFIGURE_ARGS=	--datarootdir=${PREFIX}
USE_LDCONFIG=	yes

PLIST_FILES=	include/ght_hash_table.h \
		lib/libghthash.a  lib/libghthash.la \
		lib/libghthash.so lib/libghthash.so.2

.if defined(.PARSEDIR)
USE_GMAKE=	yes
.endif

MAN3=		ght_create.3 \
		ght_finalize.3 \
		ght_first.3 \
		ght_first_keysize.3 \
		ght_get.3 \
		ght_insert.3 \
		ght_next.3 \
		ght_next_keysize.3 \
		ght_remove.3

PORTDOCS=	*
PORTEXAMPLES=	*

NO_STAGE=	yes
.include <bsd.port.options.mk>

post-install:
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
	(cd ${WRKSRC}/html && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	${MKDIR} ${EXAMPLESDIR}
	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \*.c ${EXAMPLESDIR})
.endif

.include <bsd.port.mk>