1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/archivers/par2cmdline/Makefile
Rong-En Fan 0e7db8a5d4 - Fix gcc4 build
PR:		ports/110589
Submitted by:	Jonathan Stewart <jonathan at kc8onw.net> (maintainer)
2007-03-22 16:51:55 +00:00

38 lines
1022 B
Makefile

# New ports collection makefile for: par2cmdline
# Whom: Chris Larsen <darth@vader.dk>
# Date created: 24 July 2003
#
# $FreeBSD$
#
PORTNAME= par2cmdline
PORTVERSION= 0.4
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= parchive
DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= jonathan@kc8onw.net
COMMENT= Tools for using Parity v2 Archive files
WRKSRC= ${WRKDIR}/${DISTNAME}
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PORTDOCS= README
PLIST_FILES= bin/par2 bin/par2create bin/par2repair bin/par2verify
post-patch:
@${REINPLACE_CMD} -e 's| -lstdc++||g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|#define PACKED __attribute__ ((packed))|#define PACKED|' ${WRKSRC}/par1fileformat.h
@${REINPLACE_CMD} -e 's|#define PACKED __attribute__ ((packed))|#define PACKED|' ${WRKSRC}/par2fileformat.h
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>