283e931805
and fix RUN_DEPENDS ok jasper@, ajacoutot@
60 lines
1.3 KiB
Makefile
60 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.22 2011/04/05 14:12:35 shadchin Exp $
|
|
|
|
COMMENT= view, decode and encode DjVu files
|
|
|
|
DISTNAME= djvulibre-3.5.24
|
|
REVISION= 0
|
|
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
|
|
|
|
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 \
|
|
x11/hicolor-icon-theme
|
|
|
|
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>
|