pkgsrc/audio/esound/Makefile
marino 2f1329884c audio/esound: Fix indirect linking error on DragonFly only
Since fixing the gnu linker v2.22 indirect linking errors for all platforms
have been met with controversy, this will be fixed with LDFLAGS.DragonFly
rather than LDFLAGS.  An identical LDFLAGS.IRIX already exists for this
package, and often this is the case for LDFLAGS.SunOS.  When pkgsrc
definitively decides to support unmodified gnu linker v2.22 behavior, we can
stop using LDFLAGS.DragonFly to address this issue.
2012-01-24 09:42:35 +00:00

48 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.76 2012/01/24 09:42:35 marino Exp $
DISTNAME= esound-0.2.41
PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/esound/0.2/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.tux.org/~ricdude/EsounD.html
COMMENT= The Enlightened sound daemon
LICENSE= gnu-lgpl-v2
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_LIBTOOL= YES
USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE= esound.pc.in
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ENV+= ac_cv_prog_JW=false
EGDIR= ${PREFIX}/share/examples/esound
CONF_FILES= ${EGDIR}/esd.conf ${PKG_SYSCONFDIR}/esd.conf
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Interix"
# no sound output device, but can support a remote esound server
CONFIGURE_ARGS+= --disable-local-sound
.else
.include "../../mk/oss.buildlink3.mk"
MAKE_ENV+= AM_CPPFLAGS='-DDEV_DSP=\"${DEVOSSAUDIO}\"'
SUBST_CLASSES+= oss
SUBST_STAGE.oss= post-patch
SUBST_FILES.oss= configure
SUBST_SED.oss= -e 's,-lossaudio,${LIBOSSAUDIO},g'
SUBST_MESSAGE.oss= Fixing oss.
.endif
LDFLAGS.IRIX+= -lm
LDFLAGS.DragonFly+= -lm
.include "../../audio/libaudiofile/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"