summaryrefslogtreecommitdiff
path: root/textproc/libcsv/Makefile
blob: 0d6bff187fc9e0711c3346dc6c8a644494459758 (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
35
36
37
# Created by: Sergey Skvortsov <skv@protey.ru>
# $FreeBSD$

PORTNAME=	libcsv
PORTVERSION=	3.0.3
PORTREVISION=	2
CATEGORIES=	textproc
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	bob@eager.cx
COMMENT=	Small, simple and fast CSV library

LICENSE=	LGPL21

OPTIONS_DEFINE=	EXAMPLES PROFILE

MAKEFILE=	Makefile.lib
USES=		uidfix
USE_LDCONFIG=	yes

PLIST_SUB=	SHLIB_MAJOR="${SHLIB_MAJOR}"

SHLIB_MAJOR=	3

PROFILE_PLIST_SUB=	PROFILE=""
PROFILE_MAKE_ENV_OFF=	WITHOUT_PROFILE=true
PROFILE_PLIST_SUB_OFF=	PROFILE="@comment "

do-configure:
	@${SED} -e 's|%%SHLIB_MAJOR%%|${SHLIB_MAJOR}|' \
		< ${FILESDIR}/Makefile > ${WRKSRC}/${MAKEFILE}

do-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>