mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
7c32e6ff9e
PR: ports/185770 Submitted by: Axel Steiner (maintainer)
44 lines
964 B
Makefile
44 lines
964 B
Makefile
# Created by: Axel Steiner <ast@treibsand.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libcmime
|
|
PORTVERSION= 0.1.11
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://www.libcmime.org/files/
|
|
|
|
MAINTAINER= ast@treibsand.com
|
|
COMMENT= Lightweight C mime library
|
|
|
|
LICENSE= MIT
|
|
|
|
USES= bison cmake pkgconfig
|
|
USE_LDCONFIG= yes
|
|
CMAKE_ARGS= --no-warn-unused-cli
|
|
|
|
OPTIONS_DEFINE= DEBUG DOCS
|
|
|
|
PORTDOCS= AUTHORS CHANGELOG INSTALL README
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${OSVERSION} < 1000033
|
|
BUILD_DEPENDS+= flex>=2.5.33:${PORTSDIR}/textproc/flex
|
|
CMAKE_ARGS+= -DFLEX_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/flex
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
CMAKE_ARGS+= -DENABLE_DEBUG=TRUE
|
|
.endif
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -E -e 's|\$${CMAKE_INSTALL_LIBDIR}(/pkgconfig)|$${CMAKE_INSTALL_PREFIX}/libdata\1|' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
.include <bsd.port.mk>
|