aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/kdegraphics4/Makefile
blob: 6fe18ea500d1f117f9ae79506d54269ed0eb972f (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# -*-mode: makefile-*-
# New ports collection makefile for:    KDE3 Graphics
# Date created:             Saturday 2 September 2000
# Whom:                 Will Andrews <will@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   kdegraphics
PORTVERSION=    ${KDE_VERSION}
PORTREVISION=   1
CATEGORIES= graphics kde
MASTER_SITES=   ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src
DIST_SUBDIR=    KDE

MAINTAINER= kde@FreeBSD.org
COMMENT=    Graphics utilities for the KDE3 integrated X11 desktop

LIB_DEPENDS=    art_lgpl_2:${PORTSDIR}/graphics/libart_lgpl2 \
        fontconfig:${PORTSDIR}/x11-fonts/fontconfig \
        freetype:${PORTSDIR}/print/freetype2 \
        fribidi:${PORTSDIR}/converters/fribidi \
        lcms:${PORTSDIR}/graphics/lcms \
        glut:${PORTSDIR}/graphics/libglut
RUN_DEPENDS=    pdfinfo:${PORTSDIR}/graphics/xpdf

USE_KDELIBS_VER=3
PREFIX=     ${KDE_PREFIX}
KDE_BUILD_PLIST=yes

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
WANT_GNOME= yes

INSTALLS_SHLIB= yes
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3

OPTIONS=    IMLIB "Build Kuickshow, a fast and versatile image viewer" off \
        GPHOTO2 "Enable support for digital cameras" off \
        SANE "Build Kooka, a SANE scanner frontend for KDE" off

.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>

.if defined(WITH_IMLIB)
USE_GNOME=  imlib
PLIST_APPEND+=  plist.imlib
CONFIGURE_ARGS+=--with-imlib-config=${X11BASE}/bin
.elseif defined(WITHOUT_IMLIB)
WITHOUT_IMLIB=  yes
CONFIGURE_ARGS+=--without-imlib-config
.endif

.if defined(WITH_GPHOTO2)
LIB_DEPENDS+=   gphoto2.2:${PORTSDIR}/graphics/libgphoto2
PLIST_APPEND+=  plist.gphoto2
.elseif defined(WITHOUT_GPHOTO2)
CONFIGURE_ARGS+=--without-kamera
.endif

.if defined(WITH_SANE)
LIB_DEPENDS+=   sane.1:${PORTSDIR}/graphics/sane-backends
PLIST_APPEND+=  plist.sane
RUN_DEPENDS+=   ${LOCALBASE}/bin/gocr:${PORTSDIR}/graphics/gocr
.elseif defined(WITHOUT_SANE)
DO_NOT_COMPILE+=kooka
.endif

.if defined(DO_NOT_COMPILE)
CONFIGURE_ENV+=DO_NOT_COMPILE="${DO_NOT_COMPILE}"
.endif # defined(DO_NOT_COMPILE)

.include <bsd.port.post.mk>