2001-07-10 12:22:35 +00:00
|
|
|
# New ports collection makefile for: htmldoc
|
|
|
|
# Date created: 12 June 2001
|
|
|
|
# Whom: Glenn Trewitt <glenn@trewitt.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= htmldoc
|
2006-12-31 18:06:52 +00:00
|
|
|
PORTVERSION= 1.8.27
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 3
|
2001-07-10 12:22:35 +00:00
|
|
|
CATEGORIES= textproc
|
2006-12-31 18:06:52 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_EASYSW}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTVERSION}
|
2003-01-03 13:09:34 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
|
2001-07-10 12:22:35 +00:00
|
|
|
|
2007-03-14 14:40:32 +00:00
|
|
|
MAINTAINER= jose@diasfernandes.pt
|
2003-02-21 13:42:50 +00:00
|
|
|
COMMENT= Converts HTML to PDF and/or PostScript
|
2001-07-10 12:22:35 +00:00
|
|
|
|
2007-04-16 03:29:11 +00:00
|
|
|
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
|
|
|
|
png:${PORTSDIR}/graphics/png
|
|
|
|
|
2007-05-28 14:37:53 +00:00
|
|
|
OPTIONS= HTMLDOCGUI "Build GUI front-end" off
|
2007-04-16 03:29:11 +00:00
|
|
|
# .bz2 file is available since Aug 2, but we don't want to
|
|
|
|
# start mirroring _in addition to_ the .gz variant. When the
|
|
|
|
# vendor's release is updated again, we should switch to .bz2
|
|
|
|
#USE_BZIP2= yes
|
|
|
|
|
2001-07-10 12:22:35 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2007-04-16 03:29:11 +00:00
|
|
|
# Configure seems broken and ignores these ATM:
|
|
|
|
CONFIGURE_ARGS+=--enable-localjpeg --enable-localzlib --enable-localpng
|
2001-07-10 12:22:35 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2007-04-16 03:29:11 +00:00
|
|
|
EXCLUDE= png jpeg zlib htmldoc/md5* htmldoc/rc4* htmldoc/snprintf*
|
|
|
|
EXTRACT_AFTER_ARGS=| ${TAR} -xf - ${EXCLUDE:S,^,--exclude ,}
|
2001-07-10 12:22:35 +00:00
|
|
|
|
|
|
|
MAN1= htmldoc.1
|
2007-04-16 03:29:11 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's,@JPEG@ @ZLIB@ @PNG@ ,,' ${WRKSRC}/Makefile.in
|
|
|
|
${REINPLACE_CMD} -e 's|@LDFLAGS@|-L${LOCALBASE}/lib @LDFLAGS@|' \
|
|
|
|
-e 's|@JPEGINC@ @PNGINC@ @ZLIBINC@|-I${LOCALBASE}/include|' \
|
|
|
|
${WRKSRC}/Makedefs.in
|
|
|
|
# Remove redundant code:
|
|
|
|
${REINPLACE_CMD} -Ee 's,(md5|snprintf|rc4)\.o,,g' \
|
|
|
|
${WRKSRC}/htmldoc/Makefile
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|../png/libpng.a ../zlib/libz.a ../jpeg/libjpeg.a|-ljpeg -lpng -lz|' ${WRKSRC}/Makedefs
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2001-07-10 12:22:35 +00:00
|
|
|
|
2007-04-16 03:29:11 +00:00
|
|
|
.if !defined(WITHOUT_HTMLDOCGUI)
|
|
|
|
LIB_DEPENDS+= fltk:${PORTSDIR}/x11-toolkits/fltk
|
|
|
|
CONFIGURE_ARGS+=--enable-gui
|
2007-05-28 14:37:53 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gui
|
2007-04-16 03:29:11 +00:00
|
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|