1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/www/dillo2/Makefile
Dmitry Marakasov 20224f09ce - Update dillo2 port to 2.0 (port by [1]), connect to build
PR:		128139 [1], 128390 [2]
Submitted by:	bf <bf2006a at yahoo dot com> [1], Thomas-Martin Seck <tmseck at netcologne dot de> [2]
Discussed with:	Thomas-Martin Seck <tmseck at netcologne dot de> (www/dillo maintainer)
2008-11-24 14:48:38 +00:00

90 lines
2.2 KiB
Makefile

# New ports collection makefile for: dillo
# Date created: 28 August 2008
# Whom: bf <bf2006a@yahoo.com>
#
# $FreeBSD$
PORTNAME= dillo
PORTVERSION= 2.0
CATEGORIES= www ipv6
MASTER_SITES= http://www.dillo.org/download/
MAINTAINER= bf2006a@yahoo.com
COMMENT= A fast, small graphical Web browser built upon fltk2
BUILD_DEPENDS= ${LOCALBASE}/lib/libfltk2.a:${PORTSDIR}/x11-toolkits/fltk2
RUN_DEPENDS= ${LOCALBASE}/lib/libfltk2.a:${PORTSDIR}/x11-toolkits/fltk2 \
wget:${PORTSDIR}/ftp/wget
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
PORTDOCS= *
CONFIGURE_ARGS= --libdir=${PREFIX}/libexec
CONFLICTS= dillo-i18n-[0-9]* \
dillo-0*
OPTIONS= COOKIES "Enable cookies" On \
DEBUG "Enable profiling and extra logging" Off \
IPV6 "Enable ipv6" On \
SSL "Enable (experimental) https support" On \
THREADED_DNS "Enable re-entrant resolver library" On
.include <bsd.port.pre.mk>
.ifdef(WITH_COOKIES)
CONFIGURE_ARGS+= --enable-cookies
.else
CONFIGURE_ARGS+= --disable-cookies
.endif
.ifdef(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-gprof --enable-rtfl
.else
CONFIGURE_ARGS+= --disable-gprof --disable-rtfl
.endif
.ifdef(WITH_IPV6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.ifdef(WITH_SSL)
CONFIGURE_ARGS+= --enable-ssl
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
.else
CONFIGURE_ARGS+= --disable-ssl
.endif
.ifdef(WITH_THREADED_DNS)
CONFIGURE_ARGS+= --enable-threaded-dns
CFLAGS+= ${PTHREAD_CFLAGS}
.else
CONFIGURE_ARGS+= --disable-threaded-dns
.endif
post-patch:
.ifdef(WITH_SSL)
${REINPLACE_CMD} -e '/^#undef ENABLE_SSL/d' ${WRKSRC}/dpi/https.c
.endif
@${MV} ${WRKSRC}/dillorc ${WRKSRC}/dillorc.dist
@${REINPLACE_CMD} -e "s|dillorc|dillorc.dist|g" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|dpidrc|dpidrc.dist|g" ${WRKSRC}/dpid/Makefile.in
post-install:
.if !exists(${PREFIX}/etc/dillorc)
${INSTALL_DATA} ${PREFIX}/etc/dillorc.dist ${PREFIX}/etc/dillorc
.endif
.if !exists(${PREFIX}/etc/dpidrc)
${INSTALL_DATA} ${PREFIX}/etc/dpidrc.dist ${PREFIX}/etc/dpidrc
.endif
.ifndef(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/doc/* ${DOCSDIR}
.endif
.include <bsd.port.post.mk>