blob: e4b332d854cad610cd45ee6a612b2b67cb887848 (
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
|
# Ports collection makefile for: kgtk
# Date created: Sep 13, 2007
# Whom: Rashid N. "Citycat" Achilov <citycat4@ngs.ru>
#
# $FreeBSD$
#
PORTNAME= kgtk
PORTVERSION= 0.9.4
CATEGORIES= sysutils kde
MASTER_SITES= http://home.freeuk.com/cpdrummond/
DISTNAME= KGtk-${PORTVERSION}
MAINTAINER= citycat4@ngs.ru
COMMENT= Daemon to use KDE dialogs in GTK applications
BUILD_DEPENDS= cmake:${PORTSDIR}/devel/cmake
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= gtk20
USE_KDEBASE_VER=3
CMAKE_PREFIX= ${LOCALBASE}
CMAKE_BUILD_DIR=build3
BUILD_WRKSRC= ${WRKSRC}/${CMAKE_BUILD_DIR}
INSTALL_WRKSRC= ${WRKSRC}/${CMAKE_BUILD_DIR}
.if defined(WITHOUT_NLS)
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
post-patch:
@${REINPLACE_CMD} -e 's| -ldl||' ${WRKSRC}/gtk2/CMakeLists.txt ${WRKSRC}/qt3/CMakeLists.txt ${WRKSRC}/qt4/CMakeLists.txt
@${REINPLACE_CMD} -e 's|#!/bin/bash|#!/bin/sh|' ${WRKSRC}/mangled.sh
pre-configure:
@${MKDIR} ${WRKSRC}/${CMAKE_BUILD_DIR}
do-configure:
@cd ${WRKSRC}/${CMAKE_BUILD_DIR} && \
${CMAKE_PREFIX}/bin/cmake .. \
-DCMAKE_INSTALL_DIR=${PREFIX} \
-DQT_INCLUDE_DIR=${QT_PREFIX}/include \
-DCMAKE_CXX_FLAGS=-I${X11BASE}/include \
-DCMAKE_EXE_LINKER_FLAGS=${PTHREAD_LIBS} \
-DCMAKE_INSTALL_PREFIX=${PREFIX}
.include <bsd.port.mk>
|