View | Details | Raw Unified | Return to bug 184868 | Differences between
and this patch

Collapse All | Expand All

(-)graphics/gsculpt/Makefile (-11 / +18 lines)
Lines 3-15 Link Here
3
3
4
PORTNAME=	gsculpt
4
PORTNAME=	gsculpt
5
PORTVERSION=	0.99.47
5
PORTVERSION=	0.99.47
6
PORTREVISION=	3
6
PORTREVISION=	4
7
CATEGORIES=	graphics
7
CATEGORIES=	graphics
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${DISTNAME:S,-src,,}
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${DISTNAME:S,-src,,}
9
DISTNAME=	gSculpt-${PORTVERSION}-alpha-src
9
DISTNAME=	gSculpt-${PORTVERSION}-alpha-src
10
10
11
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
12
COMMENT=	An Opensource 3D modelling application
12
COMMENT=	Opensource 3D modelling application
13
13
14
LICENSE=	GPLv2
14
LICENSE=	GPLv2
15
15
Lines 19-36 Link Here
19
19
20
WRKSRC=		${WRKDIR}/${DISTNAME:S,-src,,}
20
WRKSRC=		${WRKDIR}/${DISTNAME:S,-src,,}
21
21
22
USES=		pkgconfig
22
USES=		pkgconfig scons
23
USE_GNOME=	pygtk2
23
USE_GNOME=	pygtk2
24
USE_GL=		glu
24
USE_GL=		glu
25
USE_XORG=	x11
25
USE_XORG=	x11
26
USE_PYTHON=	2.4+
26
USE_PYTHON=	2
27
USE_SCONS=	yes
28
SCONS_BUILDENV=	${SCONS_ENV}
29
USE_LDCONFIG=	${PREFIX}/lib/gSculpt
27
USE_LDCONFIG=	${PREFIX}/lib/gSculpt
30
28
31
DATADIR=	${PREFIX}/share/gSculpt
29
DATADIR=	${PREFIX}/share/gSculpt
32
30
33
NO_STAGE=	yes
31
DESKTOP_ENTRIES="gSculpt" "" \
32
		"${DATADIR}/gsimages/gSculpt_Glass_Master_by_Gary_Rose.png" \
33
		"${PORTNAME}" "Graphics;GTK;" ""
34
34
.include <bsd.port.pre.mk>
35
.include <bsd.port.pre.mk>
35
36
36
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
37
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
Lines 43-49 Link Here
43
44
44
post-patch:
45
post-patch:
45
	@${REINPLACE_CMD} -e \
46
	@${REINPLACE_CMD} -e \
46
		"s| gsculpt.py| ${PYTHONPREFIX_SITELIBDIR}/gSculpt/gsculpt.py|" \
47
		"s|:[$$]PWD |:${PREFIX}/lib/gSculpt | ; \
48
		 s| python | ${PYTHON_CMD} | ; \
49
		 s| gsculpt.py | ${PREFIX}/libexec/gSculpt/gsculpt.py |" \
47
		${WRKSRC}/gsculpt
50
		${WRKSRC}/gsculpt
48
	@${REINPLACE_CMD} -e \
51
	@${REINPLACE_CMD} -e \
49
		"s|'-Werror'|''| ; \
52
		"s|'-Werror'|''| ; \
Lines 53-63 Link Here
53
		 /^cppLibs/s|BackgroundModel|BackgroundMesh|" \
56
		 /^cppLibs/s|BackgroundModel|BackgroundMesh|" \
54
		${WRKSRC}/SConstruct
57
		${WRKSRC}/SConstruct
55
	@${REINPLACE_CMD} -e \
58
	@${REINPLACE_CMD} -e \
56
		"/^prefix/s|=.*|= '${PREFIX}'| ; \
59
		"/^prefix/s|=.*|= '${STAGEDIR}${PREFIX}'| ; \
57
		 /^gSculptStartDir/s|=.*|= os.path.join( pysitelibdir )|" \
60
		 /^gSculptStartDir/s|'bin'|'libexec'| ; \
61
		 /customisedStart/s|^|#|" \
58
		${WRKSRC}/SConstruct-install
62
		${WRKSRC}/SConstruct-install
59
63
60
do-install:
64
do-install:
61
	@cd ${WRKSRC} && ${SCONS_BIN} -f SConstruct-install ${PREFIX}
65
	(cd ${WRKSRC} && ${INSTALL_SCRIPT} gsculpt ${STAGEDIR}${PREFIX}/bin)
66
	@(cd ${WRKSRC} && ${SCONS} -f SConstruct-install install)
67
	@(cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -m compileall \
68
		-d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})
62
69
63
.include <bsd.port.post.mk>
70
.include <bsd.port.post.mk>
(-)graphics/gsculpt/files/patch-cpp__Util__Pool.h (+10 lines)
Line 0 Link Here
1
--- cpp/Util/Pool.h.orig
2
+++ cpp/Util/Pool.h
3
@@ -8,6 +8,7 @@
4
 #ifndef POOL_H__
5
 #define POOL_H__
6
 
7
+#include <cstdlib>
8
 #include <memory.h>
9
 
10
 #include <Util/Array.h>
(-)graphics/gsculpt/pkg-plist (-1 / +2 lines)
Lines 485-491 Link Here
485
%%PYTHON_SITELIBDIR%%/Britefury/gSculptConfig/__init__.pyc
485
%%PYTHON_SITELIBDIR%%/Britefury/gSculptConfig/__init__.pyc
486
%%PYTHON_SITELIBDIR%%/Britefury/gSculptConfig/gSculptConfig.pyc
486
%%PYTHON_SITELIBDIR%%/Britefury/gSculptConfig/gSculptConfig.pyc
487
%%PYTHON_SITELIBDIR%%/Britefury/gSculptConfig/gSculptUserConfig.pyc
487
%%PYTHON_SITELIBDIR%%/Britefury/gSculptConfig/gSculptUserConfig.pyc
488
%%PYTHON_SITELIBDIR%%/gsculpt.py
488
libexec/gSculpt/gsculpt.py
489
%%DATADIR%%/gsimages/background_images.png
489
%%DATADIR%%/gsimages/background_images.png
490
%%DATADIR%%/gsimages/background_models.png
490
%%DATADIR%%/gsimages/background_models.png
491
%%DATADIR%%/gsimages/draw_backg_transparent.png
491
%%DATADIR%%/gsimages/draw_backg_transparent.png
Lines 536-541 Link Here
536
%%DATADIR%%/gsimages/vp_single.png
536
%%DATADIR%%/gsimages/vp_single.png
537
@dirrm %%DATADIR%%/gsimages
537
@dirrm %%DATADIR%%/gsimages
538
@dirrm %%DATADIR%%
538
@dirrm %%DATADIR%%
539
@dirrm libexec/gSculpt
539
@dirrm %%PYTHON_SITELIBDIR%%/Britefury/gSculptConfig
540
@dirrm %%PYTHON_SITELIBDIR%%/Britefury/gSculptConfig
540
@dirrm %%PYTHON_SITELIBDIR%%/Britefury/extlibs/pyconsole
541
@dirrm %%PYTHON_SITELIBDIR%%/Britefury/extlibs/pyconsole
541
@dirrm %%PYTHON_SITELIBDIR%%/Britefury/extlibs/greenlet
542
@dirrm %%PYTHON_SITELIBDIR%%/Britefury/extlibs/greenlet

Return to bug 184868