2011-11-01 16:30:49 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.24 2011/11/01 20:30:49 jasper Exp $
|
2006-07-16 12:48:07 -04:00
|
|
|
|
2007-09-15 16:09:40 -04:00
|
|
|
COMMENT= view, decode and encode DjVu files
|
2006-07-16 12:48:07 -04:00
|
|
|
|
2011-03-17 10:56:54 -04:00
|
|
|
DISTNAME= djvulibre-3.5.24
|
2011-11-01 16:30:49 -04:00
|
|
|
REVISION= 2
|
2011-03-17 10:56:54 -04:00
|
|
|
SHARED_LIBS= djvulibre 24.0
|
2006-07-16 12:48:07 -04:00
|
|
|
CATEGORIES= graphics print
|
|
|
|
|
2007-11-24 08:25:50 -05:00
|
|
|
HOMEPAGE= http://djvu.sourceforge.net/
|
2006-07-16 12:48:07 -04:00
|
|
|
|
2011-03-17 10:56:54 -04:00
|
|
|
MAINTAINER= Alexandr Shadchin <shadchin@openbsd.org>
|
2006-07-16 12:48:07 -04:00
|
|
|
|
2010-08-31 17:06:35 -04:00
|
|
|
# GPLv2
|
2006-07-16 12:48:07 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=djvu/}
|
|
|
|
|
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
|
|
|
|
2010-08-31 17:06:35 -04:00
|
|
|
WANTLIB= c m jpeg pthread stdc++ tiff z
|
2006-07-16 12:48:07 -04:00
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
LIB_DEPENDS= graphics/jpeg \
|
|
|
|
graphics/tiff
|
2006-07-16 12:48:07 -04:00
|
|
|
|
2010-08-31 17:06:35 -04:00
|
|
|
USE_GMAKE= Yes
|
2006-07-16 12:48:07 -04:00
|
|
|
USE_LIBTOOL= Yes
|
2010-10-18 14:13:12 -04:00
|
|
|
USE_GROFF = Yes
|
2006-07-16 12:48:07 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS= --with-jpeg=${LOCALBASE} \
|
|
|
|
--with-tiff=${LOCALBASE} \
|
2007-02-06 02:17:42 -05:00
|
|
|
--with-extra-libraries=${LOCALBASE}/lib \
|
|
|
|
--disable-i18n
|
2006-07-16 12:48:07 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:Mno_x11}
|
|
|
|
CONFIGURE_ARGS+=--without-x
|
|
|
|
.else
|
2010-08-31 17:06:35 -04:00
|
|
|
MODULES= x11/qt3
|
2011-03-17 10:56:54 -04:00
|
|
|
|
2011-11-01 16:30:49 -04:00
|
|
|
WANTLIB += GL ICE SM X11 Xcursor Xdamage Xext Xfixes
|
2011-03-17 10:56:54 -04:00
|
|
|
WANTLIB += Xft Xi Xinerama Xmu Xrandr Xrender Xt Xxf86vm drm expat
|
2011-11-01 16:30:49 -04:00
|
|
|
WANTLIB += fontconfig freetype lcms mng png xcb
|
2011-03-17 10:56:54 -04:00
|
|
|
|
2011-04-05 10:12:35 -04:00
|
|
|
RUN_DEPENDS+= devel/desktop-file-utils \
|
|
|
|
x11/hicolor-icon-theme
|
|
|
|
|
2010-08-31 17:06:35 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-djview
|
2006-07-16 12:48:07 -04:00
|
|
|
CONFIGURE_ENV+= QT_CFLAGS="-I${MODQT_INCDIR}" \
|
2011-03-17 10:56:54 -04:00
|
|
|
QT_LIBS="-L${MODQT_LIBDIR} -lqt-mt" \
|
|
|
|
CPPFLAGS="-I${X11BASE}/include"
|
2006-07-16 12:48:07 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|