Lines 22-59
Link Here
|
22 |
USE_PYDISTUTILS= yes |
22 |
USE_PYDISTUTILS= yes |
23 |
USE_REINPLACE= yes |
23 |
USE_REINPLACE= yes |
24 |
|
24 |
|
|
|
25 |
OPTIONS= GEOIP "Enable the GeoIP based country code blocker" off \ |
26 |
PSYCO "Enable Psyco, the optimizing Python compiler" off \ |
27 |
VORBIS "Enable OGG/Vorbis support" on |
28 |
|
25 |
.include <bsd.port.pre.mk> |
29 |
.include <bsd.port.pre.mk> |
26 |
|
30 |
|
27 |
.if exists(${PYTHON_SITELIBDIR}/GeoIP.so) || defined(WITH_GEOIP) |
31 |
.if defined(WITH_GEOIP) |
28 |
WITH_GEOIP= yes |
|
|
29 |
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/GeoIP.so:${PORTSDIR}/net/py-GeoIP |
32 |
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/GeoIP.so:${PORTSDIR}/net/py-GeoIP |
30 |
.endif |
33 |
.endif |
31 |
|
34 |
.if defined(WITH_PSYCO) |
32 |
.if exists(${PYTHON_SITELIBDIR}/psyco/_psyco.so) || defined(WITH_PSYCO) |
|
|
33 |
WITH_PSYCO= yes |
34 |
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco |
35 |
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco |
35 |
.endif |
36 |
.endif |
36 |
|
37 |
.if defined(WITH_VORBIS) |
37 |
.if exists(${PYTHON_SITELIBDIR}/ogg/vorbis.so) || defined(WITH_VORBIS) |
|
|
38 |
WITH_VORBIS= yes |
39 |
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/ogg/vorbis.so:${PORTSDIR}/audio/py-vorbis |
38 |
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/ogg/vorbis.so:${PORTSDIR}/audio/py-vorbis |
40 |
.endif |
|
|
41 |
|
42 |
.if !defined(WITH_VORBIS) || !defined(WITH_PSYCO) || !defined(WITH_GEOIP) |
43 |
pre-everything:: |
44 |
@${ECHO_MSG} "" |
45 |
@${ECHO_MSG} "You can define the following for additional features:" |
46 |
@${ECHO_MSG} "" |
47 |
.if !defined(WITH_GEOIP) |
48 |
@${ECHO_MSG} "WITH_GEOIP - enable the GeoIP based country code blocker" |
49 |
.endif |
50 |
.if !defined(WITH_PSYCO) |
51 |
@${ECHO_MSG} "WITH_PSYCO - enable the psyco optimizing compiler" |
52 |
.endif |
53 |
.if !defined(WITH_VORBIS) |
54 |
@${ECHO_MSG} "WITH_VORBIS - enable OGG/Vorbis support" |
55 |
.endif |
56 |
@${ECHO_MSG} "" |
57 |
.endif |
39 |
.endif |
58 |
|
40 |
|
59 |
post-patch: |
41 |
post-patch: |