openbsd-ports/graphics/djvulibre/Makefile

55 lines
1.1 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.6 2007/11/28 13:14:12 ajacoutot Exp $
COMMENT= view, decode and encode DjVu files
2007-02-06 02:17:42 -05:00
DISTNAME= djvulibre-3.5.18
2007-11-24 08:25:50 -05:00
PKGNAME= ${DISTNAME}p1
2007-02-06 02:17:42 -05:00
SHARED_LIBS= djvulibre 18.0
CATEGORIES= graphics print
2007-11-24 08:25:50 -05:00
HOMEPAGE= http://djvu.sourceforge.net/
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} \
2007-02-06 02:17:42 -05:00
--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+= x11/qt3
MODQT_MT= Yes
USE_X11= Yes
2007-11-13 12:10:25 -05:00
WANTLIB+= ICE SM X11 Xext Xau Xdmcp
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>