Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= paint |
8 |
PORTNAME= paint |
9 |
PORTVERSION= 0.1 |
9 |
PORTVERSION= 0.2 |
10 |
CATEGORIES= graphics python |
10 |
CATEGORIES= graphics python |
11 |
MASTER_SITES= http://object-craft.com.au/projects/paint/ |
11 |
MASTER_SITES= http://object-craft.com.au/projects/paint/ |
12 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
12 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
Lines 22-48
Link Here
|
22 |
USE_PYDISTUTILS= yes |
22 |
USE_PYDISTUTILS= yes |
23 |
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \ |
23 |
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \ |
24 |
SHARE_SUBDIR=${SHARE_SUBDIR} |
24 |
SHARE_SUBDIR=${SHARE_SUBDIR} |
25 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
|
|
26 |
SHARE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME} |
25 |
SHARE_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME} |
27 |
|
26 |
|
28 |
INC_DIRS= ["${LOCALBASE}/include/freetype1","${LOCALBASE}/include","${X11BASE}/include","${LOCALBASE}/include/freetype1/freetype"] |
27 |
INC_DIRS= ["${LOCALBASE}/include/freetype1","${LOCALBASE}/include","${X11BASE}/include","${LOCALBASE}/include/freetype1/freetype"] |
29 |
LIB_DIRS= ["${LOCALBASE}/lib","${X11BASE}/lib"] |
28 |
LIB_DIRS= ["${LOCALBASE}/lib","${X11BASE}/lib"] |
30 |
REPATCH= cd ${WRKSRC} && ${SED} |
|
|
31 |
REPATCHSUBST= -e 's@^\(.*libraries.*\)$$@\1include_dirs=${INC_DIRS},library_dirs=${LIB_DIRS},@g' |
32 |
REPATCHFILES= setup.py |
33 |
TMPSUFFIX= .temp |
29 |
TMPSUFFIX= .temp |
34 |
EXAMPLES= test_bar.py test_paint.py testpie.py |
30 |
EXAMPLES= test_bar.py test_paint.py testpie.py |
35 |
|
31 |
|
36 |
.include <bsd.port.pre.mk> |
32 |
.include <bsd.port.pre.mk> |
37 |
|
33 |
|
38 |
post-patch: |
34 |
post-patch: |
39 |
.if ${PYTHON_REL} >= 160 |
35 |
${PERL} -pi -e 's@^\(.*libraries.*\)$$@\1include_dirs=${INC_DIRS},library_dirs=${LIB_DIRS},@g' \ |
40 |
cd ${WRKSRC} && ${PATCH} -s <${PATCHDIR}/optpatch-aa |
36 |
${WRKSRC}/setup.py |
41 |
.endif |
|
|
42 |
.for file in ${REPATCHFILES} |
43 |
${REPATCH} ${REPATCHSUBST} ${file} > ${file}${TMPSUFFIX} && \ |
44 |
${CAT} ${file}${TMPSUFFIX} > ${file} |
45 |
.endfor |
46 |
|
37 |
|
47 |
.if !defined(NOPORTDOCS) |
38 |
.if !defined(NOPORTDOCS) |
48 |
post-install: |
39 |
post-install: |