summaryrefslogtreecommitdiffstats
path: root/openbsd/dependencies/tqtinterface/Makefile
blob: 3034cd6a0b1d3a90e8e464a74db2549f0046e169 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.include </usr/ports/x11/trinity/trinity.port.mk>

PKGNAME=		trinity-tqtinterface-${VERSION}
VERSION=		4.2.0${PREVERSION}
PREVERSION=		

COMMENT=		Trinity QT intefarce
CATEGORIES=		x11/trinity/dependencies
HOMEPAGE=		http://www.trinitydesktop.org/
MAINTAINER=		François Andriot <francois.andriot@free.fr>

MASTER_SITES=	http://ppa2.quickbuild.pearsoncomputing.net/redirect.php?file=releases/R14.0.0/dependencies/
DISTNAME=		tqtinterface-R${TDE_VERSION}${PREVERSION}
EXTRACT_SUFX=	.tar.bz2
WRKDIST=		${WRKDIR}/dependencies/tqtinterface

PREFIX=			${LOCALBASE}

BUILD_DEPENDS= 	devel/gmake \
				devel/cmake \
				x11/trinity/dependencies/tqt3,-main

SHARED_LIBS=	tqt                       4.2

RUN_DEPENDS=	textproc/gsed \
				shells/bash \
				x11/trinity/dependencies/tqt3,-main
LIB_DEPENDS=	x11/trinity/dependencies/tqt3,-main

# Build
do-configure: tde-cmake-rmbuild
	${TDE_CMAKE_CONFIGURE} \
		-DQTDIR="${LOCALBASE}/share/tqt3" \
		-DQT_INCLUDE_DIR="${LOCALBASE}/include/tqt3" \
		-DQT_LIBRARY_DIR="${LOCALBASE}/lib" \
		-DQT_LIBRARIES="tqt-mt" \
		\
		-DCMAKE_INSTALL_PREFIX="${LOCALBASE}" \
		-DPKGCONFIG_INSTALL_DIR="${LOCALBASE}/lib/pkgconfig" \
		-DINCLUDE_INSTALL_DIR="${LOCALBASE}/include/tqt" \
		-DLIB_INSTALL_DIR="${LOCALBASE}/lib" \
		-DBIN_INSTALL_DIR="${LOCALBASE}/bin" \
		\
		-DCMAKE_LIBRARY_PATH="${LOCALBASE}/lib" \
		-DCMAKE_INCLUDE_PATH="${LOCALBASE}/include" \
		\
		-DWITH_QT3="ON" \
		-DBUILD_ALL="ON" \
		-DUSE_QT3="ON" \
		..

do-build: tde-cmake-build

do-install: tde-cmake-install

post-install:
	# Install 'cmake' modules for development use
	mkdir -p "${WRKINST}${LOCALBASE}/share/cmake/Modules"
	for i in ${WRKDIST}/cmake/modules/*.cmake; do \
		install -m 644 "$$i" "${WRKINST}${LOCALBASE}/share/cmake/Modules"; \
	done
	# Fix path to 'bash'
	gsed -i ${WRKINST}/usr/local/bin/* \
	     -e "s|/bin/bash|/usr/local/bin/bash|" \
	     -e "s|sed |gsed |g"


.include <bsd.port.mk>