summaryrefslogtreecommitdiff
path: root/games/hllib/Makefile
blob: a15f32075254bd75c627bc0ed57068e86794c852 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# New ports collection makefile for:	HLLib
# Date created:				22 Oct 2007
# Whom:					Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	hllib
PORTVERSION=	2.0.6
CATEGORIES=	games devel
MASTER_SITES=	http://nemesis.thewavelength.net/files/files/ \
		http://freebsd.nsu.ru/distfiles/
DISTNAME=	${PORTNAME}208

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Library to work with various Half-Life file formats

USE_ZIP=	yes
USE_DOS2UNIX=	Makefile
USE_LDCONFIG=	yes
WRKSRC=		${WRKDIR}/HLLib
CFLAGS+=	-fpic

PLIST_FILES=	include/hl.h lib/libhl.so.${PORTVERSION} \
		lib/libhl.so.2 lib/libhl.so

post-extract:
# Allow propagating of CXX, CXXFLAGS, and PREFIX; fix Linuxism and symlinks
	@${REINPLACE_CMD} -E 's,^([CP][^=]*)=,\1?=, ; s,g root,g wheel, ; \
		s,s \$$\(PREFIX\)/lib/,s ,' ${WRKSRC}/Makefile

.include <bsd.port.mk>