blob: a24869111eb641255f16886fc251cf357ca1930e (
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
|
# Created by: 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= ports@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.
NO_STAGE= yes
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>
|