Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2014 13:08:56 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r355508 - head/graphics/mypaint
Message-ID:  <201405271308.s4RD8utn001522@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue May 27 13:08:56 2014
New Revision: 355508
URL: http://svnweb.freebsd.org/changeset/ports/355508
QAT: https://qat.redports.org/buildarchive/r355508/

Log:
  If people find autotools/cmake being bad build system, they should try scons, I'm pretty sure they will end up loving autotools/cmake

Modified:
  head/graphics/mypaint/Makefile

Modified: head/graphics/mypaint/Makefile
==============================================================================
--- head/graphics/mypaint/Makefile	Tue May 27 12:48:15 2014	(r355507)
+++ head/graphics/mypaint/Makefile	Tue May 27 13:08:56 2014	(r355508)
@@ -14,23 +14,20 @@ COMMENT=	Fast painting/scribbling progra
 RUN_DEPENDS=	${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy \
 		${PYTHON_SITELIBDIR}/cairo:${PORTSDIR}/graphics/py-cairo \
 		${PYTHON_PKGNAMEPREFIX}protobuf>0:${PORTSDIR}/devel/py-protobuf
-LIB_DEPENDS=	json:${PORTSDIR}/devel/json-c \
-		lcms2:${PORTSDIR}/graphics/lcms2
+LIB_DEPENDS=	libjson.so:${PORTSDIR}/devel/json-c \
+		liblcms2.so:${PORTSDIR}/graphics/lcms2
 BUILD_DEPENDS:=	${RUN_DEPENDS} \
 		swig:${PORTSDIR}/devel/swig13 \
 		protoc:${PORTSDIR}/devel/protobuf
 
-USE_BZIP2=	yes
 USE_GNOME=	glib20 pygtk2
 USE_PYTHON=	yes
-USE_SCONS=	yes
-SCONS_ARGS=	prefix="${PREFIX}"
-USES=		gettext pkgconfig
+MAKE_ARGS=	prefix="${PREFIX}"
+USES=		gettext pkgconfig scons tar:bzip2
 INSTALLS_ICONS=	yes
 
 SUB_FILES=	pkg-install
 
-NO_STAGE=	yes
 post-patch:
 	${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
 		${WRKSRC}/brushlib/operationqueue.c \
@@ -38,7 +35,13 @@ post-patch:
 	@${REINPLACE_CMD} 's|-O3||g; s|-g||g' \
 		${WRKSRC}/SConstruct
 
-post-install:
-	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405271308.s4RD8utn001522>