summaryrefslogtreecommitdiffstats
path: root/math/randlib/Makefile
blob: 9d60f6e96c7e9c4e69749701a74b715fe03eaa66 (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
# New ports collection makefile for:	ranlib
# Version required:	?
# Date created:		06 April 1997
# Whom:			Thomas Gellekum <tg@FreeBSD.ORG>
#
# $Id: Makefile,v 1.4 1998/11/14 09:43:24 asami Exp $
#

DISTNAME=	ranlib.c
PKGNAME=	ranlib-1.0
CATEGORIES=	math
MASTER_SITES=	ftp://ftp.netlib.org/random/

MAINTAINER=	tg@FreeBSD.ORG

WRKSRC=		${WRKDIR}/${DISTNAME}/src

.include <bsd.port.pre.mk>

post-extract:
	@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/ranlib
	@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/* ${PREFIX}/share/doc/ranlib
.endif
.if ${PORTOBJFORMAT} == "aout"
	${LN} -sf libranlib.so.1.0 ${PREFIX}/lib/libranlib.so
.endif
	@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud