54 lines
1.1 KiB
Makefile
54 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.2 2007/02/06 07:17:42 steven Exp $
|
|
|
|
COMMENT= "view, decode and encode DjVu files"
|
|
|
|
DISTNAME= djvulibre-3.5.18
|
|
SHARED_LIBS= djvulibre 18.0
|
|
CATEGORIES= graphics print
|
|
|
|
HOMEPAGE= http://djvulibre.djvuzone.org/
|
|
|
|
MAINTAINER= Steven Mestdagh <steven@openbsd.org>
|
|
|
|
# GPL
|
|
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 pthread stdc++ z
|
|
|
|
MODULES= converters/libiconv
|
|
|
|
LIB_DEPENDS= jpeg::graphics/jpeg \
|
|
tiff::graphics/tiff
|
|
|
|
USE_LIBTOOL= Yes
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= --with-jpeg=${LOCALBASE} \
|
|
--with-tiff=${LOCALBASE} \
|
|
--with-extra-libraries=${LOCALBASE}/lib \
|
|
--disable-i18n
|
|
CONFIGURE_ENV= TIFF_LIBS="-L${LOCALBASE}/lib -ltiff -lz -ljpeg"
|
|
|
|
.if ${FLAVOR:Mno_x11}
|
|
CONFIGURE_ARGS+=--without-x
|
|
.else
|
|
MODULES+= qt3
|
|
MODQT_MT= Yes
|
|
USE_X11= Yes
|
|
WANTLIB+= ICE SM X11 Xext
|
|
CONFIGURE_ARGS+=--with-qt=${MODQT_LIBDIR}
|
|
CONFIGURE_ENV+= QT_CFLAGS="-I${MODQT_INCDIR}" \
|
|
QT_LIBS="-L${MODQT_LIBDIR} -lqt-mt"
|
|
.endif
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
.include <bsd.port.mk>
|