check index before writing to result->chars While here, configure with --enable-ucs4 to unbreak python3 bindings (reported by Mike Burns, thanks!)
40 lines
908 B
Makefile
40 lines
908 B
Makefile
# $OpenBSD: Makefile,v 1.25 2018/08/19 07:54:04 ajacoutot Exp $
|
|
|
|
COMMENT= braille translator, back-translator and formatter
|
|
|
|
V= 3.6.0
|
|
DISTNAME= liblouis-${V}
|
|
REVISION= 0
|
|
|
|
SHARED_LIBS += louis 7.2 # 16.0
|
|
|
|
CATEGORIES= devel
|
|
|
|
HOMEPAGE= http://www.liblouis.org/
|
|
|
|
# GPLv3 - LGPLv3 - LGPLv2.1+
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += c
|
|
|
|
MASTER_SITES= https://github.com/liblouis/liblouis/releases/download/v${V}/
|
|
|
|
MODULES= lang/python
|
|
|
|
MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
|
|
MODPY_ADJ_FILES=tools/lou_harnessGenerator
|
|
|
|
BUILD_DEPENDS= devel/help2man
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= --with-packager="OpenBSD Ports" \
|
|
--enable-ucs4
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${WRKINST}/${MODPY_SITEPKG}/louis
|
|
${INSTALL_DATA} ${WRKSRC}/python/louis/__init__.py \
|
|
${WRKINST}/${MODPY_SITEPKG}/louis
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${WRKINST}${MODPY_SITEPKG}
|
|
|
|
.include <bsd.port.mk>
|