1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/math/ldouble/Makefile
Emanuel Haupt a0b0a75963 - Support staging
- Remove USE_ZIP
- Strip shared object
2014-02-21 10:25:34 +00:00

62 lines
1.4 KiB
Makefile

# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
PORTNAME= ldouble
PORTVERSION= 0.1
PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_LOCAL}
# http://www.moshier.net/
MASTER_SITE_SUBDIR= ahze
DISTFILES= ${LDOUBLE_DISTFILE}
MAINTAINER= bf@FreeBSD.org
COMMENT= Long double math precision functions
NO_WRKSUBDIR= yes
MAKEFILE= makefile
USE_LDCONFIG= yes
ONLY_FOR_ARCHS= i386 sparc64
PLIST_FILES= lib/libml.a \
lib/libml.so \
lib/libml.so.0
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${ARCH}=="i386"
LDOUBLE_DISTFILE= ldouble.zip
EXTRA_PATCHES= ${FILESDIR}/i386-makefile-patch
PORTDOCS= ldoubdoc.html
PLIST_FILES+= include/mathl.h
.else
LDOUBLE_DISTFILE= 128bit.tgz
EXTRA_PATCHES= ${FILESDIR}/128-makefile-patch
PORTDOCS= 128bdoc.html
.endif
post-patch:
.if ${ARCH}!="sparc64"
@${REINPLACE_CMD} -e 's|-msoft-quad-float||' \
${WRKSRC}/${MAKEFILE}
.endif
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|; s|%%CFLAGS%%|${CFLAGS}|' \
${WRKSRC}/${MAKEFILE}
do-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/libml.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/libml.so.0 ${STAGEDIR}${PREFIX}/lib
${LN} -sf libml.so.0 ${STAGEDIR}${PREFIX}/lib/libml.so
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libml.so
.if ${ARCH}=="i386"
${INSTALL_DATA} ${WRKSRC}/protos.h ${STAGEDIR}${PREFIX}/include/mathl.h
.endif
.include <bsd.port.post.mk>