1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/audio/xmp/Makefile
Emanuel Haupt 4ab6c18716 */*: Remove GNU_CONFIGURE_MANPREFIX
After 9fd7ee1cdf remove GNU_CONFIGURE_MANPREFIX from my ports.
2024-04-12 21:35:43 +02:00

51 lines
1.3 KiB
Makefile

PORTNAME= xmp
DISTVERSION= 4.2.0
PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= audio
MASTER_SITES= https://github.com/libxmp/xmp-cli/releases/download/${PORTNAME}-${PORTVERSION}/
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Player for many different Amiga and PC module formats
WWW= https://xmp.sourceforge.net/
LICENSE= GPLv2
LIB_DEPENDS= libxmp.so:audio/libxmp
USES= gmake localbase:ldflags pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
CONFIG_FILES= xmp.conf modules.conf
OPTIONS_DEFINE= ALSA OSS PULSEAUDIO SNDIO
OPTIONS_DEFAULT= OSS
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins
ALSA_CONFIGURE_ENABLE= alsa
OSS_CONFIGURE_ENABLE= oss
PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_ENABLE= pulseaudio
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
post-patch:
@${REINPLACE_CMD} -e 's|\ install-conf||' ${WRKSRC}/Makefile.in
post-patch-SNDIO-on:
@${REINPLACE_CMD} -e 's|openbsd\*)|\*)|' ${WRKSRC}/configure
post-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}
.for f in ${CONFIG_FILES}
@test -f ${ETCDIR}/${f} || ${INSTALL_DATA} ${WRKSRC}/src/${f} ${STAGEDIR}${ETCDIR}/${f}
${INSTALL_DATA} ${WRKSRC}/src/${f} ${STAGEDIR}${ETCDIR}/${f}.sample
.endfor
.include <bsd.port.mk>