2020-03-22 19:36:17 +01:00
|
|
|
# $NetBSD: Makefile,v 1.7 2020/03/22 18:36:17 wiz Exp $
|
2014-02-12 01:57:25 +01:00
|
|
|
|
|
|
|
.include "../../devel/py-gobject3/Makefile.common"
|
|
|
|
|
2018-04-14 14:27:35 +02:00
|
|
|
PKGNAME= py-${DISTNAME:S/^py//:S/-/3-common-/}
|
2014-02-12 01:57:25 +01:00
|
|
|
|
|
|
|
COMMENT= Python version independent files for glib2 gobject bindings
|
|
|
|
|
2019-09-22 19:52:41 +02:00
|
|
|
SUBST_CLASSES+= configurepc
|
|
|
|
SUBST_STAGE.configurepc= do-configure
|
|
|
|
SUBST_MESSAGE.configurepc= Create .pc file
|
|
|
|
SUBST_FILES.configurepc= pygobject-3.0.pc.in
|
|
|
|
SUBST_SED.configurepc= -e 's,@prefix@,${PREFIX},'
|
|
|
|
SUBST_SED.configurepc+= -e 's,@exec_prefix@,$${prefix},'
|
|
|
|
SUBST_SED.configurepc+= -e 's,@includedir@,$${prefix}/include,'
|
|
|
|
SUBST_SED.configurepc+= -e 's,@datarootdir@,$${prefix}/share,'
|
|
|
|
SUBST_SED.configurepc+= -e 's,@datadir@,$${datarootdir},'
|
|
|
|
SUBST_SED.configurepc+= -e 's,@VERSION@,${PKGVERSION},'
|
2014-02-12 01:57:25 +01:00
|
|
|
|
|
|
|
INSTALLATION_DIRS+= include/pygobject-3.0 lib/pkgconfig
|
|
|
|
|
2019-09-22 19:52:41 +02:00
|
|
|
do-build:
|
|
|
|
|
2014-02-12 01:57:25 +01:00
|
|
|
do-install:
|
2019-09-22 19:52:41 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/gi/pygobject.h \
|
2014-02-12 01:57:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/include/pygobject-3.0/pygobject.h
|
2019-09-22 19:52:41 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/pygobject-3.0.pc.in \
|
2014-02-12 01:57:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/lib/pkgconfig/pygobject-3.0.pc
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|