b74aaaeab9
been told by many people that it doesn't work at all for them... hopefully this solves all problems. The fix is the following: instead of using the included soundcard.h file, use the one provided by the system (only in the NetBSD case; I can't test other systems). Idea from PR pkg/25301 by Kouichirou Hiratsuka. Bump PKGREVISION to 1.
64 lines
1.8 KiB
Text
64 lines
1.8 KiB
Text
# $NetBSD: Makefile.common,v 1.4 2004/06/26 22:12:28 jmmv Exp $
|
|
#
|
|
|
|
DISTNAME= bmp-0.9.6.1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=beepmp/}
|
|
|
|
MAINTAINER= jmmv@NetBSD.org
|
|
HOMEPAGE= http://beepmp.sourceforge.net/
|
|
COMMENT= Beep Media Player (fork of XMMS to work with GTK+ 2.x)
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../audio/bmp/distinfo
|
|
FILESDIR= ${.CURDIR}/../../audio/xmms/files
|
|
PATCHDIR= ${.CURDIR}/../../audio/bmp/patches
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_BUILDLINK3= yes
|
|
USE_DIRS+= xdg-1.1
|
|
USE_LIBTOOL= yes
|
|
USE_PKGLOCALEDIR= yes
|
|
USE_X11= yes
|
|
|
|
CONFIGURE_ARGS+= --disable-alsa
|
|
CONFIGURE_ARGS+= --disable-esd
|
|
CONFIGURE_ARGS+= --disable-opengl
|
|
CONFIGURE_ARGS+= --disable-oss
|
|
CONFIGURE_ARGS+= --disable-vorbis
|
|
|
|
PKGCONFIG_OVERRIDE+= beep.pc
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
RAWPART!= /sbin/sysctl -n kern.rawpartition | ${TR} 0-9 a-j
|
|
CONFIGURE_ARGS+= --with-dev-dsp=${DEVOSSSOUND} \
|
|
--with-cdda-device=/dev/rcd0${RAWPART} \
|
|
--with-cdda-dir=/cdrom/
|
|
|
|
post-extract:
|
|
${RM} ${WRKSRC}/Output/OSS/soundcard.h
|
|
${LN} -s /usr/include/soundcard.h ${WRKSRC}/Output/OSS/soundcard.h
|
|
|
|
. if ${MACHINE_ARCH} == "i386"
|
|
post-patch:
|
|
. if ${OBJECT_FMT} == "a.out"
|
|
${CP} ${FILESDIR}/decode_i586_.s ${WRKSRC}/Input/mpg123/decode_i586.s
|
|
. endif
|
|
cd ${WRKSRC}/Input/mpg123 && \
|
|
${MV} decode_i586.s decode_i586.s.orig && \
|
|
${SED} -e 's@^/@#/@g' <decode_i586.s.orig >decode_i586.s
|
|
. endif
|
|
.endif
|
|
|
|
.include "../../audio/libmikmod/buildlink3.mk"
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
.include "../../devel/pkgconfig/buildlink3.mk"
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
|
|
|
.include "../../mk/ossaudio.buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|