freebsd-ports/archivers/par2cmdline-tbb/Makefile
Ion-Mihai Tetcu c6c42523db - Update to v20080420
- Do not use USE_AUTOTOOLS anymore, add GNU_CONFIGURE and CONFIGURE_ENV
- Patch patch-par2cmdline.h to make it build with the current version of tbb
(20080207)

PR:		ports/123286
Submitted by:	maintainer
2008-05-06 19:49:44 +00:00

40 lines
1.2 KiB
Makefile

# New ports collection makefile for: par2cmdline-tbb
# Whom: Ganael Laplanche <ganael.laplanche@martymac.com>
# Date created: 27 December 2007
#
# $FreeBSD$
#
PORTNAME= par2cmdline-tbb
PORTVERSION= 20080420
CATEGORIES= archivers
MASTER_SITES= http://chuchusoft.com/par2_tbb/
DISTNAME= par2cmdline-0.4-tbb-${PORTVERSION}
MAINTAINER= ganael.laplanche@martymac.com
COMMENT= Tools for using Parity v2 Archive files (tbb version)
BUILD_DEPENDS= ${LOCALBASE}/lib/libtbb.so:${PORTSDIR}/devel/tbb \
${NONEXISTENT}:${PORTSDIR}/devel/tbb:extract
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
PORTDOCS= README
CONFLICTS= par2cmdline-[0-9]*
PLIST_FILES= bin/par2 bin/par2create bin/par2repair bin/par2verify
TBBWRKSRC= `(cd ${PORTSDIR}/devel/tbb && ${MAKE} -V WRKSRC)`
post-configure:
@${CP} ${TBBWRKSRC}/src/tbb/tbb_misc.h ${WRKSRC}/tbb_misc.h
@${REINPLACE_CMD} -e 's|#include "tbb/tbb_misc\.h"|#include "tbb_misc.h"|' ${WRKSRC}/par2cmdline.h
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>