0e69fb91b1
- Add LICENSE
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# Created by: George Reid <greid@ukug.uk.freebsd.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ccmath
|
|
PORTVERSION= 2.2.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= math
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
MASTER_SITE_SUBDIR= libs
|
|
|
|
MAINTAINER= db@FreeBSD.org
|
|
COMMENT= A mathematics library with many different functions
|
|
|
|
LICENSE= LGPL20
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
PORTDOCS= *
|
|
SRC_DIRS= cfit complex fft geom intg matrix roots sfunc simu sort statf \
|
|
tseries util xarm
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
COPT= -fPIC
|
|
.endif
|
|
|
|
post-extract:
|
|
@${CP} ${WRKSRC}/matrix/supp/solv.c ${WRKSRC}/matrix
|
|
@${CP} ${WRKSRC}/simu/supp/*.c ${WRKSRC}/simu
|
|
@${CP} ${WRKSRC}/xarm/supp/big-end/*.c ${WRKSRC}/xarm
|
|
@${RM} ${WRKSRC}/matrix/*.s
|
|
@${RM} ${WRKSRC}/simu/*.s
|
|
|
|
do-build:
|
|
.for d in ${SRC_DIRS}
|
|
(cd ${WRKSRC}/${d}; ${CC} ${CFLAGS} ${COPT} -c *.c)
|
|
${MV} ${WRKSRC}/${d}/*.o ${WRKSRC}/tmp
|
|
.endfor
|
|
(cd ${WRKSRC}/matrix; ${CC} ${COPT} -c qrb*.c)
|
|
${MV} ${WRKSRC}/matrix/*.o ${WRKSRC}/tmp
|
|
(cd ${WRKSRC}/tmp; ${AR} r libccm.a *.o; ${CC} -shared -o libccm.so *.o)
|
|
|
|
do-install:
|
|
@${INSTALL_DATA} ${WRKSRC}/ccmath.h ${STAGEDIR}${PREFIX}/include
|
|
@${INSTALL_DATA} ${WRKSRC}/tmp/libccm.a ${STAGEDIR}${PREFIX}/lib
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/tmp/libccm.so ${STAGEDIR}${PREFIX}/lib
|
|
@${LN} -s libccm.so ${STAGEDIR}${PREFIX}/lib/libccm.so.1
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/ccmath
|
|
@${INSTALL_DATA} ${WRKSRC}/manual/* ${STAGEDIR}${PREFIX}/share/doc/ccmath
|
|
|
|
.include <bsd.port.post.mk>
|