blob: 585858f6840c040146185ca2cc1a9cbee603b571 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# $NetBSD: Makefile,v 1.18 2014/10/17 22:01:25 joerg Exp $
DISTNAME= mypaint-1.0.0
PKGREVISION= 6
CATEGORIES= graphics
MASTER_SITES= http://download.gna.org/mypaint/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://mypaint.intilinux.com/
COMMENT= Fast and easy open-source graphics application for digital painters
LICENSE= gnu-gpl-v2
BUILD_DEPENDS+= scons-[0-9]*:../../devel/scons
DEPENDS+= ${PYPKGPREFIX}-gtk2-[0-9]*:../../x11/py-gtk2
USE_LANGUAGES= c++
USE_TOOLS+= bash:run msgfmt pkg-config
PYTHON_VERSIONED_DEPENDENCIES= cairo
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # py-gtk2
FIND_PREFIX:= SCONSDIR=scons
.include "../../mk/find-prefix.mk"
SUBST_CLASSES+= locale-dir
SUBST_STAGE.locale-dir= pre-configure
SUBST_FILES.locale-dir= SConstruct
SUBST_SED.locale-dir= -e 's,share/locale,${PKGLOCALEDIR}/locale,'
USE_PKGLOCALEDIR= yes
SUBST_CLASSES+= python
SUBST_STAGE.python= pre-configure
SUBST_FILES.python= brushlib/generate.py \
SConstruct
SUBST_SED.python= -e 's,/usr/bin/env python,${PYTHONBIN},'
SUBST_SED.python+= -e 's,%PYTHONBIN%,${PYTHONBIN},'
REPLACE_BASH= brushes/label-brush-mypaint.sh
do-build:
cd ${WRKSRC} && cd ${BUILD_DIRS} && \
${SETENV} ${MAKE_ENV} \
${SCONSDIR}/bin/scons prefix=${PREFIX}
do-install:
cd ${WRKSRC} && cd ${INSTALL_DIRS} && \
${SETENV} ${MAKE_ENV} \
${SCONSDIR}/bin/scons prefix=${DESTDIR}${PREFIX} install
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../math/py-numpy/buildlink3.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../lang/python/pyversion.mk"
.include "../../devel/swig/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|