2013-04-28 11:25:08 +02:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= par
|
|
|
|
PORTVERSION= 0.03.01
|
|
|
|
CATEGORIES= archivers games
|
|
|
|
MASTER_SITES= http://ibiblio.org/pub/linux/games/quake/
|
2013-04-30 17:07:15 +02:00
|
|
|
PKGNAMEPREFIX= quake-
|
2013-04-28 11:25:08 +02:00
|
|
|
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
|
|
COMMENT= Archiver for Quake I and II packed data files
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-04-30 17:07:15 +02:00
|
|
|
CONFLICTS= par-[0-9]*
|
|
|
|
|
2013-04-28 11:25:08 +02:00
|
|
|
MAKEFILE= Makefile.Linux
|
|
|
|
MAKE_ARGS= CC="${CC}"
|
|
|
|
|
2014-01-05 01:13:03 +01:00
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
|
|
man/man1/${PORTNAME}.1.gz
|
2013-04-28 11:25:08 +02:00
|
|
|
PORTDOCS= ChangeLog README
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,-Wall.*-pipe,${CFLAGS}, ; \
|
2013-04-28 12:00:25 +02:00
|
|
|
s,"Linux,"${OPSYS},' ${WRKSRC}/${MAKEFILE}
|
|
|
|
@${REINPLACE_CMD} -e 's,off_t,uint32_t,g' ${WRKSRC}/par.c
|
2013-04-28 11:25:08 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-01-05 01:13:03 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
2013-04-28 11:25:08 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|