openbsd-ports/graphics/djvulibre/Makefile
shadchin 2528f20c97 update to 3.5.24
ok jasper@
2011-03-17 14:56:54 +00:00

61 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.21 2011/03/17 14:56:54 shadchin Exp $
COMMENT= view, decode and encode DjVu files
DISTNAME= djvulibre-3.5.24
SHARED_LIBS= djvulibre 24.0
CATEGORIES= graphics print
HOMEPAGE= http://djvu.sourceforge.net/
MAINTAINER= Alexandr Shadchin <shadchin@openbsd.org>
# GPLv2
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?=
WANTLIB= c m jpeg pthread stdc++ tiff z
LIB_DEPENDS= graphics/jpeg \
graphics/tiff
BUILD_DEPENDS= x11/gnome/librsvg
RUN_DEPENDS= devel/desktop-file-utils \
x11/hicolor-icon-theme
USE_GMAKE= Yes
USE_LIBTOOL= Yes
USE_GROFF = Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-jpeg=${LOCALBASE} \
--with-tiff=${LOCALBASE} \
--with-extra-libraries=${LOCALBASE}/lib \
--disable-i18n
.if ${FLAVOR:Mno_x11}
CONFIGURE_ARGS+=--without-x
.else
MODULES= x11/qt3
WANTLIB += GL ICE SM X11 Xau Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xft Xi Xinerama Xmu Xrandr Xrender Xt Xxf86vm drm expat
WANTLIB += fontconfig freetype lcms mng png pthread-stubs xcb
RUN_DEPENDS+= devel/desktop-file-utils
CONFIGURE_ARGS+=--enable-djview
CONFIGURE_ENV+= QT_CFLAGS="-I${MODQT_INCDIR}" \
QT_LIBS="-L${MODQT_LIBDIR} -lqt-mt" \
CPPFLAGS="-I${X11BASE}/include"
.endif
NO_REGRESS= Yes
.include <bsd.port.mk>