aboutsummaryrefslogtreecommitdiff
path: root/math/ccmath/Makefile
diff options
context:
space:
mode:
authorDiane Bruce <db@FreeBSD.org>2007-01-27 16:01:03 +0000
committerDiane Bruce <db@FreeBSD.org>2007-01-27 16:01:03 +0000
commitd68943bacbc50f5a12deef966e8f4d59a2a76ddd (patch)
tree08991db1f688d5255d8550f302f7f61cdbc388e5 /math/ccmath/Makefile
parentddc5adee549597cdd8ad21940ba5863729dcc9e8 (diff)
downloadports-d68943bacbc50f5a12deef966e8f4d59a2a76ddd.tar.gz
ports-d68943bacbc50f5a12deef966e8f4d59a2a76ddd.zip
Notes
Diffstat (limited to 'math/ccmath/Makefile')
-rw-r--r--math/ccmath/Makefile33
1 files changed, 26 insertions, 7 deletions
diff --git a/math/ccmath/Makefile b/math/ccmath/Makefile
index df6b1198be37..3992168b31b4 100644
--- a/math/ccmath/Makefile
+++ b/math/ccmath/Makefile
@@ -12,18 +12,37 @@ CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= libs
-MAINTAINER= db@db.net
+MAINTAINER= db@FreeBSD.org
COMMENT= A mathematics library with many different functions
-INSTALLS_SHLIB= yes
+USE_LDCONFIG= yes
-post-configure:
-.if (${MACHINE_ARCH} != "i386")
- (cd ${WRKSRC} && ${SH} non_intel.sh)
+PORTDOCS= *
+PLIST_FILES= include/ccmath.h lib/libccm.a lib/libccm.so lib/libccm.so.1
+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:
- (cd ${WRKSRC} && ${SH} makelibs.sh)
+.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 ${PREFIX}/include
@@ -35,4 +54,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/manual/* ${PREFIX}/share/doc/ccmath
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>