aboutsummaryrefslogtreecommitdiff
path: root/mail/libcmime/Makefile
blob: bffda48360932c941afc944d02cfea61ea7ef76f (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
42
43
# Created by: Axel Steiner <ast@treibsand.com>
# $FreeBSD$

PORTNAME=	libcmime
PORTVERSION=	0.1.8
CATEGORIES=	mail
MASTER_SITES=	http://www.libcmime.org/files/

MAINTAINER=	ast@treibsand.com
COMMENT=	Lightweight C mime library

LICENSE=	MIT

BUILD_DEPENDS=	bison>=1.8:${PORTSDIR}/devel/bison \
		flex>=2.5.33:${PORTSDIR}/textproc/flex

USES=		cmake pkgconfig
CMAKE_ARGS+=	--no-warn-unused-cli -DCMAKE_PREFIX_PATH:PATH=${LOCALBASE}

USE_LDCONFIG=	yes

OPTIONS_DEFINE=	DEBUG DOCS

PORTDOCS=	AUTHORS CHANGELOG INSTALL README

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDEBUG}
CMAKE_ARGS+=	-DENABLE_DEBUG=TRUE
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif

post-patch:
	@${REINPLACE_CMD} -E -e 's|\$${LIBDIR}(/pkgconfig)|$${CMAKE_INSTALL_PREFIX}/libdata\1|' \
		${WRKSRC}/CMakeLists.txt

.include <bsd.port.mk>