[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / inputmethod / ibus-array

File: [cvs.NetBSD.org] / pkgsrc / inputmethod / ibus-array / Makefile (download)

Revision 1.29, Sat May 11 06:35:31 2019 UTC (3 months, 2 weeks ago) by mef
Branch: MAIN
Changes since 1.28: +12 -2 lines

(inputmethod/ibus-array) Supporting PLIST variation for py 27 36 37

# $NetBSD: Makefile,v 1.29 2019/05/11 06:35:31 mef Exp $

DISTNAME=	ibus-array-0.1.0
PKGREVISION=	12
CATEGORIES=	inputmethod chinese
MASTER_SITES=	http://ibus-array.googlecode.com/svn/tarballs/
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://code.google.com/archive/p/ibus-array/
COMMENT=	Array 30 Input Method for iBus
LICENSE=	gnu-gpl-v3

DEPENDS+=	${PYPKGPREFIX}-gobject3-[0-9]*:../../devel/py-gobject3

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
USE_PKGLOCALEDIR=	yes
USE_TOOLS+=	gmake pkg-config automake autoconf autopoint msgfmt msgmerge

WRKSRC=		${WRKDIR}

.include "../../lang/python/application.mk"

PLIST_SUBST+=	PYPKGPREFIX_NO=${PYPKGPREFIX:S/py//}

.if !empty(PYPKGPREFIX:Mpy27)
PLIST_SRC=  ${PKGDIR}/PLIST ${PKGDIR}/PLIST.py27
.else
PLIST_SRC=  ${PKGDIR}/PLIST ${PKGDIR}/PLIST.py3
.endif

pre-configure:
	${RUN}cd ${WRKSRC};${PKGSRC_SETENV} ${CONFIGURE_ENV} ./autogen.sh

SUBST_CLASSES+=		epython
SUBST_STAGE.epython=	pre-configure
SUBST_FILES.epython=	setup/ibus-setup-array.in
SUBST_SED.epython=	-e 's;exec python;exec ${PYTHONBIN};g'

.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../inputmethod/ibus/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"