summaryrefslogtreecommitdiffstats
path: root/devel/gzstream/Makefile
blob: f91d2e2870666eefd08cb0165493f95404c3fa13 (plain)
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
33
34
# New ports collection makefile for:	gzstream
# Date created:		28 August 2006
# Whom:			Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	gzstream
DISTVERSION=	1.5
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	CENKES
# http://www.cs.unc.edu/Research/compgeom/gzstream/gzstream.tgz

MAINTAINER=	infofarmer@FreeBSD.org
COMMENT=	Provides zlib functionality in an iostream

USE_LDCONFIG=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}
PLIST_FILES=	lib/lib${PORTNAME}.so lib/lib${PORTNAME}.so.0 \
		include/${PORTNAME}.h
ALL_TARGET=	default
CFLAGS+=	-fPIC -I.

post-patch:
	@${REINPLACE_CMD} -e 's/=/?=/;s/\.a/.so/g;s/CPPFL/CXXFL/g;\
		s/{AR}/{CC} $${CFLAGS} -lz -shared -o/' ${WRKSRC}/${MAKEFILE}

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/lib${PORTNAME}.so ${PREFIX}/lib/
	@${LN} -sf lib${PORTNAME}.so ${PREFIX}/lib/lib${PORTNAME}.so.0
	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.h ${PREFIX}/include/

.include <bsd.port.mk>
OpenPOWER on IntegriCloud