freebsd-ports/audio/xmp/Makefile
Mathieu Arnold 7f4572eae4 Remove ${PORTSDIR}/ from dependencies, Mk and categories a, b, and c.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 13:29:15 +00:00

47 lines
1.1 KiB
Makefile

# Created by: Anders Nordby <anders@fix.no>
# $FreeBSD$
PORTNAME= xmp
PORTVERSION= 4.0.11
PORTEPOCH= 1
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Player for many different Amiga and PC module formats
LICENSE= GPLv2
LIB_DEPENDS= libxmp.so:audio/libxmp
USES= pkgconfig gmake
WANT_GNOME= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIG_FILES= xmp.conf modules.conf
OPTIONS_DEFINE= ALSA PULSEAUDIO
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
PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_ENABLE= pulseaudio
post-patch:
@${REINPLACE_CMD} -e 's|\ install-conf||' ${WRKSRC}/Makefile.in
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>