2012-10-18 21:30:53 +02:00
|
|
|
# Created by: TATEISHI Katsuyuki <katsu@iec.hiroshima-u.ac.jp>
|
2002-02-20 22:47:37 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gimageview
|
2006-12-25 22:20:29 +01:00
|
|
|
PORTVERSION= 0.2.27
|
2013-03-14 09:17:39 +01:00
|
|
|
PORTREVISION= 13
|
2002-02-20 22:47:37 +01:00
|
|
|
CATEGORIES= graphics
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/gtkmmviewer/${PORTNAME}/${PORTVERSION}
|
2002-02-20 22:47:37 +01:00
|
|
|
|
2012-10-18 21:30:53 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-16 15:50:45 +01:00
|
|
|
COMMENT= Yet another GTK+ based image viewer
|
2002-02-20 22:47:37 +01:00
|
|
|
|
2013-01-26 17:06:35 +01:00
|
|
|
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
|
2012-06-01 07:26:28 +02:00
|
|
|
png15:${PORTSDIR}/graphics/png
|
2009-01-15 22:11:07 +01:00
|
|
|
|
2002-02-20 22:47:37 +01:00
|
|
|
USE_GMAKE= yes
|
2002-09-03 04:46:49 +02:00
|
|
|
WANT_GNOME= yes
|
2002-02-20 22:47:37 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2004-09-20 06:00:58 +02:00
|
|
|
MAKE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
|
2002-02-20 22:47:37 +01:00
|
|
|
|
2012-06-24 17:43:51 +02:00
|
|
|
OPTIONS_DEFINE= SPLASH NLS LIBMNG LIBWMF LIBRSVG2 LIBEXIF MPLAYER LIBXINE IMLIB
|
|
|
|
OPTIONS_DEFAULT=SPLASH NLS LIBMNG LIBWMF LIBRSVG2 LIBEXIF MPLAYER
|
|
|
|
NO_OPTIONS_SORT=yes
|
|
|
|
SPLASH_DESC= Show splash screen on startup
|
2012-06-30 13:37:57 +02:00
|
|
|
IMLIB_DESC= imlib, disable gdk-pixbuf
|
2007-09-09 21:16:59 +02:00
|
|
|
|
2006-12-25 22:20:29 +01:00
|
|
|
USE_GNOME= gtk20
|
2009-01-15 22:11:07 +01:00
|
|
|
USE_XORG= xinerama ice
|
2006-12-25 22:20:29 +01:00
|
|
|
CONFIGURE_ARGS= --with-gtk2
|
|
|
|
CFLAGS+= -DUSE_GTK2
|
|
|
|
|
2013-04-26 18:39:14 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2002-05-18 09:05:59 +02:00
|
|
|
|
2013-04-26 18:39:14 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MSPLASH}
|
2007-09-09 21:16:59 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-splash
|
|
|
|
.endif
|
|
|
|
|
2012-06-24 17:43:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-26 18:39:14 +02:00
|
|
|
USES+= gettext
|
2009-01-15 22:11:07 +01:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-24 17:43:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MIMLIB}
|
2002-09-03 04:46:49 +02:00
|
|
|
USE_GNOME+= imlib
|
2006-12-25 22:20:29 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-gdk-pixbuf
|
2002-05-18 09:05:59 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-24 17:43:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MLIBMNG}
|
2013-01-26 17:06:35 +01:00
|
|
|
LIB_DEPENDS+= mng:${PORTSDIR}/graphics/libmng
|
2003-07-27 10:21:25 +02:00
|
|
|
PLIST_SUB+= WITH_LIBMNG=""
|
|
|
|
.else
|
2009-01-15 22:11:07 +01:00
|
|
|
CONFIGURE_ARGS+= --without-libmng
|
2003-07-27 10:21:25 +02:00
|
|
|
PLIST_SUB+= WITH_LIBMNG="@comment "
|
2003-06-26 10:38:40 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-24 17:43:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MLIBWMF}
|
2013-01-26 17:06:35 +01:00
|
|
|
LIB_DEPENDS+= wmf:${PORTSDIR}/graphics/libwmf
|
2003-07-27 10:21:25 +02:00
|
|
|
PLIST_SUB+= WITH_LIBWMF=""
|
|
|
|
.else
|
2009-01-15 22:11:07 +01:00
|
|
|
CONFIGURE_ARGS+= --without-libwmf
|
2003-07-27 10:21:25 +02:00
|
|
|
PLIST_SUB+= WITH_LIBWMF="@comment "
|
2003-06-26 10:38:40 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-24 17:43:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MLIBRSVG2}
|
2013-01-26 17:06:35 +01:00
|
|
|
LIB_DEPENDS+= rsvg-2:${PORTSDIR}/graphics/librsvg2
|
2003-07-27 10:21:25 +02:00
|
|
|
PLIST_SUB+= WITH_LIBRSVG=""
|
|
|
|
.else
|
2009-01-15 22:11:07 +01:00
|
|
|
CONFIGURE_ARGS+= --without-librsvg
|
2003-07-27 10:21:25 +02:00
|
|
|
PLIST_SUB+= WITH_LIBRSVG="@comment "
|
2003-06-26 10:38:40 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-24 17:43:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MLIBEXIF}
|
2013-01-26 17:06:35 +01:00
|
|
|
LIB_DEPENDS+= exif:${PORTSDIR}/graphics/libexif
|
2009-01-15 22:11:07 +01:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-exit_view.c
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-exif
|
|
|
|
.endif
|
|
|
|
|
2012-06-24 17:43:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MMPLAYER}
|
2003-06-26 10:38:40 +02:00
|
|
|
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
|
|
|
|
CONFIGURE_ARGS+= --enable-mplayer
|
2003-07-27 10:21:25 +02:00
|
|
|
PLIST_SUB+= WITH_LIBMPLAYER=""
|
|
|
|
.else
|
2009-01-15 22:11:07 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-mplayer
|
2003-07-27 10:21:25 +02:00
|
|
|
PLIST_SUB+= WITH_LIBMPLAYER="@comment "
|
2003-06-26 10:38:40 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-24 17:43:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MLIBXINE}
|
2013-01-26 17:06:35 +01:00
|
|
|
LIB_DEPENDS+= xine:${PORTSDIR}/multimedia/libxine
|
2003-06-26 10:38:40 +02:00
|
|
|
CONFIGURE_ARGS+= --with-xine
|
2003-07-27 10:21:25 +02:00
|
|
|
PLIST_SUB+= WITH_LIBXINE=""
|
|
|
|
.else
|
2009-01-15 22:11:07 +01:00
|
|
|
CONFIGURE_ARGS+= --without-xine
|
2003-07-27 10:21:25 +02:00
|
|
|
PLIST_SUB+= WITH_LIBXINE="@comment "
|
2003-06-26 10:38:40 +02:00
|
|
|
.endif
|
|
|
|
|
2002-02-20 22:47:37 +01:00
|
|
|
post-patch:
|
2003-01-05 20:10:27 +01:00
|
|
|
@${REINPLACE_CMD} -e 's/DATADIRNAME=lib/DATADIRNAME=share/g' \
|
2007-02-16 15:29:02 +01:00
|
|
|
-e 's|echo aout|echo elf|' \
|
2002-02-20 22:47:37 +01:00
|
|
|
${WRKSRC}/configure
|
2007-12-11 21:15:37 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/gnome/apps/|/apps/|' \
|
|
|
|
${WRKSRC}/gimageview.spec \
|
|
|
|
${WRKSRC}/etc/Makefile.in
|
2002-02-20 22:47:37 +01:00
|
|
|
|
2002-05-18 09:05:59 +02:00
|
|
|
post-configure:
|
2012-06-24 17:43:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MIMLIB}
|
2003-01-05 20:10:27 +01:00
|
|
|
@${FIND} ${WRKSRC} -name 'Makefile' | ${XARGS} ${REINPLACE_CMD} -Ee \
|
2002-05-18 09:05:59 +02:00
|
|
|
's/^(GDK_IMLIB_(CFLAGS|LIBS) =).*$$/$${1}/'
|
|
|
|
.endif
|
|
|
|
|
2013-04-26 18:39:14 +02:00
|
|
|
.include <bsd.port.mk>
|