pkgsrc/textproc/py-enchant/Makefile
2016-06-08 17:43:20 +00:00

32 lines
870 B
Makefile

# $NetBSD: Makefile,v 1.13 2016/06/08 17:43:40 wiz Exp $
DISTNAME= pyenchant-1.6.6
PKGNAME= ${DISTNAME:S/py/${PYPKGPREFIX}-/}
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyenchant/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://pythonhosted.org/pyenchant/
COMMENT= Spellchecking library for Python
LICENSE= gnu-lgpl-v2.1
.include "../../lang/python/pyversion.mk"
DEPENDS+= enchant-[0-9]*:../../textproc/enchant
USE_LANGUAGES= # empty
.include "../../mk/bsd.prefs.mk"
DLEXT.dylib= dylib
DLEXT= ${DLEXT.${_OPSYS_SHLIB_TYPE}:Uso}
PYENCHANT_LIBRARY_PATH= ${LOCALBASE}/lib/libenchant.${DLEXT}
# fix the path of libenchant with patch-ab.
SUBST_CLASSES+= dlpath
SUBST_STAGE.dlpath= pre-configure
SUBST_FILES.dlpath= enchant/_enchant.py
SUBST_VARS.dlpath= PYENCHANT_LIBRARY_PATH
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"