mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
f3e5234550
- Fix a small harmless typo - Utilize USE_DOS2UNIX - Remove no-op USE_REINPLACE Thanks to: philip for sparc64 box access [*]
39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
Makefile
# New ports collection makefile for: Dzip
|
|
# Date created: 08 May 2005
|
|
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dzip
|
|
PORTVERSION= 2.9
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= http://speeddemosarchive.com/dzip/
|
|
DISTNAME= dz${PORTVERSION:S/.//g}src
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= File compression utility specializing in Quake demo compression
|
|
|
|
USE_ZIP= yes
|
|
USE_DOS2UNIX= yes
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
MAKEFILE= ${WRKSRC}/Makefile.linux
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
|
|
ALL_TARGET= ${PORTNAME}
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
post-extract: .SILENT
|
|
${REINPLACE_CMD} -e 's/ifdef BIG_ENDIAN/if BYTE_ORDER == BIG_ENDIAN/' \
|
|
-e 's/ifndef BIG_ENDIAN/if BYTE_ORDER == LITTLE_ENDIAN/' \
|
|
${WRKSRC}/dzip.h ${WRKSRC}/conmain.c
|
|
${REINPLACE_CMD} -e '4s,^,#include <machine/endian.h>,' ${WRKSRC}/dzip.h
|
|
${REINPLACE_CMD} -e 's/) $$(OBJECTS/&:T/' ${MAKEFILE}
|
|
${REINPLACE_CMD} '21d;23d' ${WRKSRC}/dzipcon.h
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|