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> |