summaryrefslogtreecommitdiff
path: root/multimedia/divxplayer
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-01-26 13:28:19 +0000
committerjmmv <jmmv@pkgsrc.org>2004-01-26 13:28:19 +0000
commitbbb8af9c10e95bc70685526c9ec89b8098312e8b (patch)
tree9cbe0bda1b4b4f0625c900fbae70f8bdb6234d81 /multimedia/divxplayer
parent8eb346a138989c6ca82917dcde6ab6c521b64631 (diff)
downloadpkgsrc-bbb8af9c10e95bc70685526c9ec89b8098312e8b.tar.gz
Move divxplayer to the multimedia category (coming from graphics).
This is version 0.2.0.
Diffstat (limited to 'multimedia/divxplayer')
-rw-r--r--multimedia/divxplayer/DESCR4
-rw-r--r--multimedia/divxplayer/Makefile40
-rw-r--r--multimedia/divxplayer/PLIST8
-rw-r--r--multimedia/divxplayer/distinfo4
-rw-r--r--multimedia/divxplayer/files/launcher.sh14
5 files changed, 70 insertions, 0 deletions
diff --git a/multimedia/divxplayer/DESCR b/multimedia/divxplayer/DESCR
new file mode 100644
index 00000000000..029df1e4c7b
--- /dev/null
+++ b/multimedia/divxplayer/DESCR
@@ -0,0 +1,4 @@
+The DivX(TM) Player for Linux from DivX.com is built from the same
+codebase as the Windows version. It performs exactly like its Windows
+cousin in all respects, and can even use the same skin files. Behold
+the wonders of cross-platform development.
diff --git a/multimedia/divxplayer/Makefile b/multimedia/divxplayer/Makefile
new file mode 100644
index 00000000000..b2d06337592
--- /dev/null
+++ b/multimedia/divxplayer/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/26 13:28:19 jmmv Exp $
+
+DISTNAME= divx-player-installer
+PKGNAME= divxplayer-0.2.0
+CATEGORIES= multimedia
+MASTER_SITES= ${MASTER_SITE_LOCAL:=${PKGNAME}/}
+
+MAINTAINER= david@netbsd-fr.org
+HOMEPAGE= http://www.divx.com/
+COMMENT= DivX(TM) Video Player for Linux from DivX.com
+
+DEPENDS+= suse_linux>=7.3:../../emulators/suse_linux
+DEPENDS+= suse_x11>=7.3:../../emulators/suse_linux
+
+ONLY_FOR_PLATFORM= NetBSD-*-i386
+
+WRKSRC= ${WRKDIR}/divx-player-installer
+CHECK_SHLIBS= NO
+NO_BUILD= YES
+USE_X11BASE= YES
+
+DIST_SUBDIR= ${PKGNAME}
+
+BINARY= divxPlayer.bin
+DATADIR= ${PREFIX}/share/divxplayer
+
+post-patch:
+ ${SED} -e "s|%%DATADIR%%|${DATADIR}|" ${FILESDIR}/launcher.sh \
+ > ${WRKDIR}/frontend.sh
+
+do-install:
+ ${MKDIR} ${DATADIR}
+ ${MKDIR} ${DATADIR}/Skins
+ ${INSTALL_DATA} ${WRKSRC}/Skins/* ${DATADIR}/Skins
+ ${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKDIR}/frontend.sh \
+ ${PREFIX}/bin/${BINARY:S/.bin$//}
+
+.include "../../emulators/suse_linux/Makefile.application"
+.include "../../mk/bsd.pkg.mk"
diff --git a/multimedia/divxplayer/PLIST b/multimedia/divxplayer/PLIST
new file mode 100644
index 00000000000..8fcfdfd4011
--- /dev/null
+++ b/multimedia/divxplayer/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/26 13:28:19 jmmv Exp $
+bin/divxPlayer
+bin/divxPlayer.bin
+share/divxplayer/Skins/Corner.zip
+share/divxplayer/Skins/Default.dps
+share/divxplayer/Skins/divxexplorer.dps
+@dirrm share/divxplayer/Skins
+@dirrm share/divxplayer
diff --git a/multimedia/divxplayer/distinfo b/multimedia/divxplayer/distinfo
new file mode 100644
index 00000000000..4ae379a9c6c
--- /dev/null
+++ b/multimedia/divxplayer/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/26 13:28:19 jmmv Exp $
+
+SHA1 (divxplayer-0.2.0/divx-player-installer.tar.gz) = 63e39c6ed7539e3d7e94b16df93745aba9550d42
+Size (divxplayer-0.2.0/divx-player-installer.tar.gz) = 3888848 bytes
diff --git a/multimedia/divxplayer/files/launcher.sh b/multimedia/divxplayer/files/launcher.sh
new file mode 100644
index 00000000000..e455a68b6b6
--- /dev/null
+++ b/multimedia/divxplayer/files/launcher.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+PROGRAM="$0"
+DATADIR="%%DATADIR%%"
+DIVX_SKIN_DIR=${DATADIR}/Skins
+
+export DIVX_SKIN_DIR
+
+if [ -f ~/.divxPlayer/DivXPlayer.dbf ]
+then
+ rm -f ~/.divxPlayer/DivXPlayer.dbf
+fi
+
+exec ${PROGRAM}.bin "${@}"