blob: 22d9e2b280cc4e0f3fca4c7a715429b1b3bf5fe1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Created by: Anders Nordby <anders@fix.no>
PORTNAME= xmp
PORTVERSION= 4.1.0
PORTREVISION= 2
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= gmake localbase:ldflags pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
CONFIG_FILES= xmp.conf modules.conf
OPTIONS_DEFAULT= OSS
OPTIONS_DEFINE= ALSA OSS PULSEAUDIO SNDIO
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>
|