blob: 3848ac3b5acf6c053f94901160ad3a2266543368 (
plain) (
blame)
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
|
# $FreeBSD$
PORTNAME= perlkde
PORTVERSION= ${KDE4_VERSION}
PORTREVISION= 1
CATEGORIES= devel kde perl5
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
PKGNAMEPREFIX= p5-
DIST_SUBDIR= KDE/${PORTVERSION}
MAINTAINER= kde@FreeBSD.org
COMMENT= Perl bindings for KDE
USE_XZ= yes
# Build fails with system gcc
USE_GCC= yes
USE_KDE4= kdehier kdeprefix perlqt smokekde automoc4
USE_QT4= network opengl sql svg xml \
qmake_build moc_build uic_build rcc_build
USES= cmake:outsource perl5
# Respect PREFIX
CMAKE_ARGS+= -DCUSTOM_PERL_SITE_ARCH_DIR=${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}
# Fix build PREFIX != KDE4_PREFIX
CMAKE_ARGS+= -DSmoke_DIR=${KDE4_PREFIX}/lib/cmake/smoke \
-DPerlQt_DIR=${KDE4_PREFIX}/share/perlqt/cmake \
-DOkular_DIR=${KDE4_PREFIX}/lib/cmake/Okular
OPTIONS_DEFINE= ATTICA
ATTICA_DESC= Bindings for libattica (may crash build)
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MATTICA}
.if exists(${KDE4_PREFIX}/lib/libsmokekdecore.so) && \
!exists(${KDE4_PREFIX}/lib/libsmokeattica.so)
IGNORE= requires devel/smokekde built with ATTICA option
.endif
PLIST_SUB+= ATTICA=""
.else
CMAKE_ARGS+= -DWITH_LibAttica:BOOL=FALSE
PLIST_SUB+= ATTICA="@comment "
.endif
.include <bsd.port.mk>
|