# New ports collection makefile for: mpeg2codec # Date created: November 25, 1996 # Whom: "Philippe Charnier" # # $FreeBSD$ # PORTNAME= mpeg2codec PORTVERSION= 1.2 PORTREVISION= 4 CATEGORIES= multimedia MASTER_SITES= http://fossies.org/unix/misc/old/ \ http://www.imagemagick.org/download/delegates/ \ http://gd.tuwien.ac.at/graphics/libs/alsolibs/ \ http://www.mpeg.org/pub_ftp/mpeg/mssg/ DISTNAME= mpeg2vidcodec_v12 MAINTAINER= multimedia@FreeBSD.org COMMENT= An MPEG-2 Encoder and Decoder OPTIONS= X11 "Support for X11" on WRKSRC= ${WRKDIR}/mpeg2 MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" MAKE_JOBS_SAFE= yes DATADIR= ${PREFIX}/share/mpeg2 CFLAGS+= -DVERIFY -DVERBOSE -DTRACE PORTDOCS= mpeg2enc.doc PLIST_FILES= bin/mpeg2decode bin/mpeg2encode \ %%DATADIR%%/MPEG-1.par %%DATADIR%%/NTSC.par \ %%DATADIR%%/PAL.par %%DATADIR%%/inter.mat \ %%DATADIR%%/intra.mat PLIST_DIRS= %%DATADIR%% .include .if !defined(WITHOUT_X11) USE_XORG= xext MAKE_ARGS+= USE_DISP="-DDISPLAY" \ USE_SHMEM="-DSH_MEM" \ LIBS="$$(pkg-config --libs xext)" \ INCLUDEDIR="$$(pkg-config --cflags xext)" .endif do-install: .for i in dec enc ${INSTALL_PROGRAM} ${WRKSRC}/src/mpeg2${i}/mpeg2${i}ode ${PREFIX}/bin .endfor @${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/par/* ${DATADIR} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/mpeg2enc.doc ${DOCSDIR} .endif .include