1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00
freebsd-ports/graphics/opengtl/Makefile
Dima Panov d9b7c5c724 - Add opengtl ang qtgtl ports, it required for KOffice2 suite
The Graphics Transformation Languages is a set of library for using and
integrating transformation algorithms (such as filter or color conversion)
in graphics applications.

Approved by:	miwi (mentor)
2009-12-08 12:00:52 +00:00

42 lines
1.3 KiB
Makefile

# New ports collection makefile for: opengtl
# Date created: 28 September 2009
# Whom: Alberto Villa <villa.alberto@gmail.com>
# $FreeBSD$
PORTNAME= opengtl
PORTVERSION= 0.9.12
CATEGORIES= graphics devel
MASTER_SITES= http://www.opengtl.org/download/
DISTNAME= OpenGTL-${PORTVERSION}
MAINTAINER= villa.alberto@gmail.com
COMMENT= Graphics Transformation Languages
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
BUILD_DEPENDS= llvm>=2.5:${PORTSDIR}/devel/llvm
USE_BZIP2= yes
USE_PERL5= yes
MAKE_JOBS_SAFE= yes
USE_CMAKE= yes
USE_LDCONFIG= yes
CMAKE_USE_PTHREAD= yes
post-patch:
#disable layex doc, it not ready yer
${REINPLACE_CMD} -e '/add_subdirectory.*doc/d' \
${PATCH_WRKSRC}/OpenShiva/CMakeLists.txt
pre-configure:
${REINPLACE_CMD} -e 's|set(OPENGTL_LIB_SOVERSION.*|set(OPENGTL_LIB_SOVERSION "0")|' \
${PATCH_WRKSRC}/CMakeLists.txt
${REINPLACE_CMD} -e 's|$${LIB_INSTALL_DIR}/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
${PATCH_WRKSRC}/OpenCTL/OpenCTL/CMakeLists.txt \
${PATCH_WRKSRC}/OpenGTL/GTLCore/CMakeLists.txt \
${PATCH_WRKSRC}/OpenGTL/GTLImageIO/CMakeLists.txt \
${PATCH_WRKSRC}/OpenShiva/OpenShiva/CMakeLists.txt
${REINPLACE_CMD} -e 's|(int) pthread_self|(unsigned long long) pthread_self|' \
${PATCH_WRKSRC}/OpenGTL/GTLCore/MemoryManager_p.cpp
.include <bsd.port.mk>