Changeset View
Changeset View
Standalone View
Standalone View
audio/xmp/Makefile
Show All 21 Lines | |||||
CFLAGS+= -I${LOCALBASE}/include | CFLAGS+= -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
CONFIG_FILES= xmp.conf modules.conf | CONFIG_FILES= xmp.conf modules.conf | ||||
OPTIONS_DEFINE= ALSA PULSEAUDIO | OPTIONS_DEFINE= ALSA PULSEAUDIO | ||||
.include <bsd.port.options.mk> | ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib | ||||
ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins | |||||
ALSA_CONFIGURE_ENABLE= alsa | |||||
.if ${PORT_OPTIONS:MALSA} | PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:${PORTSDIR}/audio/pulseaudio | ||||
LIB_DEPENDS+= libasound.so:${PORTSDIR}/audio/alsa-lib | PULSEAUDIO_CONFIGURE_ENABLE= pulseaudio | ||||
RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins | |||||
CONFIGURE_ARGS+= --enable-alsa | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-alsa | |||||
.endif | |||||
.if ${PORT_OPTIONS:MPULSEAUDIO} | |||||
LIB_DEPENDS+= libpulse-simple.so:${PORTSDIR}/audio/pulseaudio | |||||
CONFIGURE_ARGS+= --enable-pulseaudio | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-pulseaudio | |||||
.endif | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|\ install-conf||' ${WRKSRC}/Makefile.in | @${REINPLACE_CMD} -e 's|\ install-conf||' ${WRKSRC}/Makefile.in | ||||
post-install: | post-install: | ||||
@${MKDIR} ${STAGEDIR}${ETCDIR} | @${MKDIR} ${STAGEDIR}${ETCDIR} | ||||
.for f in ${CONFIG_FILES} | .for f in ${CONFIG_FILES} | ||||
@test -f ${ETCDIR}/${f} || ${INSTALL_DATA} ${WRKSRC}/src/${f} ${STAGEDIR}${ETCDIR}/${f} | @test -f ${ETCDIR}/${f} || ${INSTALL_DATA} ${WRKSRC}/src/${f} ${STAGEDIR}${ETCDIR}/${f} | ||||
${INSTALL_DATA} ${WRKSRC}/src/${f} ${STAGEDIR}${ETCDIR}/${f}.sample | ${INSTALL_DATA} ${WRKSRC}/src/${f} ${STAGEDIR}${ETCDIR}/${f}.sample | ||||
.endfor | .endfor | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |