freebsd-ports/archivers/hlextract/Makefile
Alexey Dokuchaev 373c5e2f30 Update HLLib and HLExtract ports to version 2.4.3, which had added support
for new VPK file format (v2), SGA format (v4.0/5.0), and ZIP deflate mode.

Feature safe:	yes
2012-10-23 17:09:04 +00:00

33 lines
788 B
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= hlextract
PORTVERSION= 2.4.3
CATEGORIES= archivers games
MASTER_SITES= http://nemesis.thewavelength.net/files/files/
DISTNAME= hllib${PORTVERSION:S/.//g}
MAINTAINER= ports@FreeBSD.org
COMMENT= Utility to extract data from various Half-Life file formats
LICENSE= GPLv2
LIB_DEPENDS= hl:${PORTSDIR}/games/hllib
USE_ZIP= yes
WRKSRC= ${WRKDIR}/HLExtract
PLIST_FILES= bin/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's,linux/limits,sys/param, ; \
s,HLExtract\.exe,${PORTNAME},' ${WRKSRC}/Main.c
do-build:
${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
${WRKSRC}/Main.c -o ${WRKSRC}/${PORTNAME} -lhl
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.include <bsd.port.mk>