60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
60 lines
1.4 KiB
Makefile
60 lines
1.4 KiB
Makefile
# Created by: Michael Johnson <ahze@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ldouble
|
|
PORTVERSION= 0.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= math
|
|
MASTER_SITES= LOCAL/ahze
|
|
# http://www.moshier.net/
|
|
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>
|