1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/www/midori/Makefile
Koop Mast 839d53014a Update to 0.3.6.
PR:		ports/156722 (update to 0.3.5)
Submitted by:	Olivier Duchateau <duchateau.olivier@gmail.com>
2011-05-16 17:57:25 +00:00

93 lines
2.4 KiB
Makefile

# New ports collection makefile for: midori
# Date created: 2007-10-21
# Whom: Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
# $MCom: ports/www/midori/Makefile,v 1.21 2010/04/05 21:56:26 kwm Exp $
#
PORTNAME= midori
PORTVERSION= 0.3.6
CATEGORIES= www xfce
MASTER_SITES= ${MASTER_SITE_XFCE}
MASTER_SITE_SUBDIR= src/apps/${PORTNAME}/${PORTVERSION:R}
DIST_SUBDIR= xfce4
MAINTAINER= kwm@FreeBSD.org
COMMENT= Lightweight web browser using WebKit browser engine
LIB_DEPENDS= webkit-1.0.13:${PORTSDIR}/www/webkit-gtk2 \
sqlite3.8:${PORTSDIR}/databases/sqlite3 \
notify.1:${PORTSDIR}/devel/libnotify
BUILD_DEPENDS= rsvg-convert:${PORTSDIR}/graphics/librsvg2 \
valac:${PORTSDIR}/lang/vala
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+=--disable-libidn \
--enable-libnotify \
--enable-addons \
--enable-docs \
--jobs=${MAKE_JOBS_NUMBER}
MAKE_JOBS_SAFE= yes
HAS_CONFIGURE= yes
USE_PYTHON_BUILD= yes
USE_BZIP2= yes
USE_GNOME= glib20 gtk20 intltool libxml2 pkgconfig desktopfileutils
USE_XORG= xscrnsaver
INSTALLS_ICONS= yes
USE_LDCONFIG= yes
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
.endif
PLIST_SUB= VERSION="${PORTVERSION:R}"
OPTIONS= NLS "Enable Native Language support" on \
APIDOCS "Build api documentation" off \
UNIQUE "Enable single instance support" off
.include <bsd.port.pre.mk>
# WAF needs that
CONFIGURE_ENV+= CC="${CC}"
.if !defined(WITHOUT_NLS)
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if defined(WITH_APIDOCS)
BUILD_DEPENDS+= gtkdoc-scan:${PORTSDIR}/textproc/gtk-doc
CONFIGURE_ARGS+=--enable-apidocs
PLIST_SUB+= APIDOCS=""
.else
CONFIGURE_ARGS+=--disable-apidocs
PLIST_SUB+= APIDOCS="@comment "
.endif
.if defined(WITH_UNIQUE)
LIB_DEPENDS+= unique-1.0.2:${PORTSDIR}/x11-toolkits/unique
CONFIGURE_ARGS+=--enable-unique
.else
CONFIGURE_ARGS+=--disable-unique
.endif
post-install:
@-update-desktop-database
.if defined(WITH_APIDOCS)
${MKDIR} ${DOCSDIR}/api/katze/html
${MKDIR} ${DOCSDIR}/api/midori/html
(cd ${WRKSRC}/_build_/docs/api/katze/html && ${COPYTREE_SHARE} \* ${DOCSDIR}/api/katze/html)
(cd ${WRKSRC}/_build_/docs/api/midori/html && ${COPYTREE_SHARE} \* ${DOCSDIR}/api/midori/html)
.endif
.include <bsd.port.post.mk>