2013-09-20 22:55:04 +02:00
|
|
|
# Created by: Michael Johnson <ahze@FreeBSD.org>
|
2004-11-07 19:26:52 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ldouble
|
|
|
|
PORTVERSION= 0.1
|
2006-04-19 23:23:40 +02:00
|
|
|
PORTREVISION= 2
|
2004-11-07 19:26:52 +01:00
|
|
|
CATEGORIES= math
|
2006-04-18 20:36:07 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
# http://www.moshier.net/
|
|
|
|
MASTER_SITE_SUBDIR= ahze
|
2006-04-14 16:23:03 +02:00
|
|
|
DISTFILES= ${LDOUBLE_DISTFILE}
|
2004-11-07 19:26:52 +01:00
|
|
|
|
2010-07-26 03:59:00 +02:00
|
|
|
MAINTAINER= bf@FreeBSD.org
|
2004-11-07 19:26:52 +01:00
|
|
|
COMMENT= Long double math precision functions
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
MAKEFILE= makefile
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-05-03 12:39:19 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 sparc64
|
2004-11-07 19:26:52 +01:00
|
|
|
|
|
|
|
PLIST_FILES= lib/libml.a \
|
|
|
|
lib/libml.so \
|
2006-04-14 16:23:03 +02:00
|
|
|
lib/libml.so.0
|
2004-11-07 19:26:52 +01:00
|
|
|
|
2013-09-20 22:55:04 +02:00
|
|
|
NO_STAGE= yes
|
2006-04-14 16:23:03 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH}=="i386"
|
|
|
|
LDOUBLE_DISTFILE= ldouble.zip
|
|
|
|
USE_ZIP= yes
|
|
|
|
EXTRA_PATCHES= ${FILESDIR}/i386-makefile-patch
|
2004-11-07 19:26:52 +01:00
|
|
|
PORTDOCS= ldoubdoc.html
|
2006-04-19 23:23:40 +02:00
|
|
|
PLIST_FILES+= include/mathl.h
|
2006-04-14 16:23:03 +02:00
|
|
|
.else
|
|
|
|
LDOUBLE_DISTFILE= 128bit.tgz
|
|
|
|
EXTRA_PATCHES= ${FILESDIR}/128-makefile-patch
|
|
|
|
PORTDOCS= 128bdoc.html
|
|
|
|
.endif
|
2004-11-07 19:26:52 +01:00
|
|
|
|
|
|
|
post-patch:
|
2006-05-01 15:47:33 +02:00
|
|
|
.if ${ARCH}!="sparc64"
|
|
|
|
@${REINPLACE_CMD} -e 's|-msoft-quad-float||' \
|
|
|
|
${WRKSRC}/${MAKEFILE}
|
|
|
|
.endif
|
2004-11-07 19:26:52 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|; s|%%CFLAGS%%|${CFLAGS}|' \
|
|
|
|
${WRKSRC}/${MAKEFILE}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-04-14 16:23:03 +02:00
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
|
|
.endfor
|
2004-11-07 19:26:52 +01:00
|
|
|
.endif
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libml.a ${PREFIX}/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libml.so.0 ${PREFIX}/lib
|
|
|
|
${LN} -sf libml.so.0 ${PREFIX}/lib/libml.so
|
2006-04-19 23:23:40 +02:00
|
|
|
.if ${ARCH}=="i386"
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/protos.h ${PREFIX}/include/mathl.h
|
|
|
|
.endif
|
2004-11-07 19:26:52 +01:00
|
|
|
|
2006-04-14 16:23:03 +02:00
|
|
|
.include <bsd.port.post.mk>
|