2012-11-03 19:01:22 +01:00
|
|
|
# Created by: Anders Nordby <anders@fix.no>
|
1999-09-18 22:46:21 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-08 23:25:03 +02:00
|
|
|
PORTNAME= xmp
|
2013-05-20 04:25:20 +02:00
|
|
|
PORTVERSION= 4.0.6
|
2009-12-10 23:00:31 +01:00
|
|
|
PORTEPOCH= 1
|
1999-09-18 22:46:21 +02:00
|
|
|
CATEGORIES= audio
|
2009-12-10 23:00:31 +01:00
|
|
|
MASTER_SITES= SF
|
1999-09-18 22:46:21 +02:00
|
|
|
|
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
|
1999-09-18 22:46:21 +02:00
|
|
|
|
2011-08-12 18:55:22 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS= libxmp.so:${PORTSDIR}/audio/libxmp
|
2013-02-16 13:35:47 +01:00
|
|
|
|
2013-07-08 20:42:15 +02:00
|
|
|
USES= pkgconfig gmake
|
2008-05-18 14:16:40 +02:00
|
|
|
WANT_GNOME= yes
|
2008-04-16 23:21:25 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2001-04-17 13:02:01 +02:00
|
|
|
|
2013-02-16 13:35:47 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
|
2012-09-08 13:55:36 +02:00
|
|
|
|
2013-02-16 13:35:47 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2012-09-08 13:55:36 +02:00
|
|
|
|
2013-02-16 13:35:47 +01:00
|
|
|
CONFIG_FILES= xmp.conf modules.conf
|
2008-04-16 23:21:25 +02:00
|
|
|
|
2013-02-16 13:35:47 +01:00
|
|
|
OPTIONS_DEFINE= ALSA PULSEAUDIO
|
2011-08-29 15:46:02 +02:00
|
|
|
|
2012-09-08 13:55:36 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2008-04-16 23:21:25 +02:00
|
|
|
|
2012-09-08 13:55:36 +02:00
|
|
|
.if ${PORT_OPTIONS:MALSA}
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libasound.so:${PORTSDIR}/audio/alsa-lib
|
2010-07-01 08:47:22 +02:00
|
|
|
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
|
|
|
|
|
2012-09-08 13:55:36 +02:00
|
|
|
.if ${PORT_OPTIONS:MPULSEAUDIO}
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libpulse-simple.so:${PORTSDIR}/audio/pulseaudio
|
2009-10-17 11:11:17 +02:00
|
|
|
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
|
2009-10-17 11:11:17 +02:00
|
|
|
|
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
|
2009-10-17 11:11:17 +02:00
|
|
|
.endfor
|
2003-10-03 13:22:08 +02:00
|
|
|
|
2012-09-08 13:55:36 +02:00
|
|
|
.include <bsd.port.mk>
|