aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/kipi-plugins-kde4/Makefile
blob: 28f2a34af870da385306e09590201a1dded81261 (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# New ports collection makefile for:    digikam-plugins
# Date created:             15 February 2004
# Whom:                 Arjan van Leeuwen <avleeuwen@piwebs.com>
#
# $FreeBSD$
#

PORTNAME=   kipi-plugins
PORTVERSION=    0.1.b.1
CATEGORIES= graphics kde
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= digikam
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/.b.1/-beta1/}

MAINTAINER= avleeuwen@piwebs.com
COMMENT=    KDE Image Plugin Interface plugins

LIB_DEPENDS=    kexif:${PORTSDIR}/graphics/libkexif \
        kipi:${PORTSDIR}/graphics/libkipi \
        gphoto2.2:${PORTSDIR}/graphics/libgphoto2 \
        Imlib2.2:${PORTSDIR}/graphics/imlib2

OPTIONS=    ACQUIREIMAGES "scanner/screenshot plugin" on \
        BATCHPROCESSIMAGES "batch processing on images" on \
        CALENDAR "create calendars" on \
        CDARCHIVING "create album CDs" on \
        FINDIMAGES "find duplicate images in albums" on \
        IMAGESGALLERY "album to HTML gallery export" on \
        JPEGLOSSLESS "batch processing without losing meta info" on \
        MPEGENCODER "tool to build a video from images" on \
        PRINTWIZARD "a print wizard" on \
        RAWCONVERTER "convert RAW images from digital cameras" on \
        SENDIMAGES "an email images plugin" on \
        SLIDESHOW "create a slideshow" on \
        TIMEADJUST "adjust image file time and date" on \
        WALLPAPER "set your image as wallpaper" on

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_KDELIBS_VER=3
USE_REINPLACE=  yes
CONFIGURE_ARGS+=--program-prefix=''

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_ACQUIREIMAGES)
PLIST_SUB+= ACQUIREIMAGES:=""
SUBDIRS+=   acquireimages
.else
PLIST_SUB+= ACQUIREIMAGES:="@comment "
.endif

.if !defined(WITHOUT_BATCHPROCESSIMAGES)
PLIST_SUB+= BATCHPROCESSIMAGES:=""
SUBDIRS+=   batchprocessimages
.else
PLIST_SUB+= BATCHPROCESSIMAGES:="@comment "
.endif

.if !defined(WITHOUT_CALENDAR)
PLIST_SUB+= CALENDAR:=""
SUBDIRS+=   calendar
.else
PLIST_SUB+= CALENDAR:="@comment "
.endif

.if !defined(WITHOUT_CDARCHIVING)
PLIST_SUB+= CDARCHIVING:=""
RUN_DEPENDS+=   k3b:${PORTSDIR}/sysutils/k3b
SUBDIRS+=   cdarchiving
.else
PLIST_SUB+= CDARCHIVING:="@comment "
.endif

.if !defined(WITHOUT_FINDIMAGES)
PLIST_SUB+= FINDIMAGES:=""
SUBDIRS+=   findimages
.else
PLIST_SUB+= FINDIMAGES:="@comment "
.endif

.if !defined(WITHOUT_IMAGESGALLERY)
PLIST_SUB+= IMAGESGALLERY:=""
SUBDIRS+=   imagesgallery
.else
PLIST_SUB+= IMAGESGALLERY:="@comment "
.endif

.if !defined(WITHOUT_JPEGLOSSLESS)
PLIST_SUB+= JPEGLOSSLESS:=""
SUBDIRS+=   jpeglossless
.else
PLIST_SUB+= JPEGLOSSLESS:="@comment "
.endif

.if !defined(WITHOUT_MPEGENCODER)
PLIST_SUB+= MPEGENCODER:=""
RUN_DEPENDS+=   mpeg2enc:${PORTSDIR}/multimedia/mjpegtools \
        convert:${PORTSDIR}/graphics/ImageMagick
MAN1+=      images2mpg.1
SUBDIRS+=   mpegencoder
.else
PLIST_SUB+= MPEGENCODER:="@comment "
.endif

.if !defined(WITHOUT_PRINTWIZARD)
PLIST_SUB+= PRINTWIZARD:=""
SUBDIRS+=   printwizard
.else
PLIST_SUB+= PRINTWIZARD:="@comment "
.endif

.if !defined(WITHOUT_RAWCONVERTER)
PLIST_SUB+= RAWCONVERTER:=""
RUN_DEPENDS+=   dcraw:${PORTSDIR}/graphics/dcraw
MAN1+=      kipidcrawclient.1
SUBDIRS+=   rawconverter
.else
PLIST_SUB+= RAWCONVERTER:="@comment "
.endif

.if !defined(WITHOUT_SENDIMAGES)
PLIST_SUB+= SENDIMAGES:=""
SUBDIRS+=   sendimages
.else
PLIST_SUB+= SENDIMAGES:="@comment "
.endif

.if !defined(WITHOUT_SLIDESHOW)
PLIST_SUB+= SLIDESHOW:=""
SUBDIRS+=   slideshow
.else
PLIST_SUB+= SLIDESHOW:="@comment "
.endif

.if !defined(WITHOUT_TIMEADJUST)
PLIST_SUB+= TIMEADJUST:=""
SUBDIRS+=   timeadjust
.else
PLIST_SUB+= TIMEADJUST:="@comment "
.endif

.if !defined(WITHOUT_WALLPAPER)
PLIST_SUB+= WALLPAPER:=""
SUBDIRS+=   wallpaper
.else
PLIST_SUB+= WALLPAPER:="@comment "
.endif

post-patch::
    @${REINPLACE_CMD} -e 's@-lpthread@${PTHREAD_LIBS}@g' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's@%%SUBDIRS%%@${SUBDIRS}@g' ${WRKSRC}/kipi-plugins/Makefile.in

.include <bsd.port.post.mk>