blob: b9ced1f50f061e52f326c6025b4bfb94fccebe57 (
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
156
157
158
159
160
161
162
|
# $FreeBSD$
#
# Make sure when DIGIKAM_VER is updated that the following ports are updated:
# graphics/digikam-kde4
# graphics/digikam-kde4-doc
# graphics/digikam-kde4-l10n
# graphics/kipi-plugin-*
# graphics/kipi-plugins-kde4
# graphics/libkipiplugins
# These ports now lead independent lives:
# astro/libkgeomap-kde4 (part of KDE Applications)
# net/libkvkontakte-kde4 (part of KDE Applications)
# net/libmediawiki-kde4 (part of digiKam 4.12)
DIGIKAM_VER= 4.14.0
MASTER_SITES= KDE/Attic/digikam
KIPI_PLUGINS_ALL= acquireimages \
advancedslideshow \
batchprocess \
calendar \
debianscreenshots \
dngconverter \
dropbox \
expoblending \
facebook \
flashexport \
flickrexport \
galleryexport \
googleservices \
gpssync \
htmlexport \
imageshackexport \
imageviewer \
imgurexport \
ipodexport \
jalbumexport \
jpeglossless \
kioexport \
kmlexport \
kopete \
mediawiki \
metadataedit \
panorama \
photolayoutseditor \
piwigoexport \
printimages \
rajceexport \
rawconverter \
removeredeyes \
sendimages \
shwup \
smug \
timeadjust \
videoslideshow \
vkontakte \
yandexfotki
# libkipiplugins is special: it's not listed in KIPI_PLUGINS_ALL,
# and every plugin depends on it
libkipiplugins_DIR= common
libkipiplugins_DESC= Common library for kipi plugins
batchprocess_DIR= batchprocessimages
kioexport_DIR= kioexportimport
acquireimages_DESC= Acquire images using flat scanner
advancedslideshow_DESC= Slide images with 2D and 3D effects using OpenGL
batchprocess_DESC= Batch process images (convert, resize, rename, etc.)
calendar_DESC= Create calendars
debianscreenshots_DESC= Export images to Debian Screenshots web service
dngconverter_DESC= Convert Raw Image to Digital NeGative
dropbox_DESC= Export images to Dropbox cloud service
expoblending_DESC= Create pseudo HDR image with a stack of bracketed images
facebook_DESC= Import/export images to/from a remote Facebook web service
flashexport_DESC= Export images to Flash using SimpleViewer
flickrexport_DESC= Export images to a remote Flickr based web service
galleryexport_DESC= Export images to a remote Gallery
googleservices_DESC= Export images to Google Services (drive/picasa)
gpssync_DESC= Geolocalize images
htmlexport_DESC= Export images collections into a static XHTML page
imageshackexport_DESC= Export images to ImageShack web service
imageviewer_DESC= Preview images using OpenGL
imgurexport_DESC= Export images to ImgUr web service
ipodexport_DESC= Export images to an Ipod device
jalbumexport_DESC= Export images to jAlbum
jpeglossless_DESC= Rotate/flip images without losing quality
kioexport_DESC= Export images to remote computer using network protocol
kmlexport_DESC= Create KML files to present images with coordinates
kopete_DESC= Export images to an instant messaging contact
mediawiki_DESC= Export images to Mediawiki based web service
metadataedit_DESC= Edit EXIF, IPTC and XMP metadata
panorama_DESC= Assemble panoramic photo automatically
# not ready for production yet
# photivointegration_DESC= Integration of the Photivo RAW-Processor
photolayoutseditor_DESC=Assemble images together
piwigoexport_DESC= Export images to a remote Piwigo (PHPWebGallery) server
printimages_DESC= Print images in various format
rajceexport_DESC= Export images to Rajce web service
rawconverter_DESC= Convert Raw Image to JPEG/PNG/TIFF
removeredeyes_DESC= Remove red eyes on image automatically
sendimages_DESC= Send images by e-mail
shwup_DESC= Export images to Shwup web service
smug_DESC= Import/export images to/from a remote SmugMug web service
timeadjust_DESC= Adjust date and time
videoslideshow_DESC= Export images as Video Slide Show
vkontakte_DESC= Export images to VKontakte web service
# Requires https://bugs.kde.org/show_bug.cgi?id=217950
# wallpaper_DESC= Set image as background on desktop
yandexfotki_DESC= Export images to Yandex web service
DISTNAME= digikam-${DIGIKAM_VER}
DISTINFO_FILE= ${.CURDIR:H:H}/graphics/digikam-kde4/distinfo
LICENSE?= GPLv2
USES+= qt:4 tar:bzip2
.if !defined(NO_BUILD)
USES+= cmake:insource,noninja kde:4
USE_KDE+= automoc4 kdelibs
USE_QT+= qmake_build moc_build rcc_build uic_build
WRKSRC?= ${WRKDIR}/${DISTNAME}/extra/${PORTNAME}
PLIST_SUB+= SHLIB_VER=${DIGIKAM_VER}
. if defined(KIPI_PLUGIN)
CONFLICTS_INSTALL= kipi-plugins-2.*
DESCR= ${.CURDIR:H:H}/graphics/kipi-plugins-kde4/pkg-descr
USES+= pkgconfig
.if ${KIPI_PLUGIN} != "libkipiplugins"
EXTRA_PATCHES= ${.CURDIR:H:H}/graphics/kipi-plugins-kde4/files/extrapatch-CMakeLists.txt
LIB_DEPENDS+= libkipiplugins.so:graphics/libkipiplugins
.endif
EXTRA_PATCHES+= ${.CURDIR:H:H}/graphics/kipi-plugins-kde4/files/extrapatch-extra_kipi_plugins_cmakelists.patch
EXTRACT_AFTER_ARGS= --no-same-owner --no-same-permissions ${DISTNAME}/extra/kipi-plugins
WRKSRC= ${WRKDIR}/${DISTNAME}/extra/kipi-plugins
BUILD_WRKSRC= ${WRKSRC}/${${KIPI_PLUGIN}_DIR}
INSTALL_WRKSRC= ${BUILD_WRKSRC}
${KIPI_PLUGIN}_DIR?= ${KIPI_PLUGIN}
.if ${KIPI_PLUGIN} != "libkipiplugins"
# Each plugin is built separately from the same tarball. The upstream build
# process expects a single build for all plugins, which includes building
# libkipiplugins itself.
# Adjust it (together with extrapatch-CMakeLists.txt in
# graphics/kipi-plugins-kde4) by actually looking for libkipiplugins with
# find_library() and linking against it instead of ending up just passing
# "-lkipiplugins" to the linker because of the way we build these ports.
post-patch: kipi-plugin-post-patch
kipi-plugin-post-patch:
${FIND} ${BUILD_WRKSRC} -name CMakeLists.txt | ${XARGS} ${REINPLACE_CMD} -e \
's, kipiplugins, $${LIBKIPIPLUGINS_LIBRARIES},' \
${BUILD_WRKSRC}/CMakeLists.txt
.endif
. endif # defined(KIPI_PLUGIN)
.endif # !defined(NO_BUILD)
|