2004-11-07 19:26:52 +01:00
|
|
|
# New ports collection makefile for: ldouble
|
|
|
|
# Date created: 2004-09-02
|
|
|
|
# Whom: Michael Johnson <ahze@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ldouble
|
|
|
|
PORTVERSION= 0.1
|
2006-04-14 16:23:03 +02:00
|
|
|
PORTREVISION= 1
|
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
|
|
|
|
2006-04-14 16:23:03 +02:00
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
2004-11-07 19:26:52 +01:00
|
|
|
COMMENT= Long double math precision functions
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
MAKEFILE= makefile
|
|
|
|
INSTALLS_SHLIB= yes
|
2006-04-14 16:23:03 +02:00
|
|
|
# Known to work on atleast sparc64 & i386
|
|
|
|
#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
|
|
|
|
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-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:
|
|
|
|
@${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-14 16:23:03 +02:00
|
|
|
.include <bsd.port.post.mk>
|