summaryrefslogtreecommitdiff
path: root/math/ccmath/Makefile
blob: 1722490d7f5ff953f4304074e9237b643556d80a (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
# New ports collection makefile for:   ccmath
# Date created:        07 March 2001
# Whom:                George Reid <greid@ukug.uk.freebsd.org>
#
# $FreeBSD$
#

PORTNAME=	ccmath
PORTVERSION=	2.2.1
CATEGORIES=	math
MASTER_SITES=	${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR=	libs

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A mathematics library with many different functions

INSTALLS_SHLIB=	yes

post-configure:
.if (${ARCH} != "i386")
	(cd ${WRKSRC} && ${SH} non_intel.sh)
.endif

do-build:
	(cd ${WRKSRC} && ${SH} makelibs.sh)

do-install:
	${INSTALL_DATA} ${WRKSRC}/ccmath.h ${PREFIX}/include
	${INSTALL_DATA} ${WRKSRC}/tmp/libccm.a ${PREFIX}/lib
	${INSTALL_PROGRAM} ${WRKSRC}/tmp/libccm.so ${PREFIX}/lib
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/ccmath
	${INSTALL_DATA} ${WRKSRC}/manual/* ${PREFIX}/share/doc/ccmath
.endif

.include <bsd.port.mk>