2010-10-24 16:58:58 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.27 2010/10/24 21:32:39 ajacoutot Exp $
|
2001-05-05 23:19:44 -04:00
|
|
|
|
2007-09-15 17:36:44 -04:00
|
|
|
COMMENT= convert HTML pages to PDF/PS format
|
2001-02-21 18:31:31 -05:00
|
|
|
|
2006-09-23 06:14:34 -04:00
|
|
|
V= 1.8.27
|
2002-08-10 16:12:36 -04:00
|
|
|
DISTNAME= htmldoc-${V}
|
2001-02-21 18:31:31 -05:00
|
|
|
CATEGORIES= print www
|
|
|
|
|
2010-09-22 08:50:03 -04:00
|
|
|
REVISION= 5
|
|
|
|
|
2006-09-23 06:14:34 -04:00
|
|
|
HOMEPAGE= http://www.htmldoc.org/
|
2001-02-21 18:31:31 -05:00
|
|
|
|
2009-12-20 12:28:21 -05:00
|
|
|
MAINTAINER= Benoit Lecocq <benoit@openbsd.org>
|
2006-02-05 11:17:13 -05:00
|
|
|
|
2001-02-21 18:31:31 -05:00
|
|
|
# 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
|
|
|
|
2010-09-22 08:50:03 -04:00
|
|
|
WANTLIB += c crypto m ssl z jpeg png
|
2001-02-21 18:36:28 -05:00
|
|
|
|
2002-12-16 12:01:23 -05:00
|
|
|
DISTFILES= ${DISTNAME}-source${EXTRACT_SUFX}
|
2002-08-10 16:12:36 -04:00
|
|
|
MASTER_SITES= ftp://ftp.easysw.com/pub/htmldoc/${V}/ \
|
|
|
|
ftp://ftp2.easysw.com/pub/htmldoc/${V}/ \
|
2006-09-23 06:14:34 -04:00
|
|
|
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}/
|
2001-02-21 18:31:31 -05:00
|
|
|
|
2007-05-02 14:34:00 -04:00
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
2010-10-18 17:25:07 -04:00
|
|
|
USE_GROFF = Yes
|
2007-05-02 14:34:00 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
CONFIGURE_ARGS+= --without-gui
|
2010-09-22 08:50:03 -04:00
|
|
|
LIB_DEPENDS= ::graphics/jpeg \
|
|
|
|
::graphics/png
|
2007-05-02 14:34:00 -04:00
|
|
|
.else
|
2010-09-22 08:50:03 -04:00
|
|
|
LIB_DEPENDS= ::x11/fltk
|
|
|
|
WANTLIB+= X11 Xau Xdmcp Xext Xpm fltk fltk_images pthread
|
2007-05-02 14:34:00 -04:00
|
|
|
.endif
|
2001-02-21 18:31:31 -05:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu dest
|
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
|
2007-05-02 14:34:00 -04:00
|
|
|
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include \
|
|
|
|
-I${LOCALBASE}/include/libpng" \
|
2002-12-16 12:01:23 -05:00
|
|
|
CPPFLAGS="-I${LOCALBASE}/include"
|
2006-12-26 09:07:10 -05:00
|
|
|
PORTHOME= ${WRKDIR}
|
2001-02-21 18:31:31 -05:00
|
|
|
|
2002-08-10 16:12:36 -04:00
|
|
|
post-extract:
|
|
|
|
@rm -rf ${WRKSRC}/jpeg ${WRKSRC}/png ${WRKSRC}/zlib
|
|
|
|
|
2006-02-05 11:17:13 -05:00
|
|
|
post-configure:
|
|
|
|
@perl -pi -e "s,\\$$\\{DESTDIR},," ${WRKSRC}/config.h
|
|
|
|
|
2002-10-28 08:40:41 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2001-02-21 18:31:31 -05:00
|
|
|
.include <bsd.port.mk>
|