mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
cf118ccf87
Reported by: lwhsu
84 lines
3.0 KiB
Makefile
84 lines
3.0 KiB
Makefile
PORTNAME= liteide
|
|
DISTVERSIONPREFIX= x
|
|
DISTVERSION= 37.4
|
|
CATEGORIES= devel editors
|
|
|
|
MAINTAINER= dmgk@FreeBSD.org
|
|
COMMENT= Simple, open source, cross-platform Go IDE
|
|
|
|
LICENSE= LGPL21+
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.LGPL
|
|
|
|
USES= dos2unix gl go:modules,no_targets,run qmake qt:5
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= visualfc
|
|
|
|
GH_TUPLE= visualfc:gocode:cfcb188102ae:visualfc_gocode \
|
|
visualfc:gotools:eff8693b15f0:visualfc_gotools \
|
|
creack:pty:v1.1.9:creack_pty/vendor/github.com/creack/pty \
|
|
golang:mod:v0.4.1:golang_mod/vendor/golang.org/x/mod \
|
|
golang:sys:b64e53b001e4:golang_sys/vendor/golang.org/x/sys \
|
|
golang:tools:v0.1.0:golang_tools/vendor/golang.org/x/tools \
|
|
golang:xerrors:5ec99f83aff1:golang_xerrors/vendor/golang.org/x/xerrors \
|
|
pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
|
|
visualfc:fastmod:v1.3.7:visualfc_fastmod/vendor/github.com/visualfc/fastmod \
|
|
visualfc:goversion:v1.0.1:visualfc_goversion/vendor/github.com/visualfc/goversion \
|
|
yuin:goldmark:v1.2.1:yuin_goldmark/vendor/github.com/yuin/goldmark
|
|
|
|
|
|
USE_GL= gl
|
|
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
|
|
USE_QT= buildtools_build core gui network printsupport widgets xml
|
|
|
|
SUB_FILES= liteide
|
|
|
|
WRKSRC_SUBDIR= liteidex
|
|
|
|
PORTDOCS= README.md
|
|
|
|
OPTIONS_DEFINE= DEBUG DOCS
|
|
OPTIONS_SUB= yes
|
|
|
|
DEBUG_CONFIGURE_ENABLE= debug
|
|
|
|
ICON_SIZES= 16 24 32 48 64 128
|
|
|
|
DOS2UNIX_FILES= src/utils/dlvclient/dlvclient.cpp \
|
|
src/utils/dlvclient/dlvtypes.h
|
|
|
|
post-extract:
|
|
# Bundled, horribly outdated copy of QJsonDocument
|
|
rm -r ${WRKSRC}/src/3rdparty/qjsonrpc/src/json/
|
|
|
|
post-build:
|
|
${RLN} ${WRKSRC}/vendor ${WRKSRC_visualfc_gotools}
|
|
cd ${WRKSRC_visualfc_gotools} && \
|
|
${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install ${GO_BUILDFLAGS}
|
|
${RLN} ${WRKSRC}/vendor ${WRKSRC_visualfc_gocode}
|
|
${RLN} ${WRKSRC_visualfc_gotools} ${WRKSRC_visualfc_gocode}/vendor/github.com/visualfc/gotools
|
|
cd ${WRKSRC_visualfc_gocode} && \
|
|
${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install ${GO_BUILDFLAGS}
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/liteide
|
|
${MV} ${STAGEDIR}${PREFIX}/bin/liteide ${STAGEDIR}${PREFIX}/libexec/liteide
|
|
${INSTALL_SCRIPT} ${WRKDIR}/liteide ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/gocode ${STAGEDIR}${PREFIX}/libexec/liteide
|
|
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/gotools ${STAGEDIR}${PREFIX}/libexec/liteide
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
|
|
${INSTALL_DATA} ${WRKSRC}/liteide.desktop ${STAGEDIR}${PREFIX}/share/applications
|
|
(cd ${WRKSRC}/deploy && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
|
|
(cd ${WRKSRC}/os_deploy/freebsd && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
|
|
${RM} ${STAGEDIR}${PREFIX}/lib/liteide/*.a
|
|
.for sz in ${ICON_SIZES}
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${sz}x${sz}/apps
|
|
${INSTALL_DATA} ${WRKSRC}/src/liteapp/images/liteide${sz}.png \
|
|
${STAGEDIR}${PREFIX}/share/icons/hicolor/${sz}x${sz}/apps/liteide.png
|
|
.endfor
|
|
|
|
post-install-DOCS-on:
|
|
cd ${WRKSRC:H} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|