1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/audio/fossmixer/Makefile
Niclas Zeising 91c3b180c1 Add USES=xorg USES=gl, ports categories a
Add USES=xorg, USES=gl and in a few cases USES=gnome to ports in categories
starting with 'a'.
2019-11-04 20:39:51 +00:00

74 lines
1.9 KiB
Makefile

# $FreeBSD$
PORTNAME= fossmixer
PORTVERSION= 0.0.2
CATEGORIES= audio
MASTER_SITES= https://downloads.sourceforge.net/project/detroit/
DISTNAME= detroit-0.2.1
EXTRACT_SUFX= .tar.xz
MAINTAINER= jani@lasipalatsi.fi
COMMENT= Graphical mixer application for OSS
LICENSE= BSD3CLAUSE
RUN_DEPENDS= ${LOCALBASE}/share/fonts/noto/NotoSans-Italic.ttf:x11-fonts/noto-basic \
${LOCALBASE}/share/fonts/noto/NotoSans-Regular.ttf:x11-fonts/noto-basic
LIB_DEPENDS= libao.so:audio/libao \
libportaudio.so:audio/portaudio \
libpulse-simple.so:audio/pulseaudio \
libiconv.so:converters/libiconv \
libltdl.so:devel/libltdl \
libfreetype.so:print/freetype2
USES= gettext-runtime gl perl5 xorg
USE_GL= gl
USE_PERL5= patch build
USE_XORG= x11 xext xrandr
WRKSRC= ${WRKDIR}/${DISTNAME}
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --disable-bob \
--disable-color \
--disable-coords \
--disable-draw \
--disable-image \
--disable-math \
--disable-menu \
--disable-remote \
--sysconfdir="${ETCDIR}" \
--with-libiconv="${LOCALBASE}" \
--with-libintl="${LOCALBASE}" \
--with-libltdl="${LOCALBASE}"
ALL_TARGET=
INSTALL_TARGET= install-strip
post-patch:
@(cd ${WRKSRC}/apps && ./build.sh fossmixer)
@for i in alsa flac samplerate gnutls openssl librsvg-2.0; do \
${REINPLACE_CMD} -e "s|$${i}|$${i}_EXCLUDE|g" ${WRKSRC}/configure ; \
done
@${REINPLACE_CMD} -e "s|^.*bobs.*$$||" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|@echo Compiling engine/$$< ; ||" ${WRKSRC}/engine/Makefile.in
post-install:
@for i in conf res; do \
if [ -e "${STAGEDIR}${PREFIX}/etc/fossmixer/fossmixer.$${i}" ]; then \
${MV} -f \
${STAGEDIR}${PREFIX}/etc/fossmixer/fossmixer.$${i} \
${STAGEDIR}${PREFIX}/etc/fossmixer/fossmixer.$${i}.sample ; \
fi ; \
done
@for i in NotoSans-Italic NotoSans-Regular; do \
${LN} -sf \
"${LOCALBASE}/share/fonts/noto/$${i}.ttf" \
"${STAGEDIR}${PREFIX}/share/detroit/fonts/$${i}.ttf" ; \
done
.include <bsd.port.mk>