Lines 27-91
Link Here
|
27 |
|
27 |
|
28 |
.if defined(WITH_CDDA2WAV) |
28 |
.if defined(WITH_CDDA2WAV) |
29 |
RUN_DEPENDS+= cdda2wav:${PORTSDIR}/sysutils/cdrtools |
29 |
RUN_DEPENDS+= cdda2wav:${PORTSDIR}/sysutils/cdrtools |
30 |
.else |
|
|
31 |
CDDA2WAV_MSG= "Define WITH_CDDA2WAV to enable cdda2wav support." |
32 |
.endif |
30 |
.endif |
33 |
|
31 |
|
34 |
.if defined(WITH_DAGRAB) |
32 |
.if defined(WITH_DAGRAB) |
35 |
RUN_DEPENDS+= dagrab:${PORTSDIR}/audio/dagrab |
33 |
RUN_DEPENDS+= dagrab:${PORTSDIR}/audio/dagrab |
36 |
.else |
|
|
37 |
DAGRAB_MSG= "Define WITH_DAGRAB to enable dagrab support." |
38 |
.endif |
34 |
.endif |
39 |
|
35 |
|
40 |
.if defined(WITH_EJECT) |
36 |
.if defined(WITH_EJECT) |
41 |
RUN_DEPENDS+= eject:${PORTSDIR}/sysutils/eject |
37 |
RUN_DEPENDS+= eject:${PORTSDIR}/sysutils/eject |
42 |
.else |
|
|
43 |
EJECT_MSG= "Define WITH_EJECT to enable auto-eject support." |
44 |
.endif |
38 |
.endif |
45 |
|
39 |
|
46 |
.if defined(WITH_FLAC) |
40 |
.if defined(WITH_FLAC) |
47 |
RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac |
41 |
RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac |
48 |
.else |
|
|
49 |
FLAC_MSG= "Define WITH_FLAC to enable FLAC support." |
50 |
.endif |
42 |
.endif |
51 |
|
43 |
|
52 |
.if defined(WITH_NORMALIZE) |
44 |
.if defined(WITH_NORMALIZE) |
53 |
RUN_DEPENDS+= normalize:${PORTSDIR}/audio/normalize |
45 |
RUN_DEPENDS+= normalize:${PORTSDIR}/audio/normalize |
54 |
.else |
|
|
55 |
NORMALIZE_MSG= "Define WITH_NORMALIZE to enable normalize support." |
56 |
.endif |
46 |
.endif |
57 |
|
47 |
|
58 |
.if defined(WITH_SPEEX) |
48 |
.if defined(WITH_SPEEX) |
59 |
RUN_DEPENDS+= speexenc:${PORTSDIR}/audio/speex |
49 |
RUN_DEPENDS+= speexenc:${PORTSDIR}/audio/speex |
60 |
.else |
|
|
61 |
SPEEX_MSG= "Define WITH_SPEEX to enable Speex support." |
62 |
.endif |
50 |
.endif |
63 |
|
51 |
|
64 |
pre-fetch: |
52 |
pre-everything:: |
65 |
.if defined(CDDA2WAV_MSG) |
53 |
@${ECHO} |
66 |
@${ECHO_MSG} ${CDDA2WAV_MSG} |
54 |
@${ECHO} "You can build ${PORTNAME} with the following options:" |
67 |
@${ECHO_MSG} "" |
55 |
@${ECHO} "WITH_CDDA2WAV enable cdda2wav support" |
68 |
.endif |
56 |
@${ECHO} "WITH_DAGRAB enable dagrab support" |
69 |
.if defined(DAGRAB_MSG) |
57 |
@${ECHO} "WITH_EJECT enable auto-eject support" |
70 |
@${ECHO_MSG} ${DAGRAB_MSG} |
58 |
@${ECHO} "WITH_FLAC enable FLAC support" |
71 |
@${ECHO_MSG} "" |
59 |
@${ECHO} "WITH_NORMALIZE enable normalize support" |
72 |
.endif |
60 |
@${ECHO} "WITH_SPEEX enable Speex support" |
73 |
.if defined(EJECT_MSG) |
61 |
@${ECHO} |
74 |
@${ECHO_MSG} ${EJECT_MSG} |
|
|
75 |
@${ECHO_MSG} "" |
76 |
.endif |
77 |
.if defined(FLAC_MSG) |
78 |
@${ECHO_MSG} ${FLAC_MSG} |
79 |
@${ECHO_MSG} "" |
80 |
.endif |
81 |
.if defined(NORMALIZE_MSG) |
82 |
@${ECHO_MSG} ${NORMALIZE_MSG} |
83 |
@${ECHO_MSG} "" |
84 |
.endif |
85 |
.if defined(SPEEX_MSG) |
86 |
@${ECHO_MSG} ${SPEEX_MSG} |
87 |
@${ECHO_MSG} "" |
88 |
.endif |
89 |
|
62 |
|
90 |
post-patch: |
63 |
post-patch: |
91 |
@${REINPLACE_CMD} -e 's#/etc/#${PREFIX}/etc/#g' \ |
64 |
@${REINPLACE_CMD} -e 's#/etc/#${PREFIX}/etc/#g' \ |