Changeset View
Changeset View
Standalone View
Standalone View
head/audio/mp3stat/Makefile
Show All 26 Lines | |||||
LDFLAGS+= -L${LOCALBASE}/lib -Wl,--rpath,${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib -Wl,--rpath,${LOCALBASE}/lib | ||||
PORTDOCS= README | PORTDOCS= README | ||||
PLIST_FILES= bin/mp3stat \ | PLIST_FILES= bin/mp3stat \ | ||||
lib/mp3stat/input_mp3.so \ | lib/mp3stat/input_mp3.so \ | ||||
lib/mp3stat/ui_gtk2.so \ | lib/mp3stat/ui_gtk2.so \ | ||||
lib/mp3stat/ui_console.so | lib/mp3stat/ui_console.so | ||||
.include <bsd.port.options.mk> | VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis | ||||
VORBIS_PLIST_FILES= lib/mp3stat/input_vorb.so | |||||
VORBIS_MAKE_ARGS_OFF= VORBIS="" | |||||
.if ${PORT_OPTIONS:MVORBIS} | |||||
LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis | |||||
PLIST_FILES+= lib/mp3stat/input_vorb.so | |||||
.else | |||||
MAKE_ARGS+= VORBIS="" | |||||
.endif | |||||
post-patch: | post-patch: | ||||
@${FIND} ${WRKSRC} -name "Makefile*" | ${XARGS} ${REINPLACE_CMD} -e \ | @${FIND} ${WRKSRC} -name "Makefile*" | ${XARGS} ${REINPLACE_CMD} -e \ | ||||
's|@$${CXX}|$${CXX}|g ; \ | 's|@$${CXX}|$${CXX}|g ; \ | ||||
s|-ldl|-lz|g ; \ | s|-ldl|-lz|g ; \ | ||||
s|-lc|$${LDFLAGS}|g ; \ | s|-lc|$${LDFLAGS}|g ; \ | ||||
s|-Wl,-soname,.*\.so\.1||g ; \ | s|-Wl,-soname,.*\.so\.1||g ; \ | ||||
s|-fpic|-fPIC|g ; \ | s|-fpic|-fPIC|g ; \ | ||||
s|^CXX|#CXX|g' | s|^CXX|#CXX|g' | ||||
do-install: | do-install: | ||||
(cd ${WRKSRC} && ${INSTALL_PROGRAM} mp3stat ${STAGEDIR}${PREFIX}/bin) | (cd ${WRKSRC} && ${INSTALL_PROGRAM} mp3stat ${STAGEDIR}${PREFIX}/bin) | ||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/mp3stat | @${MKDIR} ${STAGEDIR}${PREFIX}/lib/mp3stat | ||||
(cd ${WRKSRC}/ui/gtk && ${INSTALL_LIB} ui_gtk2.so \ | (cd ${WRKSRC}/ui/gtk && ${INSTALL_LIB} ui_gtk2.so \ | ||||
${STAGEDIR}${PREFIX}/lib/mp3stat) | ${STAGEDIR}${PREFIX}/lib/mp3stat) | ||||
(cd ${WRKSRC}/ui/console && ${INSTALL_LIB} ui_console.so \ | (cd ${WRKSRC}/ui/console && ${INSTALL_LIB} ui_console.so \ | ||||
${STAGEDIR}${PREFIX}/lib/mp3stat) | ${STAGEDIR}${PREFIX}/lib/mp3stat) | ||||
(cd ${WRKSRC}/input/mp3 && ${INSTALL_LIB} input_mp3.so \ | (cd ${WRKSRC}/input/mp3 && ${INSTALL_LIB} input_mp3.so \ | ||||
${STAGEDIR}${PREFIX}/lib/mp3stat) | ${STAGEDIR}${PREFIX}/lib/mp3stat) | ||||
.if ${PORT_OPTIONS:MVORBIS} | |||||
(cd ${WRKSRC}/input/vorbis && ${INSTALL_LIB} input_vorb.so \ | |||||
${STAGEDIR}${PREFIX}/lib/mp3stat) | |||||
.endif | |||||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
(cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR}) | (cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR}) | ||||
do-install-VORBIS-on: | |||||
(cd ${WRKSRC}/input/vorbis && ${INSTALL_LIB} input_vorb.so \ | |||||
${STAGEDIR}${PREFIX}/lib/mp3stat) | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |