if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.10 2021/02/23 19:39:26 sthen Exp $
|
|
|
|
COMMENT = multiplatform vector graphics editor
|
|
|
|
VERSION = 2.0rc3
|
|
DISTNAME = sk1-${VERSION}
|
|
REVISION = 5
|
|
|
|
CATEGORIES = graphics
|
|
|
|
HOMEPAGE = https://sk1project.net/
|
|
|
|
# GPLv3+
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MASTER_SITES = https://downloads.sk1project.net/sk1/${VERSION}/
|
|
|
|
MODULES = lang/python
|
|
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
|
|
MODPY_SETUP = setup-sk1.py
|
|
|
|
WANTLIB += MagickCore-6.Q16 MagickWand-6.Q16 cairo glib-2.0 gobject-2.0
|
|
WANTLIB += harfbuzz intl lcms2 pango-1.0 pangocairo-1.0 pthread
|
|
WANTLIB += ${MODPY_WANTLIB}
|
|
|
|
BUILD_DEPENDS += graphics/py2-cairo
|
|
|
|
LIB_DEPENDS += devel/pango \
|
|
graphics/ImageMagick \
|
|
graphics/cairo \
|
|
graphics/lcms2
|
|
|
|
RUN_DEPENDS += devel/desktop-file-utils \
|
|
x11/gtk+3,-guic \
|
|
graphics/py2-Pillow \
|
|
graphics/py2-cairo \
|
|
print/py-reportlab \
|
|
x11/py-wxPython \
|
|
x11/wxWidgets
|
|
|
|
# no more python2 support in py-cups, sk1 should move to python3
|
|
#RUN_DEPENDS += print/py-cups
|
|
|
|
MAKE_ENV = APP_INSTALL_PATH=${MODPY_SITEPKG}
|
|
|
|
pre-build:
|
|
${SUBST_CMD} ${WRKSRC}/setup-sk1.py
|
|
${SUBST_CMD} ${WRKSRC}/setup.cfg_sk1
|
|
${SUBST_CMD} ${WRKSRC}/src/uc2/utils/fs.py
|
|
|
|
.include <bsd.port.mk>
|