1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/devel/fastcrc/Makefile
Emanuel Haupt fda22917f4 - Support staging
- Define DOCS option
2014-03-06 12:30:19 +00:00

35 lines
867 B
Makefile

# Created by: G. Adam Stanislav <adam@whizkidtech.net>
# $FreeBSD$
PORTNAME= fastcrc
PORTVERSION= 1.0
CATEGORIES= devel
MASTER_SITES= http://www.whizkidtech.redprince.net/fports/
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast CRC routines
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
ONLY_FOR_ARCHS= i386
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
's|gcc|$${CC}| ; \
/strip/d' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fc ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/fastcrc.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/libfcrc.so.1 ${STAGEDIR}${PREFIX}/lib
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libfcrc.so.1
${LN} -fs libfcrc.so.1 ${STAGEDIR}${PREFIX}/lib/libfcrc.so
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/index.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>