[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / audio / toolame

File: [cvs.NetBSD.org] / pkgsrc / audio / toolame / Makefile (download)

Revision 1.23, Wed Jul 4 13:40:09 2018 UTC (20 months, 3 weeks ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, HEAD
Changes since 1.22: +2 -2 lines

*: 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.

# $NetBSD: Makefile,v 1.23 2018/07/04 13:40:09 jperkin Exp $

DISTNAME=	toolame-02l
PKGREVISION=	4
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=toolame/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://sourceforge.net/projects/toolame/
COMMENT=	Optimized MPEG 1/2 layer 2 audio encoder
LICENSE=	gnu-lgpl-v2.1

USE_TOOLS+=		gmake

TOOLAME_ARCH?=

MAKE_ENV+=	CC=${CC:Q} CFLAGS=${CFLAGS:Q} LDFLAGS=${LDFLAGS:Q} ARCH=${TOOLAME_ARCH:Q}
BUILD_TARGET=	toolame

INSTALLATION_DIRS=	bin share/doc/toolame

.include "../../mk/bsd.prefs.mk"

.if !empty(PKGSRC_COMPILER:Msunpro)
SUBST_CLASSES+=		inline
SUBST_MESSAGE.inline=	Disable inline on Sun Studio
SUBST_STAGE.inline=	pre-configure
SUBST_FILES.inline=	Makefile
SUBST_SED.inline=	-e 's,INLINE=inline,INLINE=,'
.endif

TOOLAME_HTMLFILES= changes.html default.html psycho.html readme.html vbr.html
do-install:
	cd ${WRKSRC}/html; ${INSTALL_DATA} ${TOOLAME_HTMLFILES} \
		${DESTDIR}${PREFIX}/share/doc/toolame
	${INSTALL_PROGRAM} ${WRKSRC}/toolame ${DESTDIR}${PREFIX}/bin

.include "../../mk/bsd.pkg.mk"