diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2015-10-25 11:53:24 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2015-10-25 11:53:24 +0000 |
commit | 9f4d34a06d8109d98c5b5e813e7e85b8366ecd92 (patch) | |
tree | baf612892056c4477cb0664bec390edabdf60339 /www | |
parent | f658b2f81c2563350c1f2f560433209c56db4be2 (diff) | |
download | pkgsrc-9f4d34a06d8109d98c5b5e813e7e85b8366ecd92.tar.gz |
Add a pkg option for building with gtk3 support.
Diffstat (limited to 'www')
-rw-r--r-- | www/midori/Makefile | 6 | ||||
-rw-r--r-- | www/midori/options.mk | 22 |
2 files changed, 25 insertions, 3 deletions
diff --git a/www/midori/Makefile b/www/midori/Makefile index 18ea26b18cf..bd3ad6fd75d 100644 --- a/www/midori/Makefile +++ b/www/midori/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.83 2015/10/10 01:58:22 ryoon Exp $ +# $NetBSD: Makefile,v 1.84 2015/10/25 11:53:24 jmcneill Exp $ DISTNAME= midori_0.5.9_all_ PKGNAME= ${DISTNAME:S/_all_//:S/_/-/} @@ -45,6 +45,8 @@ CONFIGURE_ENV= VALAC=${VALAC} pre-configure: ${RM} ${WRKSRC}/extensions/history-list.vala.orig +.include "options.mk" + .include "../../databases/sqlite3/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk" .include "../../devel/libidn/buildlink3.mk" @@ -54,9 +56,7 @@ pre-configure: #.include "../../security/gnome-keyring/buildlink3.mk" .include "../../sysutils/desktop-file-utils/desktopdb.mk" .include "../../textproc/libxml2/buildlink3.mk" -.include "../../www/webkit24-gtk/buildlink3.mk" .include "../../sysutils/libnotify/buildlink3.mk" -.include "../../x11/gtk2/buildlink3.mk" BUILDLINK_DEPMETHOD.vala= build .include "../../lang/vala/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/www/midori/options.mk b/www/midori/options.mk new file mode 100644 index 00000000000..d5775dae113 --- /dev/null +++ b/www/midori/options.mk @@ -0,0 +1,22 @@ +# $NetBSD: options.mk,v 1.1 2015/10/25 11:53:24 jmcneill Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.midori + +PKG_OPTIONS_REQUIRED_GROUPS= gtk +PKG_OPTIONS_GROUP.gtk= gtk2 gtk3 + +PKG_SUGGESTED_OPTIONS= gtk2 + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mgtk2) +.include "../../www/webkit24-gtk/buildlink3.mk" +.include "../../x11/gtk2/buildlink3.mk" +.endif + +.if !empty(PKG_OPTIONS:Mgtk3) +CONFIGURE_ARGS+= --enable-gtk3 +CMAKE_ARGS+= -DUSE_GTK3=1 +.include "../../www/webkit24-gtk3/buildlink3.mk" +.include "../../x11/gtk3/buildlink3.mk" +.endif |