aboutsummaryrefslogtreecommitdiff
path: root/devel/fib/Makefile
blob: 6bb53f192fef1445f0dc30987ea304adeb78bb81 (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
# Created by: Hye-Shik Chang <perky@FreeBSD.org>
# $FreeBSD$

PORTNAME=	fib
PORTVERSION=	1.1
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	http://resnet.uoregon.edu/~gurney_j/jmpc/dist/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Fibonacci Heap Library

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
ALL_TARGET=	libfib.a libfib.so.1
STATIC_INST=	libfib.a

MANPAGES=	fh_extractmin.3 fh_makeheap.3 fh_makekeyheap.3

.include <bsd.port.pre.mk>

.if defined(NO_PROFILE) || ${OPSYS} == DragonFly
PLIST_SUB+=	PROFILE="@comment "
.else
ALL_TARGET+=	libfib_p.a
STATIC_INST+=	libfib_p.a
PLIST_SUB+=	PROFILE=""
.endif

do-install:
	${INSTALL_DATA} ${WRKSRC}/fib.h ${STAGEDIR}${PREFIX}/include/
	${INSTALL_LIB} ${WRKSRC}/libfib.so.1 ${STAGEDIR}${PREFIX}/lib/
	@(cd ${STAGEDIR}${PREFIX}/lib/; ${LN} -sf libfib.so.1 libfib.so)
	@(cd ${WRKSRC}; ${INSTALL_DATA} ${STATIC_INST} \
		${STAGEDIR}${PREFIX}/lib/)
	@(cd ${WRKSRC}; ${INSTALL_MAN} ${MANPAGES} \
		${STAGEDIR}${PREFIX}/man/man3/)

.include <bsd.port.mk>