diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2015-02-19 20:12:13 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2015-02-19 20:12:13 +0000 |
commit | 48a7690b0dc32e1fa32665e7bb47cbe8bdce5221 (patch) | |
tree | 3f149591fedbf3477fe61d753596b663811a723c /www/bluefish/Makefile | |
parent | - Update to 2.2.0 (diff) |
Update to 2.2.7, and use OPTIONS helpers.
Instead of patching the Makefile to only install a file if DOCS is enabled,
install it unconditionally and let pkg(8) sort it out. Also, the file in
question is an example file, not a documentation file, so control it with
EXAMPLES, not DOCS.
Notes
Notes:
svn path=/head/; revision=379386
Diffstat (limited to 'www/bluefish/Makefile')
-rw-r--r-- | www/bluefish/Makefile | 53 |
1 files changed, 15 insertions, 38 deletions
diff --git a/www/bluefish/Makefile b/www/bluefish/Makefile index c4ce1caba89b..2f238242c9d1 100644 --- a/www/bluefish/Makefile +++ b/www/bluefish/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= bluefish -PORTVERSION= 2.2.6 -PORTREVISION= 1 +PORTVERSION= 2.2.7 CATEGORIES= www editors MASTER_SITES= http://www.bennewitz.com/bluefish/stable/source/ \ http://bluefish.mrball.net/stable/source/ \ @@ -31,53 +30,31 @@ CONFIGURE_ARGS= --with-gtk2 \ --with-freedesktop_org-menu=${PREFIX}/share/applications \ --with-freedesktop_org-mime=${PREFIX}/share/mime \ --with-icon-path=${PREFIX}/share/pixmaps +INSTALL_TARGET= install-strip -OPTIONS_DEFINE= DEBUG NLS TIDY WEBLINT DOCS +OPTIONS_DEFINE= DEBUG NLS TIDY WEBLINT EXAMPLES DEBUG_DESC= Enable debugging output TIDY_DESC= Include Tidy HTML cleanup program WEBLINT_DESC= Include Weblint syntax and style checker -OPTIONS_DEFAULT= WEBLINT +OPTIONS_DEFAULT=WEBLINT -.include <bsd.port.options.mk> +OPTIONS_SUB= yes -.if ${PORT_OPTIONS:MDEBUG} -CONFIGURE_ARGS+= --with-debugging-output -.endif +NLS_USES= gettext +NLS_CONFIGURE_OFF= --disable-nls -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+= --disable-nls -PLIST_SUB+= NLS="@comment " -.endif +DEBUG_CONFIGURE_ON= --with-debugging-output +LIBGNOME_USE= GNOME=libgnomeui +TIDY_RUN_DEPENDS= tidy4:${PORTSDIR}/www/tidy +WEBLINT_RUN_DEPENDS= weblint:${PORTSDIR}/www/weblint -.if ${PORT_OPTIONS:MTIDY} -RUN_DEPENDS+= tidy4:${PORTSDIR}/www/tidy -.endif - -.if ${PORT_OPTIONS:MWEBLINT} -RUN_DEPENDS+= weblint:${PORTSDIR}/www/weblint -.endif - -.include <bsd.port.pre.mk> - -.if ${HAVE_GNOME:Mlibgnomeui}!="" -USE_GNOME+= libgnomeui -.endif +post-patch: + @${REINPLACE_CMD} -e '/^bflangsampledir = /s|$$(docdir)/bflang|${EXAMPLESDIR}|' \ + ${WRKSRC}/data/bflang/Makefile.in pre-install: @${MKDIR} ${STAGEDIR}${PREFIX}/share/mime -post-install: -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${STAGEDIR}${DOCSDIR}/bflang - ${INSTALL_DATA} ${WRKSRC}/data/bflang/sample.bflang2 \ - ${STAGEDIR}${DOCSDIR}/bflang -.endif - (cd ${STAGEDIR}${PREFIX}/lib/bluefish/ && \ - ${STRIP_CMD} *.so) - -.include <bsd.port.post.mk> +.include <bsd.port.mk> |