#!/bin/sh
# This is a shell archive
echo x fossmixer
mkdir -p fossmixer > /dev/null 2>&1
echo x fossmixer/pkg-plist
sed 's/^X//' > fossmixer/pkg-plist << 'SHAR_END'
X@sample %%ETCDIR%%/fossmixer.conf.sample
X@sample %%ETCDIR%%/fossmixer.res.sample
Xbin/fossmixer
Xshare/detroit/fonts/KEEPME
Xshare/detroit/fonts/NotoSans-Italic.ttf
Xshare/detroit/fonts/NotoSans-Regular.ttf
Xshare/detroit/widgets/button_1_1.widget
Xshare/detroit/widgets/button_2_1.widget
Xshare/detroit/widgets/button_3_1.widget
Xshare/detroit/widgets/knob_1_1.widget
Xshare/detroit/widgets/knob_1_2.widget
Xshare/detroit/widgets/knob_2_1.widget
Xshare/detroit/widgets/knob_2_2.widget
Xshare/detroit/widgets/knob_3_1.widget
Xshare/detroit/widgets/knob_3_2.widget
Xshare/detroit/widgets/lamp_1_1.widget
Xshare/detroit/widgets/led_1_1.widget
Xshare/detroit/widgets/led_2_1.widget
Xshare/detroit/widgets/led_3_1.widget
Xshare/detroit/widgets/slide_1_1.widget
Xshare/detroit/widgets/slide_1_2.widget
Xshare/detroit/widgets/slide_2_1.widget
Xshare/detroit/widgets/slide_2_2.widget
Xshare/detroit/widgets/slide_3_1.widget
Xshare/detroit/widgets/slide_3_2.widget
Xshare/fossmixer/fossmixer_bg.tga
SHAR_END
echo x fossmixer/pkg-descr
sed 's/^X//' > fossmixer/pkg-descr << 'SHAR_END'
XFOSS Mixer is a graphical mixer application for FreeBSD to control OSS
Xaudio backend. Mixer can be use to control audio levels, set recording
Xsource, and it includes white noise generator for testing the audio
Xoutput. It is pretty much what mixer(1) does. FOSS Mixer does not need
Xthird party user interface library, it runs on plain X11/OpenGL.
X
XWWW: http://detroit.sourceforge.net/app_fossmixer.html
SHAR_END
echo x fossmixer/Makefile
sed 's/^X//' > fossmixer/Makefile << 'SHAR_END'
XPORTNAME=	fossmixer
XPORTVERSION=	0.0.3
XPORTREVISION=	2
XCATEGORIES=	audio
XMASTER_SITES=	SF/detroit
XDISTNAME=	detroit-0.2.3
X
XMAINTAINER=	salojan@goto10.co
XCOMMENT=	Graphical mixer application for OSS
X
XLICENSE=	BSD3CLAUSE
X
XRUN_DEPENDS=	${LOCALBASE}/share/fonts/noto/NotoSans-Italic.ttf:x11-fonts/noto-basic \
X		${LOCALBASE}/share/fonts/noto/NotoSans-Regular.ttf:x11-fonts/noto-basic
XLIB_DEPENDS=	libao.so:audio/libao \
X		libportaudio.so:audio/portaudio \
X		libpulse-simple.so:audio/pulseaudio \
X		libiconv.so:converters/libiconv \
X		libltdl.so:devel/libltdl \
X		libfreetype.so:print/freetype2
X
XUSES=		gettext-runtime gl perl5 pkgconfig tar:xz xorg
XUSE_GL=		gl
XUSE_PERL5=	patch build
XUSE_XORG=	x11 xext xrandr
X
XHAS_CONFIGURE=	yes
XCONFIGURE_ARGS=	--disable-bob \
X		--disable-color \
X		--disable-coords \
X		--disable-draw \
X		--disable-image \
X		--disable-math \
X		--disable-menu \
X		--disable-remote \
X		--sysconfdir="${ETCDIR}" \
X		--with-libiconv="${LOCALBASE}" \
X		--with-libintl="${LOCALBASE}" \
X		--with-libltdl="${LOCALBASE}"
X
XALL_TARGET=
XINSTALL_TARGET=	install-strip
X
Xpost-patch:
X	@(cd ${WRKSRC}/apps && ./build.sh fossmixer)
X
X	@for i in alsa flac samplerate gnutls openssl librsvg-2.0; do \
X		${REINPLACE_CMD} -e "s|$${i}|$${i}_EXCLUDE|g" ${WRKSRC}/configure ; \
X	done
X
X	@${REINPLACE_CMD} -e "s|^.*bobs.*$$||" ${WRKSRC}/Makefile.in
X	@${REINPLACE_CMD} -e "s|@echo Compiling engine/$$< ; ||" ${WRKSRC}/engine/Makefile.in
X
Xpost-install:
X	@for i in conf res; do \
X		if [ -e "${STAGEDIR}${PREFIX}/etc/fossmixer/fossmixer.$${i}" ]; then \
X			${MV} -f \
X				${STAGEDIR}${PREFIX}/etc/fossmixer/fossmixer.$${i} \
X				${STAGEDIR}${PREFIX}/etc/fossmixer/fossmixer.$${i}.sample ; \
X		fi ; \
X	done
X
X	@for i in NotoSans-Italic NotoSans-Regular; do \
X		${LN} -sf \
X			"${LOCALBASE}/share/fonts/noto/$${i}.ttf" \
X			"${STAGEDIR}${PREFIX}/share/detroit/fonts/$${i}.ttf" ; \
X	done
X
X.include <bsd.port.mk>
SHAR_END
echo x fossmixer/distinfo
sed 's/^X//' > fossmixer/distinfo << 'SHAR_END'
XTIMESTAMP = 1627746068
XSHA256 (detroit-0.2.3.tar.xz) = b56f1f4b32eb3c39b428d944a05b65cd17a4328e1b6bb577bd5de1d9f0d55618
XSIZE (detroit-0.2.3.tar.xz) = 22256400
SHAR_END
exit
