From Nam Nguyen, notes: - Move HOMEPAGE to https - Hosts MASTER_SITES as a tarball from a git checkout dated 2018/11/10 on my server. Does anyone have space available to host this distfile until upstream does a new release? My VPS is cheap and not so reliable, but if this is acceptable, I could host it. - Moves to qt5 - CONFIGURE_STYLE autoreconf because it is not a release tarball - Adds gettext,-tools to BUILD_DEPENDS for building translations - do-gen line taken from Makefile.template to run autohell Note: I omitted BUILD_DEPENDS like devel/libtool and ${MODGNU_AUTOHELL_DEPENDS} because they seem to be pulled in by the autoreconf CONFIGURE_STYLE. - pre-build calls en@quot.po-create and en@boldquot.po-create targets in the po/Makefile. By default msgfmt fails because it expects a header (the header is inserted by these targets) when converting the po (portable object) files into gmo (GNU machine object). Note: I omitted the canonical env -i ${MAKE_ENV} before ${MAKE_PROGRAM} because it strangely fails. It should not be a problem because the *.po for quot and boldquot get headers correctly inserted for processing by gettext's msgfmt. Also, quote and boldquot only change quotation marks and are not really translation files. - Upstream added my menu segfault fix, so this update brings it to this commit: https://git.savannah.nongnu.org/cgit/eliot.git/commit/?id=672a1b5001069b09c8e13c7bf1488e33164461f5 - Upstream also added patch-dic_csv_helper_cpp, so remove it. https://git.savannah.nongnu.org/cgit/eliot.git/commit/?id=5859299b48a8ca5756e1607139429edd4ac7ffa0 - Qt5 by default was recently merged to master, so --enable-qt now means Qt5. https://git.savannah.nongnu.org/cgit/eliot.git/commit/?id=b2cf69e3afa4fe1d63fb067848fa2d0723a307ff Tweaks by landry@, Diff form Nam Nguyen! Thanks
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.15 2020/07/03 14:27:29 rsadowski Exp $
|
|
|
|
V = 2.1pl20200624
|
|
COMMENT = scrabble game
|
|
DISTNAME = eliot-${V}
|
|
CATEGORIES = games
|
|
|
|
HOMEPAGE = https://nongnu.org/eliot/
|
|
|
|
MASTER_SITES = https://namtsui.com/source/
|
|
|
|
EXTRACT_ONLY = ${DISTNAME}${EXTRACT_SUFX}
|
|
DISTFILES += ${DISTNAME}${EXTRACT_SUFX}
|
|
DIST_SUBDIR = eliot
|
|
DICTS = danosc eliot-dic-cs eliot-dic-fr lex-fise rak sowpods06 twl06
|
|
.for dict in ${DICTS}
|
|
DISTFILES+= ${dict}.dawg:0
|
|
.endfor
|
|
MASTER_SITES0 = ${MASTER_SITE_SAVANNAH:=eliot/dict/}
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MODULES = x11/qt5
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${X11BASE}/lib -pthread -L${LOCALBASE}/lib -liconv"
|
|
USE_GMAKE = Yes
|
|
|
|
BUILD_DEPENDS = devel/boost \
|
|
devel/libexecinfo
|
|
RUN_DEPENDS = devel/desktop-file-utils
|
|
LIB_DEPENDS = textproc/arabica devel/libconfig
|
|
WANTLIB += Qt5Core Qt5Gui Qt5Network Qt5PrintSupport Qt5Widgets
|
|
WANTLIB += c m pthread ${COMPILER_LIBCXX}
|
|
WANTLIB += arabica config++ expat iconv intl curses
|
|
|
|
post-configure:
|
|
${SUBST_CMD} ${WRKSRC}/qt/main_window.cpp
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/eliot
|
|
.for dict in ${DICTS}
|
|
${INSTALL_DATA} ${FULLDISTDIR}/${dict}.dawg ${PREFIX}/share/eliot
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|