openbsd-ports/print/htmldoc/Makefile

58 lines
1.3 KiB
Makefile
Raw Normal View History

2010-10-24 16:58:58 -04:00
# $OpenBSD: Makefile,v 1.27 2010/10/24 21:32:39 ajacoutot Exp $
COMMENT= convert HTML pages to PDF/PS format
V= 1.8.27
DISTNAME= htmldoc-${V}
CATEGORIES= print www
REVISION= 5
HOMEPAGE= http://www.htmldoc.org/
2009-12-20 12:28:21 -05:00
MAINTAINER= Benoit Lecocq <benoit@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2009-01-16 02:52:50 -05:00
WANTLIB += c crypto m ssl z jpeg png
2002-12-16 12:01:23 -05:00
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?=
2010-10-18 17:25:07 -04:00
USE_GROFF = Yes
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS+= --without-gui
LIB_DEPENDS= ::graphics/jpeg \
::graphics/png
.else
LIB_DEPENDS= ::x11/fltk
WANTLIB+= X11 Xau Xdmcp Xext Xpm fltk fltk_images pthread
.endif
CONFIGURE_STYLE= gnu dest
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng" \
2002-12-16 12:01:23 -05:00
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
2002-10-28 08:40:41 -05:00
NO_REGRESS= Yes
.include <bsd.port.mk>