1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-08 02:15:08 +00:00
freebsd-ports/graphics/mypaint/Makefile
Jan Beich 75ee8c50aa Build using lang/gcc* to avoid runtime issues with old -lgcc_s or Clang
Absence of RPATH leads to mypaint loading old libgcc_s.so.1 from base
first which later breaks |import numpy| as libgfortran wants newer version.
On 10.0+ the issue is masked by Clang failing to instantiate some templates.

PR:		188382
PR:		193429
Differential Revision:	https://reviews.freebsd.org/D1616
Approved by:	bapt (mentor)
2015-01-28 13:39:41 +00:00

48 lines
1.3 KiB
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= mypaint
PORTVERSION= 1.1.0
PORTREVISION= 5
CATEGORIES= graphics
MASTER_SITES= http://download.gna.org/mypaint/ \
http://mirror.amdmi3.ru/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast painting/scribbling program
RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}cairo>0:${PORTSDIR}/graphics/py-cairo \
${PYTHON_PKGNAMEPREFIX}protobuf>0:${PORTSDIR}/devel/py-protobuf
LIB_DEPENDS= libjson-c.so:${PORTSDIR}/devel/json-c \
liblcms2.so:${PORTSDIR}/graphics/lcms2
BUILD_DEPENDS:= ${RUN_DEPENDS} \
swig:${PORTSDIR}/devel/swig13 \
protoc:${PORTSDIR}/devel/protobuf
USE_GNOME= glib20 pygtk2
MAKE_ARGS= prefix="${PREFIX}"
# XXX gcc-c++11-lib to fix runtime issues with old -lgcc_s and Clang
USES= compiler:gcc-c++11-lib gettext pkgconfig scons tar:bzip2 python
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
.include <bsd.port.mk>