|
Lines 18-33
Link Here
|
| 18 |
LIB_DEPENDS= id3tag.2:${PORTSDIR}/audio/libid3tag |
18 |
LIB_DEPENDS= id3tag.2:${PORTSDIR}/audio/libid3tag |
| 19 |
RUN_DEPENDS= mp3gain:${PORTSDIR}/audio/mp3gain |
19 |
RUN_DEPENDS= mp3gain:${PORTSDIR}/audio/mp3gain |
| 20 |
|
20 |
|
| 21 |
.if defined(WITH_AAC) |
|
|
| 22 |
BROKEN= "need mpeg4ip-1.0 for AAC support." |
| 23 |
#LIB_DEPENDS+= mp4v2.1:${PORTSDIR}/multimedia/mpeg4ip |
| 24 |
#.else |
| 25 |
#pre-everything:: |
| 26 |
# @${ECHO_MSG} |
| 27 |
# @${ECHO_MSG} "To enable AAC support define the WITH_AAC knob." |
| 28 |
# @${ECHO_MSG} |
| 29 |
.endif |
| 30 |
|
| 31 |
USE_REINPLACE= yes |
21 |
USE_REINPLACE= yes |
| 32 |
USE_X_PREFIX= yes |
22 |
USE_X_PREFIX= yes |
| 33 |
|
23 |
|
|
Lines 35-43
Link Here
|
| 35 |
USE_GNOME= gtk20 |
25 |
USE_GNOME= gtk20 |
| 36 |
GNU_CONFIGURE= yes |
26 |
GNU_CONFIGURE= yes |
| 37 |
|
27 |
|
|
|
28 |
.include <bsd.port.pre.mk> |
| 29 |
|
| 30 |
.if exists(${LOCALBASE}/lib/libmp4v2.so) |
| 31 |
.if exists(${LOCALBASE}/include/mpeg4ip_config.h) |
| 32 |
WITH_AAC= YES |
| 33 |
.else |
| 34 |
WITH_FAAD= YES |
| 35 |
.endif |
| 36 |
.endif |
| 37 |
.if defined(WITH_AAC) && defined(WITH_FAAD) |
| 38 |
BROKEN= "WITH_AAC and WITH_FAAD are exclusive." |
| 39 |
.endif |
| 40 |
.if defined(WITH_AAC) |
| 41 |
LIB_DEPENDS+= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip |
| 42 |
.endif |
| 43 |
.if defined(WITH_FAAD) |
| 44 |
LIB_DEPENDS+= mp4v2.0:${PORTSDIR}/audio/faad |
| 45 |
.endif |
| 46 |
|
| 38 |
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" |
47 |
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" |
| 39 |
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib" |
48 |
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib" |
| 40 |
|
49 |
|
|
|
50 |
.if !defined(WITH_AAC) && !defined(WITH_FAAD) |
| 51 |
pre-everything:: |
| 52 |
@${ECHO_MSG} |
| 53 |
@${ECHO_MSG} "To enable AAC support with mpeg4ip define the WITH_AAC knob." |
| 54 |
@${ECHO_MSG} "To enable AAC support with faad2 define the WITH_FAAD knob." |
| 55 |
@${ECHO_MSG} |
| 56 |
.endif |
| 57 |
|
| 58 |
post-patch: |
| 59 |
@${CP} ${FILESDIR}/systems.h ${WRKSRC}/src |
| 60 |
|
| 41 |
pre-configure: |
61 |
pre-configure: |
| 42 |
# install locale correctly (share dir instead of lib dir) |
62 |
# install locale correctly (share dir instead of lib dir) |
| 43 |
@${REINPLACE_CMD} -e 's|DATADIRNAME=lib|DATADIRNAME=share|' \ |
63 |
@${REINPLACE_CMD} -e 's|DATADIRNAME=lib|DATADIRNAME=share|' \ |
|
Lines 53-56
Link Here
|
| 53 |
@${INSTALL_DATA} ${WRKSRC}/TODOandBUGS.txt ${DOCSDIR} |
73 |
@${INSTALL_DATA} ${WRKSRC}/TODOandBUGS.txt ${DOCSDIR} |
| 54 |
.endif |
74 |
.endif |
| 55 |
|
75 |
|
| 56 |
.include <bsd.port.mk> |
76 |
.include <bsd.port.post.mk> |