summaryrefslogtreecommitdiff
path: root/graphics/lprof-devel/Makefile
blob: e124c4b7315b10d068b31e3d13f4634770618145 (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
38
39
40
41
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$

PORTNAME=	lprof
PORTVERSION=	20080514
PORTREVISION=	13
CATEGORIES=	graphics
MASTER_SITES=	http://mirror.amdmi3.ru/distfiles/ \
		LOCAL/amdmi3
PKGNAMESUFFIX=	-devel

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Open source color profiler

LIB_DEPENDS=	liblcms.so:${PORTSDIR}/graphics/lcms \
		libtiff.so:${PORTSDIR}/graphics/tiff \
		libvigraimpex.so:${PORTSDIR}/graphics/vigra

USES=		cmake desktop-file-utils jpeg tar:bzip2
USE_XORG=	x11 xext sm ice xxf86vm
USE_QT4=	corelib gui qt3support svg assistantclient \
		linguisttools_build qmake_build moc_build uic_build rcc_build

CMAKE_ARGS=	-DQTTRANS_LRELEASE_EXECUTABLE="${LOCALBASE}/bin/lrelease-qt4"

WRKSRC=		${WRKDIR}/${PORTNAME}

PORTDOCS=	*
PORTDATA=	*

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e '/asm\/types.h/ d' ${WRKSRC}/src/argyll/spectro/hidio.c
	@${REINPLACE_CMD} -e '/DESTINATION/ s|data/|share/${PORTNAME}/data/|' \
		${WRKSRC}/data/CMakeLists.txt ${WRKSRC}/src/CMakeLists.txt

post-install:
	${INSTALL_DATA} ${WRKSRC}/data/icons/lprof.png ${STAGEDIR}${PREFIX}/share/pixmaps

.include <bsd.port.mk>