From owner-freebsd-ports Sat Dec 14 7:50:22 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E89C37B407 for ; Sat, 14 Dec 2002 07:50:10 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFE2943EC2 for ; Sat, 14 Dec 2002 07:50:09 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gBEFo9x3000931 for ; Sat, 14 Dec 2002 07:50:09 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gBEFo9Em000928; Sat, 14 Dec 2002 07:50:09 -0800 (PST) Date: Sat, 14 Dec 2002 07:50:09 -0800 (PST) Message-Id: <200212141550.gBEFo9Em000928@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Jean-Yves Lefort Subject: Re: ports/46242: New port: emulators/peops-spu-oss Reply-To: Jean-Yves Lefort Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/46242; it has been noted by GNATS. From: Jean-Yves Lefort To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: ports/46242: New port: emulators/peops-spu-oss Date: Sat, 14 Dec 2002 16:45:30 +0100 Here's an improved version of the initial submission; since the port hasn't been committed yet, I choose to send this as a shell archive rather than a diff. Regards, Jean-Yves Lefort # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # peops-spu-oss # peops-spu-oss/Makefile # peops-spu-oss/distinfo # peops-spu-oss/pkg-comment # peops-spu-oss/pkg-descr # peops-spu-oss/pkg-message # peops-spu-oss/pkg-plist # peops-spu-oss/files # peops-spu-oss/files/peops-spu-oss_install.in # echo c - peops-spu-oss mkdir -p peops-spu-oss > /dev/null 2>&1 echo x - peops-spu-oss/Makefile sed 's/^X//' >peops-spu-oss/Makefile << 'END-of-peops-spu-oss/Makefile' X# New ports collection makefile for: peops-spu-oss X# Date created: 13 Dec 2002 X# Whom: Jean-Yves Lefort X# X# $FreeBSD$ X# X XPORTNAME= peops-spu-oss XPORTVERSION= 1.2 XCATEGORIES= emulators linux XMASTER_SITES= http://home.t-online.de/home/PeteBernert/ XDISTNAME= spupeopsoss102 X XMAINTAINER= jylefort@brutele.be X XUSE_LINUX= yes XNO_WRKSUBDIR= yes X XONLY_FOR_ARCHS= i386 X X# Linux binary should not be stripped by INSTALL_PROGRAM X# because as a side effect it brands the binary as FreeBSD. XSTRIP= X X.include X XLIBDIR= ${PREFIX}/lib/peops-spu-oss X Xdo-build: X ${MKDIR} ${WRKSRC}/FreeBSD X ${SED} -e "s,@LIBDIR@,${LIBDIR},g" \ X ${FILESDIR}/peops-spu-oss_install.in \ X >${WRKSRC}/FreeBSD/peops-spu-oss_install X Xdo-install: X ${MKDIR} ${PREFIX}/bin X ${INSTALL_SCRIPT} ${WRKSRC}/FreeBSD/peops-spu-oss_install ${PREFIX}/bin X X ${MKDIR} ${LIBDIR} X ${INSTALL_PROGRAM} ${WRKSRC}/cfgPeopsOSS ${LIBDIR} X ${INSTALL_DATA} ${WRKSRC}/spuPeopsOSS.cfg ${LIBDIR} X ${INSTALL_PROGRAM} ${WRKSRC}/libspuPeopsOSS.so.1.0.2 ${LIBDIR} X X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X ${INSTALL_DATA} \ X ${WRKSRC}/readme_1_2.txt \ X ${WRKSRC}/version_1_2.txt \ X ${DOCSDIR} X.endif X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include END-of-peops-spu-oss/Makefile echo x - peops-spu-oss/distinfo sed 's/^X//' >peops-spu-oss/distinfo << 'END-of-peops-spu-oss/distinfo' XMD5 (spupeopsoss102.tar.gz) = bcce34552fda5db4bfa2bbe84f2b2c5f END-of-peops-spu-oss/distinfo echo x - peops-spu-oss/pkg-comment sed 's/^X//' >peops-spu-oss/pkg-comment << 'END-of-peops-spu-oss/pkg-comment' XA PSEmu Pro SPU plugin using the OSS interface END-of-peops-spu-oss/pkg-comment echo x - peops-spu-oss/pkg-descr sed 's/^X//' >peops-spu-oss/pkg-descr << 'END-of-peops-spu-oss/pkg-descr' XP.E.Op.S. OSS SPU is a PSEmu Pro SPU plugin using the OSS interface. X XThis is the binary Linux version, tested with ePSXe (emulators/ePSXe). X XWWW: http://sourceforge.net/projects/peops/ X X- Jean-Yves Lefort Xjylefort@brutele.be END-of-peops-spu-oss/pkg-descr echo x - peops-spu-oss/pkg-message sed 's/^X//' >peops-spu-oss/pkg-message << 'END-of-peops-spu-oss/pkg-message' X------------------------------------------------------------------------------- XIf you have ePSXe installed, you'll want to log into your normal user Xaccount and type X X peops-spu-oss_install X Xin order to install the plugin in the emulator. X------------------------------------------------------------------------------- END-of-peops-spu-oss/pkg-message echo x - peops-spu-oss/pkg-plist sed 's/^X//' >peops-spu-oss/pkg-plist << 'END-of-peops-spu-oss/pkg-plist' Xlib/peops-spu-oss/cfgPeopsOSS Xlib/peops-spu-oss/spuPeopsOSS.cfg Xlib/peops-spu-oss/libspuPeopsOSS.so.1.0.2 X%%PORTDOCS%%share/doc/peops-spu-oss/readme_1_2.txt X%%PORTDOCS%%share/doc/peops-spu-oss/version_1_2.txt X@dirrm lib/peops-spu-oss X%%PORTDOCS%%@dirrm share/doc/peops-spu-oss END-of-peops-spu-oss/pkg-plist echo c - peops-spu-oss/files mkdir -p peops-spu-oss/files > /dev/null 2>&1 echo x - peops-spu-oss/files/peops-spu-oss_install.in sed 's/^X//' >peops-spu-oss/files/peops-spu-oss_install.in << 'END-of-peops-spu-oss/files/peops-spu-oss_install.in' X#!/bin/sh X# peops-spu-oss_install - P.E.Op.S. OSS SPU user installation X# X# (c) 2002 Jean-Yves Lefort. X# All rights reserved. X XLIBDIR=@LIBDIR@ XUSERDIR=$HOME/.ePSXe X Xcond_mkdir () { X if [ -d $1 ]; then X echo "Directory $1 already exists, not created" X else X echo "Creating directory $1" X mkdir -p $1 X fi X} X Xcond_install () { X if [ -e $2 ]; then X echo "File $2 already exists, not replaced" X else X echo "Installing $1 to $2" X install -m $3 $1 $2 X fi X} X Xcond_ln () { X if [ -e $2 ]; then X echo "File $2 already exists, not replaced" X else X echo "Symlinking $1 to $2" X ln -sf $1 $2 X fi X} X Xecho "Installing P.E.Op.S. OSS SPU plugin in ePSXe" Xecho X Xfor d in \ X $USERDIR \ X $USERDIR/cfg \ X $USERDIR/plugins; do X cond_mkdir $d Xdone X Xcond_install $LIBDIR/spuPeopsOSS.cfg $USERDIR/cfg/spuPeopsOSS.cfg 0644 X Xcond_ln $LIBDIR/cfgPeopsOSS $USERDIR/cfg/cfgPeopsOSS Xcond_ln $LIBDIR/libspuPeopsOSS.so.1.0.2 $USERDIR/plugins/libspu.so X Xecho Xecho "Installation finished" END-of-peops-spu-oss/files/peops-spu-oss_install.in exit To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message