aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/pbzip2/Makefile
blob: 351928f8b067ecf6f2e746624f6f3cc140f937b7 (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
# ex:ts=8
# Ports collection makefile for:    pbzip2
# Date created:         Dec 7, 2004
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   pbzip2
PORTVERSION=    1.0.2
CATEGORIES= archivers
MASTER_SITES=   http://compression.ca/pbzip2/ CENKES

MAINTAINER= ports@FreeBSD.org
COMMENT=    Parallel BZIP2

PLIST_FILES=    bin/pbzip2 bin/pbunzip2

MAN1=   pbzip2.1
MLINKS= pbzip2.1 pbunzip2.1

post-patch:
    @${REINPLACE_CMD} \
        -e "s,-pthread -lpthread,${PTHREAD_LIBS},g" \
        -e "s,-O3,${CXXFLAGS}," \
        -e "s,^CC,#CC," \
        -e "s,CC,CXX," ${WRKSRC}/Makefile
    @${REINPLACE_CMD} \
        -e "s,PRIu64 \"Lu\",PRIu64 Lu," \
        -e "s,\"PRIu64\",#PRIu64,g" ${WRKSRC}/pbzip2.cpp

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
    @${LN} -sf ${PORTNAME} ${PREFIX}/bin/pbunzip2
    @${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1/

.include <bsd.port.mk>