mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
PORTNAME= primegen
|
|
PORTVERSION= 0.97
|
|
PORTREVISION= 1
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://cr.yp.to/primegen/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Small, fast library to generate prime numbers in order
|
|
WWW= https://cr.yp.to/primegen.html
|
|
|
|
USES= groff
|
|
ALL_TARGET= default
|
|
|
|
PLIST_FILES= bin/primes bin/primegaps \
|
|
include/primegen.h \
|
|
lib/libprimegen.a \
|
|
share/man/man1/primes.1.gz \
|
|
share/man/man1/primegaps.1.gz \
|
|
share/man/man3/primegen.3.gz
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,primegen\.a,lib&,' ${WRKSRC}/Makefile \
|
|
${WRKSRC}/TARGETS ${WRKSRC}/hier.c
|
|
|
|
do-configure:
|
|
@${ECHO_CMD} '${CC} ${CFLAGS} -fsigned-char -fPIC' > ${WRKSRC}/conf-cc
|
|
@${ECHO_CMD} '${CC}' > ${WRKSRC}/conf-ld
|
|
@${ECHO_CMD} '${PREFIX}' > ${WRKSRC}/conf-home
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/primes ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/primegaps ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/primegen.h ${STAGEDIR}${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/libprimegen.a ${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_MAN} ${WRKSRC}/primes.1 ${STAGEDIR}${PREFIX}/share/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/primegaps.1 ${STAGEDIR}${PREFIX}/share/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/primegen.3 ${STAGEDIR}${PREFIX}/share/man/man3
|
|
|
|
.include <bsd.port.mk>
|