mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
a2beb9bdcd
- Introduce changes necessary to allow both versions to coexist PR: 192330 Submitted by: madpilot@FreeBSD.org Approved by: maintainer timeout
27 lines
738 B
Makefile
27 lines
738 B
Makefile
# Created by: Tim Niemueller <tim@niemueller.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= yaml-cpp
|
|
PORTVERSION= 0.3.0
|
|
CATEGORIES= devel
|
|
MASTER_SITES= GOOGLE_CODE
|
|
PKGNAMESUFFIX= 03
|
|
|
|
MAINTAINER= tim@niemueller.de
|
|
COMMENT= YAML parser and emitter in C++ matching the YAML 1.2 spec
|
|
|
|
LICENSE= MIT
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
USES= cmake
|
|
USE_LDCONFIG= yes
|
|
CMAKE_ARGS+= -DBUILD_SHARED_LIBS:BOOL=ON -DYAML_CPP_BUILD_TOOLS=0
|
|
|
|
post-patch: .SILENT
|
|
${FIND} ${WRKSRC} -name '*.[hc]*' -o -name CMakeLists.txt | \
|
|
${XARGS} ${REINPLACE_CMD} -e 's|yaml-cpp|yaml-cpp${PKGNAMESUFFIX}|g'
|
|
${MV} ${WRKSRC}/include/yaml-cpp ${WRKSRC}/include/yaml-cpp${PKGNAMESUFFIX}
|
|
${MV} ${WRKSRC}/yaml-cpp.pc.cmake ${WRKSRC}/yaml-cpp${PKGNAMESUFFIX}.pc.cmake
|
|
|
|
.include <bsd.port.mk>
|