freebsd-ports/audio/wildmidi/Makefile
Tijl Coosemans 8035bf70d1 - Change maintainer email address (lost access to previous one).
- Support staging.
- Disable optimisation flags that clang does not support.
- Silence post-patch.

PR:		ports/182525
Submitted by:	RyoTa SimaMoto <liangtai.s16@gmail.com> (maintainer)
2013-10-23 09:59:18 +00:00

39 lines
931 B
Makefile

# $FreeBSD$
PORTNAME= wildmidi
PORTVERSION= 0.2.3.5
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
MAINTAINER= liangtai.s16@gmail.com
COMMENT= Simple software midi player and core softsynth library
# player: GPLv3, library: LGPL3
LICENSE= GPLv3 LGPL3
LICENSE_COMB= multi
MAKE_JOBS_UNSAFE= yes
USES= compiler gmake
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == clang
CONFIGURE_ARGS+= --disable-optimize
.endif
post-patch:
@${REINPLACE_CMD} -e 's@/etc/@${DATADIR}/@' \
${WRKSRC}/docs/wildmidi.1 \
${WRKSRC}/docs/wildmidi.cfg.5
@${REINPLACE_CMD} -e 's@/usr/local/share/wildmidi/@${DATADIR}/@' \
-e 's@default_timifityconf@default_wildmidiconf@' \
-e 's@$${\(.*\)-unset} = unset@x"$${\1}" = x@' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e '/WM_MixerOptions/s/ \&\& / \& /' \
${WRKSRC}/src/wildmidi_lib.c
.include <bsd.port.post.mk>