openbsd-ports/print/htmldoc/Makefile

56 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.21 2007/09/15 21:36:44 merdely Exp $
COMMENT= convert HTML pages to PDF/PS format
V= 1.8.27
DISTNAME= htmldoc-${V}
PKGNAME= ${DISTNAME}p1
CATEGORIES= print www
HOMEPAGE= http://www.htmldoc.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c crypto m ssl z
DISTFILES= ${DISTNAME}-source${EXTRACT_SUFX}
MASTER_SITES= ftp://ftp.easysw.com/pub/htmldoc/${V}/ \
ftp://ftp2.easysw.com/pub/htmldoc/${V}/ \
ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/htmldoc/${V}/ \
ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/htmldoc/${V}/
FLAVORS= no_x11
FLAVOR?=
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS+= --without-gui
LIB_DEPENDS= jpeg.>=62::graphics/jpeg \
png.>=2::graphics/png
.else
LIB_DEPENDS= fltk.>=1,fltk_images.>=1::x11/fltk
WANTLIB+= X11 Xau Xdmcp Xext Xpm jpeg png
USE_X11= Yes
.endif
CONFIGURE_STYLE= gnu dest
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng" \
CPPFLAGS="-I${LOCALBASE}/include"
PORTHOME= ${WRKDIR}
post-extract:
@rm -rf ${WRKSRC}/jpeg ${WRKSRC}/png ${WRKSRC}/zlib
post-configure:
@perl -pi -e "s,\\$$\\{DESTDIR},," ${WRKSRC}/config.h
NO_REGRESS= Yes
.include <bsd.port.mk>