mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
- Allow to build `textproc/highlight' with optional GUI
- Depend the particular Boost header file while I'm here
This commit is contained in:
parent
6b408353b4
commit
5d88e7c9a9
@ -12,7 +12,7 @@ COMMENT= Customizable syntax highlighter
|
|||||||
LICENSE= GPLv3
|
LICENSE= GPLv3
|
||||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||||
|
|
||||||
BUILD_DEPENDS= boost-libs>0:devel/boost-libs
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/scoped_array.hpp:devel/boost-libs
|
||||||
|
|
||||||
USES= compiler:c++11-lib gmake lua pkgconfig tar:bzip2
|
USES= compiler:c++11-lib gmake lua pkgconfig tar:bzip2
|
||||||
USE_CXXSTD= c++11
|
USE_CXXSTD= c++11
|
||||||
@ -20,10 +20,23 @@ MAKEFILE= makefile
|
|||||||
MAKE_ARGS= CXX="${CXX}" \
|
MAKE_ARGS= CXX="${CXX}" \
|
||||||
CFLAGS="${CXXFLAGS} ${CPPFLAGS} -DHAVE_DECL_GETOPT" \
|
CFLAGS="${CXXFLAGS} ${CPPFLAGS} -DHAVE_DECL_GETOPT" \
|
||||||
LDFLAGS="${LDFLAGS}"
|
LDFLAGS="${LDFLAGS}"
|
||||||
|
ALL_TARGET= all # cli
|
||||||
|
INSTALL_TARGET= install
|
||||||
|
|
||||||
PORTDOCS= *
|
PORTDOCS= *
|
||||||
|
|
||||||
OPTIONS_DEFINE= DOCS
|
OPTIONS_DEFINE= DOCS GUI
|
||||||
|
OPTIONS_SUB= yes
|
||||||
|
|
||||||
|
GUI_USES= qt:5
|
||||||
|
GUI_USE= QT=buildtools_build,qmake_build,core,gui,widgets
|
||||||
|
GUI_ALL_TARGET= gui
|
||||||
|
GUI_INSTALL_TARGET= install-gui
|
||||||
|
|
||||||
|
post-patch:
|
||||||
|
@${REINPLACE_CMD} -e '/PKGCONFIG/s,lua,&-${LUA_VER}, ; \
|
||||||
|
/LIBS/s,-llua,&-${LUA_VER},' \
|
||||||
|
${WRKSRC}/src/gui-qt/highlight.pro
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.for cfg in filetypes lsp
|
.for cfg in filetypes lsp
|
||||||
|
@ -1,8 +1,19 @@
|
|||||||
bin/highlight
|
bin/highlight
|
||||||
|
%%GUI%%bin/highlight-gui
|
||||||
@sample %%ETCDIR%%/filetypes.conf.sample
|
@sample %%ETCDIR%%/filetypes.conf.sample
|
||||||
@sample %%ETCDIR%%/lsp.conf.sample
|
@sample %%ETCDIR%%/lsp.conf.sample
|
||||||
man/man1/highlight.1.gz
|
man/man1/highlight.1.gz
|
||||||
man/man5/filetypes.conf.5.gz
|
man/man5/filetypes.conf.5.gz
|
||||||
|
%%GUI%%share/applications/highlight.desktop
|
||||||
|
%%GUI%%share/icons/hicolor/256x256/apps/highlight.png
|
||||||
|
%%GUI%%%%DATADIR%%/gui_files/ext/fileopenfilter.conf
|
||||||
|
%%GUI%%%%DATADIR%%/gui_files/l10n/highlight_bg_BG.qm
|
||||||
|
%%GUI%%%%DATADIR%%/gui_files/l10n/highlight_cs_CZ.qm
|
||||||
|
%%GUI%%%%DATADIR%%/gui_files/l10n/highlight_de_DE.qm
|
||||||
|
%%GUI%%%%DATADIR%%/gui_files/l10n/highlight_es_ES.qm
|
||||||
|
%%GUI%%%%DATADIR%%/gui_files/l10n/highlight_fr_FR.qm
|
||||||
|
%%GUI%%%%DATADIR%%/gui_files/l10n/highlight_it_IT.qm
|
||||||
|
%%GUI%%%%DATADIR%%/gui_files/l10n/highlight_zh_CN.qm
|
||||||
%%DATADIR%%/langDefs/abap.lang
|
%%DATADIR%%/langDefs/abap.lang
|
||||||
%%DATADIR%%/langDefs/abc.lang
|
%%DATADIR%%/langDefs/abc.lang
|
||||||
%%DATADIR%%/langDefs/abnf.lang
|
%%DATADIR%%/langDefs/abnf.lang
|
||||||
|
Loading…
Reference in New Issue
Block a user