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

File: [cvs.NetBSD.org] / pkgsrc / multimedia / avidemux / Makefile (download)

Revision 1.73, Thu Jun 14 07:45:26 2012 UTC (10 years, 7 months ago) by sbd
Branch: MAIN
CVS Tags: pkgsrc-2012Q2-base, pkgsrc-2012Q2
Changes since 1.72: +2 -2 lines

Recursive PKGREVISION bump for libxml2 buildlink addition.

# $NetBSD: Makefile,v 1.73 2012/06/14 07:45:26 sbd Exp $
#

DISTNAME=	avidemux_2.5.4
PKGNAME=	${DISTNAME:S/_/-/}
PKGREVISION=	9
CATEGORIES=	multimedia
MASTER_SITES=	http://download.berlios.de/avidemux/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://fixounet.free.fr/avidemux/
COMMENT=	Graphical video editing program
LICENSE=	gnu-gpl-v2

BUILD_DEPENDS+=	yasm-[0-9]*:../../devel/yasm

PKG_DESTDIR_SUPPORT=	user-destdir

GCC_REQD+=		3.0
USE_LANGUAGES=		c c++
USE_LIBTOOL=		yes
USE_PKGLOCALEDIR=	yes
USE_TOOLS+=		gmake msgfmt pkg-config
USE_CMAKE=		yes
CMAKE_ARG_PATH=		..
CONFIGURE_DIRS=		_build

CMAKE_ARGS+=		-DNO_ARTS=1
CMAKE_ARGS+=		-DUSE_SYSTEM_SPIDERMONKEY=1

LIBS+=			${LIBOSSAUDIO}

# make sure __STDC_CONSTANT_MACROS is set before <stdint.h> is
# pulled in the first time - for UINT64_C()
CFLAGS+=		-D__STDC_CONSTANT_MACROS

SUBST_CLASSES=		audio
SUBST_STAGE.audio=	post-patch
SUBST_FILES.audio=	plugins/ADM_audioDevices/Oss/ADM_deviceoss.cpp
SUBST_SED.audio=	-e "s|\\/dev\\/dsp|${DEVOSSAUDIO}|g"
SUBST_MESSAGE.audio=	Fixing hardcoded audio device.

BUILDLINK_TRANSFORM+=	opt:-ldl:${BUILDLINK_LDADD.dl:M*}

INSTALLATION_DIRS=	share/applications share/icons/hicolor/64x64/apps

pre-configure:
	${MKDIR} ${WRKSRC}/_build

post-install:
	${INSTALL_DATA} ${WRKSRC}/avidemux2.desktop \
	    ${DESTDIR}${PREFIX}/share/applications/avidemux2.desktop
	${INSTALL_DATA} ${WRKSRC}/avidemux_icon.png \
	    ${DESTDIR}${PREFIX}/share/icons/hicolor/64x64/apps/avidemux.png

.include "options.mk"

.include "../../audio/faac/buildlink3.mk"
.include "../../audio/faad2/buildlink3.mk"
.include "../../audio/lame/buildlink3.mk"
.include "../../audio/liba52/buildlink3.mk"
.include "../../audio/libsamplerate/buildlink3.mk"
.include "../../audio/libmad/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../lang/spidermonkey/buildlink3.mk"
.include "../../multimedia/xvidcore/buildlink3.mk"
.include "../../multimedia/x264-devel/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libXv/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"