freebsd-ports/math/libtommath/Makefile
Tobias Kortkamp aafc07b758 math/libtommath: Strip library
Move unhooked post-install-SHARED-on target into post-install
2019-10-19 11:03:31 +00:00

49 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= libtommath
DISTVERSION= 1.1.0
PORTREVISION= 3
CATEGORIES= math
MASTER_SITES= https://github.com/libtom/libtommath/releases/download/v${DISTVERSION}/
DISTNAME= ltm-${DISTVERSION}
MAINTAINER= gahr@FreeBSD.org
COMMENT= Comprehensive, modular, and portable mathematical routines
LICENSE= UNLICENSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake libtool:build tar:xz
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
USE_LDCONFIG= yes
MAKEFILE= makefile.shared
ALL_TARGET= default
CFLAGS+= -fPIC
PORTDOCS= *
PLIST_FILES= include/tommath.h \
include/tommath_class.h \
include/tommath_superclass.h \
lib/libtommath.a \
lib/libtommath.so \
lib/libtommath.so.${DISTVERSION:R:R} \
lib/libtommath.so.${DISTVERSION} \
libdata/pkgconfig/libtommath.pc
OPTIONS_DEFINE= DOCS
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/bn.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/poster.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/tommath.pdf ${STAGEDIR}${DOCSDIR}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtommath.so.${DISTVERSION}
do-test:
(cd ${WRKSRC}; \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -f makefile mtest/mtest test; \
./mtest/mtest | ./test)
.include <bsd.port.mk>