freebsd-ports/audio/xmp/Makefile

58 lines
1.3 KiB
Makefile
Raw Normal View History

# Created by: Anders Nordby <anders@fix.no>
# $FreeBSD$
PORTNAME= xmp
2013-05-20 04:25:20 +02:00
PORTVERSION= 4.0.6
PORTEPOCH= 1
CATEGORIES= audio
MASTER_SITES= SF
2009-10-05 14:00:38 +02:00
MAINTAINER= ehaupt@FreeBSD.org
2013-03-08 15:00:30 +01:00
COMMENT= Player for many different Amiga and PC module formats
LICENSE= GPLv2
LIB_DEPENDS= libxmp.so:${PORTSDIR}/audio/libxmp
2013-02-16 13:35:47 +01:00
USES= pkgconfig gmake
WANT_GNOME= yes
GNU_CONFIGURE= yes
2013-02-16 13:35:47 +01:00
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
2013-02-16 13:35:47 +01:00
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
2013-02-16 13:35:47 +01:00
CONFIG_FILES= xmp.conf modules.conf
2013-02-16 13:35:47 +01:00
OPTIONS_DEFINE= ALSA PULSEAUDIO
2011-08-29 15:46:02 +02:00
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MALSA}
LIB_DEPENDS+= libasound.so:${PORTSDIR}/audio/alsa-lib
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
2013-02-16 13:35:47 +01:00
post-patch:
@${REINPLACE_CMD} -e 's|\ install-conf||' ${WRKSRC}/Makefile.in
2013-02-16 13:35:47 +01:00
post-install:
2013-10-23 10:03:24 +02:00
${MKDIR} ${STAGEDIR}${ETCDIR}
2013-02-16 13:35:47 +01:00
.for f in ${CONFIG_FILES}
2013-10-23 10:03:24 +02:00
@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>