aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/liblzxcomp/Makefile
blob: bdaba46c18b1f1b2a1c990c7073563dbb418e53f (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
33
34
35
36
37
38
39
40
41
# New ports collection makefile for:    liblzxcomp
# Date created:    27 Feb 2005
# Whom:        Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD$
#

PORTNAME=   liblzxcomp
PORTVERSION=    20020619
CATEGORIES= archivers
MASTER_SITES=   http://www.speakeasy.org/~russotto/chm/
DISTNAME=   lzx_compress

MAINTAINER= skv@FreeBSD.org
COMMENT=    LZX compression library

MAKE_ENV=   PREFIX=${PREFIX}
USE_REINPLACE=  yes

INSTALLS_SHLIB= YES
SHLIB_MAJOR=    1
PLIST_SUB=  SHLIB_MAJOR="${SHLIB_MAJOR}"

MAN3=       lzxcomp.3
MANCOMPRESSED=  yes

.if defined(NOPROFILE)
PLIST_SUB+= PROFILE="@comment "
.else
PLIST_SUB+= PROFILE=""
.endif

post-patch:
    ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.prev
    @${SED} -e "s=%%SHLIB_MAJOR%%=${SHLIB_MAJOR}=g" \
        ${FILESDIR}/Makefile > ${WRKSRC}/Makefile
    ${REINPLACE_CMD} -i '' -e 's|stdint|sys/types|' \
        ${WRKSRC}/lzx_compress.mdoc3 ${WRKSRC}/lzx_layer.c
    ${MV} ${WRKSRC}/lzx_compress.mdoc3 ${WRKSRC}/lzxcomp.3

.include <bsd.port.mk>