blob: 1d370c8b3b4b2237e404f59480d76ce25922edda (
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
|
# Created by: Olivier Duchateau
# $FreeBSD$
#
PORTNAME= tumbler
PORTVERSION= 0.1.27
CATEGORIES= deskutils xfce
MASTER_SITES= ${MASTER_SITE_XFCE}
MASTER_SITE_SUBDIR= src/xfce/${PORTNAME}/${PORTVERSION:R}
PKGNAMEPREFIX= xfce4-
DIST_SUBDIR= xfce4
MAINTAINER= xfce@FreeBSD.org
COMMENT= Thumbnail service for Xfce desktop
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
dbus-glib-1:${PORTSDIR}/devel/dbus-glib
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GNOME= glib20 gnomehack intltool intlhack
USE_LDCONFIG= yes
USE_XFCE= configenv
USE_PKGCONFIG= build
CONFIGURE_ARGS= --enable-xdg-cache \
--disable-gtk-doc-html
OPTIONS_DEFINE= DOCS NLS PIXBUF FONTS JPEG FFMPEG POPPLER \
GSTREAMER ODF RAW COVER
OPTIONS_DEFAULT= PIXBUF FONTS JPEG POPPLER GSTREAMER ODF
# GStreamer thumbnailer needs new 1.0 API
OPTIONS_EXCLUDE= GSTREAMER
FONTS_DESC= Fonts thumbnailer plugin
COVER_DESC= Open Movie Database thumbnailer plugin
SUB_FILES= pkg-message
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
CONFIGURE_ARGS+=--enable-nls
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS+=--with-html-dir=${PREFIX}/share/gtk-doc/html
PLIST_SUB+= APIDOCS=""
.else
CONFIGURE_ARGS+=--without-html-dir
PLIST_SUB+= APIDOCS="@comment "
.endif
.if ${PORT_OPTIONS:MPIXBUF}
USE_GNOME+= gdkpixbuf2
CONFIGURE_ARGS+=--enable-pixbuf-thumbnailer
PLIST_SUB+= PIXBUF=""
.else
CONFIGURE_ARGS+=--disable-pixbuf-thumbnailer
PLIST_SUB+= PIXBUF="@comment "
.endif
.if ${PORT_OPTIONS:MFONTS}
# PIXBUF needs to be set
.if ! ${PORT_OPTIONS:MPIXBUF}
USE_GNOME+= gdkpixbuf2
CONFIGURE_ARGS+=--enable-pixbuf-thumbnailer
PLIST_SUB+= PIXBUF=""
.endif
LIB_DEPENDS+= freetype:${PORTSDIR}/print/freetype2
CONFIGURE_ARGS+=--enable-font-thumbnailer
PLIST_SUB+= FONTS=""
.else
CONFIGURE_ARGS+=--disable-font-thumbnailer
PLIST_SUB+= FONTS="@comment "
.endif
.if ${PORT_OPTIONS:MJPEG}
.if ! ${PORT_OPTIONS:MPIXBUF}
USE_GNOME+= gdkpixbuf2
CONFIGURE_ARGS+=--enable-pixbuf-thumbnailer
PLIST_SUB+= PIXBUF=""
.endif
LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg \
exif:${PORTSDIR}/graphics/exif
CONFIGURE_ARGS+=--enable-jpeg-thumbnailer
PLIST_SUB+= JPEG=""
.else
CONFIGURE_ARGS+=--disable-jpeg-thumbnailer
PLIST_SUB+= JPEG="@comment "
.endif
.if ${PORT_OPTIONS:MFFMPEG}
.if ! ${PORT_OPTIONS:MPIXBUF}
USE_GNOME+= gdkpixbuf2
CONFIGURE_ARGS+=--enable-pixbuf-thumbnailer
PLIST_SUB+= PIXBUF=""
.endif
LIB_DEPENDS+= ffmpegthumbnailer:${PORTSDIR}/multimedia/ffmpegthumbnailer
CONFIGURE_ARGS+=--enable-ffmpeg-thumbnailer
PLIST_SUB+= FFMPEG=""
.else
CONFIGURE_ARGS+=--disable-ffmpeg-thumbnailer
PLIST_SUB+= FFMPEG="@comment "
.endif
.if ${PORT_OPTIONS:MPOPPLER}
.if ! ${PORT_OPTIONS:MPIXBUF}
USE_GNOME+= gdkpixbuf2
CONFIGURE_ARGS+=--enable-pixbuf-thumbnailer
PLIST_SUB+= PIXBUF=""
.endif
LIB_DEPENDS+= poppler-glib:${PORTSDIR}/graphics/poppler-glib
CONFIGURE_ARGS+=--enable-poppler-thumbnailer
PLIST_SUB+= POPPLER=""
.else
CONFIGURE_ARGS+=--disable-poppler-thumbnailer
PLIST_SUB+= POPPLER="@comment "
.endif
.if ${PORT_OPTIONS:MGSTREAMER}
.if ! ${PORT_OPTIONS:MPIXBUF}
USE_GNOME+= gdkpixbuf2
CONFIGURE_ARGS+=--enable-pixbuf-thumbnailer
PLIST_SUB+= PIXBUF=""
.endif
USE_GSTREAMER= yes
CONFIGURE_ARGS+=--enable-gstreamer-thumbnailer
PLIST_SUB+= GSTREAMER=""
.else
CONFIGURE_ARGS+=--disable-gstreamer-thumbnailer
PLIST_SUB+= GSTREAMER="@comment "
.endif
.if ${PORT_OPTIONS:MODF}
.if ! ${PORT_OPTIONS:MPIXBUF}
USE_GNOME+= gdkpixbuf2
CONFIGURE_ARGS+=--enable-pixbuf-thumbnailer
PLIST_SUB+= PIXBUF=""
.endif
USE_GNOME+= libgsf
CONFIGURE_ARGS+=--enable-odf-thumbnailer
PLIST_SUB+= ODF=""
.else
CONFIGURE_ARGS+=--disable-odf-thumbnailer
PLIST_SUB+= ODF="@comment "
.endif
.if ${PORT_OPTIONS:MRAW}
.if ! ${PORT_OPTIONS:MPIXBUF}
USE_GNOME+= gdkpixbuf2
CONFIGURE_ARGS+=--enable-pixbuf-thumbnailer
PLIST_SUB+= PIXBUF=""
.endif
LIB_DEPENDS+= openraw:${PORTSDIR}/graphics/libopenraw
CONFIGURE_ARGS+=--enable-raw-thumbnailer
PLIST_SUB+= RAW=""
.else
CONFIGURE_ARGS+=--disable-raw-thumbnailer
PLIST_SUB+= RAW="@comment "
.endif
.if ${PORT_OPTIONS:MCOVER}
.if ! ${PORT_OPTIONS:MPIXBUF}
USE_GNOME+= gdkpixbuf2
CONFIGURE_ARGS+=--enable-pixbuf-thumbnailer
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
PLIST_SUB+= PIXBUF=""
.endif
CONFIGURE_ARGS+=--enable-cover-thumbnailer
PLIST_SUB+= COVER=""
.else
CONFIGURE_ARGS+=--disable-cover-thumbnailer
PLIST_SUB+= COVER="@comment "
.endif
post-patch:
.if empty(PORT_OPTIONS:MNLS)
@${REINPLACE_CMD} -e 's| po||' ${WRKSRC}/Makefile.in
.endif
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>
|