freebsd-ports/graphics/mypaint/Makefile

48 lines
1.3 KiB
Makefile
Raw Normal View History

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= mypaint
PORTVERSION= 1.1.0
PORTREVISION= 3
CATEGORIES= graphics
2009-06-17 01:45:00 +02:00
MASTER_SITES= http://download.gna.org/mypaint/ \
http://mirror.amdmi3.ru/distfiles/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Fast painting/scribbling program
2010-02-01 16:42:16 +01:00
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy \
${PYTHON_SITELIBDIR}/cairo:${PORTSDIR}/graphics/py-cairo \
2010-02-01 16:42:16 +01:00
${PYTHON_PKGNAMEPREFIX}protobuf>0:${PORTSDIR}/devel/py-protobuf
LIB_DEPENDS= libjson.so:${PORTSDIR}/devel/json-c \
liblcms2.so:${PORTSDIR}/graphics/lcms2
2010-02-01 16:42:16 +01:00
BUILD_DEPENDS:= ${RUN_DEPENDS} \
swig:${PORTSDIR}/devel/swig13 \
protoc:${PORTSDIR}/devel/protobuf
2009-06-17 01:45:00 +02:00
USE_GNOME= glib20 pygtk2
USE_PYTHON= yes
MAKE_ARGS= prefix="${PREFIX}"
USES= gettext pkgconfig scons tar:bzip2
2011-12-17 22:21:41 +01:00
INSTALLS_ICONS= yes
SUB_FILES= pkg-install
post-patch:
${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
${WRKSRC}/brushlib/operationqueue.c \
${WRKSRC}/brushlib/fifo.c
@${REINPLACE_CMD} 's|-O3||g; s|-g||g' \
${WRKSRC}/SConstruct
pre-install:
@${RM} -rf ${WRKSRC}/sandbox 2>/dev/null || true
@cd ${WRKSRC}; ${MAKE_CMD} ${MAKE_ARGS} --install-sandbox=pre-stage
do-install:
.for d in . po brushlib brushlib/po
@cd ${WRKSRC}/${d}/pre-stage; ${PAX} -rw . ${STAGEDIR}
.endfor
2010-02-01 16:42:16 +01:00
.include <bsd.port.mk>