aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/libcsv/Makefile
blob: 9aba85a4237829f83aa9cfb0a340809873161c5b (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
# New ports collection makefile for:    libcsv
# Date created:    23 Apr 2008
# Whom:        Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD$
#

PORTNAME=   libcsv
PORTVERSION=    2.0.1
CATEGORIES= textproc
MASTER_SITES=   SF

MAINTAINER= skv@FreeBSD.org
COMMENT=    Small, simple and fast CSV library

USE_LDCONFIG=   YES
SHLIB_MAJOR=    2
PLIST_SUB=  SHLIB_MAJOR="${SHLIB_MAJOR}"

MAN3=       csv.3
MANCOMPRESSED=  maybe

.if defined(NOPROFILE) || defined(NO_PROFILE)
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
    ${GUNZIP_CMD} ${WRKSRC}/${MAN3}.gz

.include <bsd.port.mk>