9c8b5ede43
developer is officially maintaining the package. The rationale for changing this from "tech-pkg" to "pkgsrc-users" is that it implies that any user can try to maintain the package (by submitting patches to the mailing list). Since the folks most likely to care about the package are the folks that want to use it or are already using it, this would leverage the energy of users who aren't developers.
71 lines
2 KiB
Makefile
71 lines
2 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2006/03/04 21:30:15 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= libmpeg3-1.3
|
|
PKGREVISION= 6
|
|
CATEGORIES= devel audio graphics multimedia
|
|
MASTER_SITES= http://heroines.sourceforge.net/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://heroines.sourceforge.net/libmpeg3.php3
|
|
COMMENT= MPEG decoding library
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if (${MACHINE_ARCH} == "i386")
|
|
BUILD_DEPENDS+= nasm-[0-9]*:../../devel/nasm
|
|
.else
|
|
CONFIGURE_ARGS+= --no-mmx --no-css
|
|
.endif
|
|
|
|
.if ${OPSYS} == "DragonFly"
|
|
CONFIGURE_ARGS+= --no-css
|
|
.endif
|
|
|
|
HAS_CONFIGURE= yes
|
|
USE_TOOLS+= gmake
|
|
|
|
ONLY_FOR_COMPILER= gcc
|
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
post-configure:
|
|
${ECHO} "CFLAGS+=-O2" >>${WRKSRC}/global_config
|
|
${ECHO} "CFLAGS+=-I${BUILDLINK_DIR}/include" >>${WRKSRC}/global_config
|
|
${ECHO} "CFLAGS+=-D_FILE_OFFSET_BITS=64" >>${WRKSRC}/global_config
|
|
|
|
INSTHDRS= bitstream.h libmpeg3.h mpeg3atrack.h mpeg3css.h \
|
|
mpeg3demux.h mpeg3io.h mpeg3private.h \
|
|
mpeg3private.inc mpeg3title.h mpeg3vtrack.h timecode.h
|
|
AINSTHDRS= ac3.h mpeg3audio.h
|
|
VINSTHDRS= idct.h mpeg3video.h slice.h
|
|
INSTBINS= mpeg3cat mpeg3toc mpeg3split
|
|
|
|
INSTALLATION_DIRS= bin lib
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/work/dump ${PREFIX}/bin/mpeg3dump
|
|
for f in ${INSTBINS}; do \
|
|
${INSTALL_PROGRAM} ${WRKSRC}/work/$$f ${PREFIX}/bin; \
|
|
done
|
|
${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
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|