2006-03-04 22:28:51 +01:00
|
|
|
# $NetBSD: Makefile,v 1.8 2006/03/04 21:30:15 jlam Exp $
|
2001-08-02 19:34:00 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= libmpeg3-1.3
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 6
|
2004-06-26 20:00:21 +02:00
|
|
|
CATEGORIES= devel audio graphics multimedia
|
2001-08-02 19:34:00 +02:00
|
|
|
MASTER_SITES= http://heroines.sourceforge.net/
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-08-02 19:34:00 +02:00
|
|
|
HOMEPAGE= http://heroines.sourceforge.net/libmpeg3.php3
|
|
|
|
COMMENT= MPEG decoding library
|
|
|
|
|
2005-07-13 15:16:36 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2001-11-17 07:28:20 +01:00
|
|
|
.if (${MACHINE_ARCH} == "i386")
|
2001-09-28 01:17:41 +02:00
|
|
|
BUILD_DEPENDS+= nasm-[0-9]*:../../devel/nasm
|
2001-11-17 07:28:20 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --no-mmx --no-css
|
|
|
|
.endif
|
2001-08-05 16:38:45 +02:00
|
|
|
|
2005-07-13 15:16:36 +02:00
|
|
|
.if ${OPSYS} == "DragonFly"
|
|
|
|
CONFIGURE_ARGS+= --no-css
|
|
|
|
.endif
|
|
|
|
|
2001-08-05 16:38:45 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2001-08-02 19:34:00 +02:00
|
|
|
|
2004-06-12 06:34:49 +02:00
|
|
|
ONLY_FOR_COMPILER= gcc
|
|
|
|
|
2002-08-01 07:48:00 +02:00
|
|
|
PTHREAD_OPTS+= require
|
2002-07-22 11:23:10 +02:00
|
|
|
|
2001-08-02 19:34:00 +02:00
|
|
|
post-configure:
|
|
|
|
${ECHO} "CFLAGS+=-O2" >>${WRKSRC}/global_config
|
2001-08-05 16:38:45 +02:00
|
|
|
${ECHO} "CFLAGS+=-I${BUILDLINK_DIR}/include" >>${WRKSRC}/global_config
|
2001-08-02 19:34:00 +02:00
|
|
|
${ECHO} "CFLAGS+=-D_FILE_OFFSET_BITS=64" >>${WRKSRC}/global_config
|
|
|
|
|
|
|
|
INSTHDRS= bitstream.h libmpeg3.h mpeg3atrack.h mpeg3css.h \
|
2002-04-29 23:41:41 +02:00
|
|
|
mpeg3demux.h mpeg3io.h mpeg3private.h \
|
|
|
|
mpeg3private.inc mpeg3title.h mpeg3vtrack.h timecode.h
|
2001-08-02 19:34:00 +02:00
|
|
|
AINSTHDRS= ac3.h mpeg3audio.h
|
|
|
|
VINSTHDRS= idct.h mpeg3video.h slice.h
|
2002-04-29 23:41:41 +02:00
|
|
|
INSTBINS= mpeg3cat mpeg3toc mpeg3split
|
2001-08-02 19:34:00 +02:00
|
|
|
|
2005-06-17 05:50:19 +02:00
|
|
|
INSTALLATION_DIRS= bin lib
|
|
|
|
|
2001-08-02 19:34:00 +02:00
|
|
|
do-install:
|
2002-04-29 23:41:41 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/work/dump ${PREFIX}/bin/mpeg3dump
|
|
|
|
for f in ${INSTBINS}; do \
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/work/$$f ${PREFIX}/bin; \
|
|
|
|
done
|
2001-08-02 19:34:00 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/mpeg3
|
|
|
|
for f in ${INSTHDRS}; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/include/mpeg3; \
|
|
|
|
done
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/mpeg3/audio
|
|
|
|
for f in ${AINSTHDRS}; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/audio/$$f \
|
|
|
|
${PREFIX}/include/mpeg3/audio; \
|
|
|
|
done
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/mpeg3/video
|
|
|
|
for f in ${VINSTHDRS}; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/video/$$f \
|
|
|
|
${PREFIX}/include/mpeg3/video; \
|
|
|
|
done
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/work/libmpeg3.a ${PREFIX}/lib
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/libmpeg3
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/index.html \
|
|
|
|
${PREFIX}/share/doc/html/libmpeg3
|
|
|
|
|
2004-03-12 20:34:01 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2001-08-02 19:34:00 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|