pkgsrc/audio/libvisual/Makefile
jperkin 5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00

43 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.27 2018/07/04 13:40:08 jperkin Exp $
#
DISTNAME= libvisual-0.4.0
PKGREVISION= 4
CATEGORIES= audio graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libvisual/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/Libvisual/libvisual/wiki/General-information
COMMENT= Abstraction library for applications and audio visualisation plugins
LICENSE= gnu-lgpl-v2.1
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config msgfmt
PKGCONFIG_OVERRIDE+= ${WRKSRC}/libvisual.pc.in
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && exists(/usr/include/sys/pset.h)
RT_LIB_SCHED= -lrt
.else
RT_LIB_SCHED= # empty
.endif
MAKE_ENV+= RT_LIB_SCHED=${RT_LIB_SCHED}
SUBST_CLASSES+= rtlib
SUBST_STAGE.rtlib= pre-configure
SUBST_FILES.rtlib= libvisual.pc.in
SUBST_VARS.rtlib= RT_LIB_SCHED
.include "../../mk/bsd.prefs.mk"
.include "../../mk/compiler.mk"
.if ${MACHINE_ARCH} == "i386"
. if !empty(CC_VERSION:Mgcc*)
CPPFLAGS+= -mmmx
. endif
.endif
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"