aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gimageview/Makefile15
-rw-r--r--graphics/gimageview/pkg-plist10
2 files changed, 21 insertions, 4 deletions
diff --git a/graphics/gimageview/Makefile b/graphics/gimageview/Makefile
index bb9e0112ea6..385cd4358c3 100644
--- a/graphics/gimageview/Makefile
+++ b/graphics/gimageview/Makefile
@@ -49,24 +49,39 @@ WITH_MPLAYER= yes
.if defined(WITH_LIBMNG)
LIB_DEPENDS+= mng.1:${PORTSDIR}/graphics/libmng
+PLIST_SUB+= WITH_LIBMNG=""
+.else
+PLIST_SUB+= WITH_LIBMNG="@comment "
.endif
.if defined(WITH_LIBWMF)
LIB_DEPENDS+= wmf.2:${PORTSDIR}/graphics/libwmf
+PLIST_SUB+= WITH_LIBWMF=""
+.else
+PLIST_SUB+= WITH_LIBWMF="@comment "
.endif
.if defined(WITH_LIBRSVG)
LIB_DEPENDS+= rsvg.1:${PORTSDIR}/graphics/librsvg
+PLIST_SUB+= WITH_LIBRSVG=""
+.else
+PLIST_SUB+= WITH_LIBRSVG="@comment "
.endif
.if defined(WITH_MPLAYER)
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
CONFIGURE_ARGS+= --enable-mplayer
+PLIST_SUB+= WITH_LIBMPLAYER=""
+.else
+PLIST_SUB+= WITH_LIBMPLAYER="@comment "
.endif
.if defined(WITH_LIBXINE)
LIB_DEPENDS+= xine.3:${PORTSDIR}/graphics/libxine
CONFIGURE_ARGS+= --with-xine
+PLIST_SUB+= WITH_LIBXINE=""
+.else
+PLIST_SUB+= WITH_LIBXINE="@comment "
.endif
post-patch:
diff --git a/graphics/gimageview/pkg-plist b/graphics/gimageview/pkg-plist
index 73644b8c463..c0c4f60bfb3 100644
--- a/graphics/gimageview/pkg-plist
+++ b/graphics/gimageview/pkg-plist
@@ -6,19 +6,21 @@ lib/gimageview/archiver/libgimv_zip_extarc.so
lib/gimageview/image_loader/libgimv_bmp_loader.so
lib/gimageview/image_loader/libgimv_jpeg_loader.so
lib/gimageview/image_loader/libgimv_mag_loader.so
-lib/gimageview/image_loader/libgimv_mng_loader.so
+%%WITH_LIBMNG%%lib/gimageview/image_loader/libgimv_mng_loader.so
lib/gimageview/image_loader/libgimv_pcx_loader.so
lib/gimageview/image_loader/libgimv_pixbuf_loader.so
lib/gimageview/image_loader/libgimv_png_loader.so
+%%WITH_LIBRSVG%%lib/gimageview/image_loader/libgimv_rsvg_loader.la
lib/gimageview/image_loader/libgimv_tga_loader.so
-lib/gimageview/image_loader/libgimv_wmf_loader.so
+%%WITH_LIBWMF%%lib/gimageview/image_loader/libgimv_wmf_loader.so
lib/gimageview/image_loader/libgimv_xbm_loader.so
lib/gimageview/image_loader/libgimv_xcf_loader.so
lib/gimageview/image_loader/libgimv_xvpics_loader.so
lib/gimageview/image_saver/libgimv_png_saver.so
lib/gimageview/image_saver/libgimv_pnm_saver.so
lib/gimageview/image_saver/libgimv_xvpics_saver.so
-lib/gimageview/image_view/libgimv_mplayer.so
+%%WITH_LIBMPLAYER%%lib/gimageview/image_view/libgimv_mplayer.so
+%%WITH_LIBXINE%%lib/gimageview/image_view/libgimv_xine.so
lib/gimageview/io_stream/libgimv_bz_io.so
lib/gimageview/io_stream/libgimv_gzip_io.so
lib/gimageview/thumbnail/libgimv_ee_thumb.so
@@ -121,7 +123,7 @@ share/pixmaps/gimv.png
@dirrm lib/gimageview/archiver
@dirrm lib/gimageview/image_loader
@dirrm lib/gimageview/image_saver
-@dirrm lib/gimageview/image_view
+@unexec rmdir %D/lib/gimageview/image_view 2>/dev/null || true
@dirrm lib/gimageview/io_stream
@dirrm lib/gimageview/thumbnail
@dirrm lib/gimageview/thumbnail_view