summaryrefslogblamecommitdiff
path: root/math/randlib/Makefile
blob: 0d497ddf6c3d9d746bcf5cfa6f723c5fc01930cf (plain) (tree)
1
2
3
4
5
6
7
8
9


                                              
                                                        
 
           

 
                        



                                            
                              


                                         

                          







                                                                               


                                                             
                                                                          
 
                           
# New ports collection makefile for:	ranlib
# Version required:	?
# Date created:		06 April 1997
# Whom:			Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

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>