From owner-freebsd-ports@FreeBSD.ORG Sat Mar 31 20:17:50 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 02FFF16A409 for ; Sat, 31 Mar 2007 20:17:50 +0000 (UTC) (envelope-from ninjin@kth.se) Received: from smtp-2.sys.kth.se (smtp-2.sys.kth.se [130.237.32.160]) by mx1.freebsd.org (Postfix) with ESMTP id 9085213C4B7 for ; Sat, 31 Mar 2007 20:17:49 +0000 (UTC) (envelope-from ninjin@kth.se) Received: from localhost (localhost [127.0.0.1]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 354DB14D7F7 for ; Sat, 31 Mar 2007 21:57:20 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([127.0.0.1]) by localhost (smtp-2.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3Nsexd+7hWWV for ; Sat, 31 Mar 2007 21:57:18 +0200 (CEST) Received: from [10.0.0.2] (a13-26-n8.cust.prq.se [88.80.13.26]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 8673E14D7A6 for ; Sat, 31 Mar 2007 21:57:17 +0200 (CEST) Message-ID: <460EBD1A.9090201@kth.se> Date: Sat, 31 Mar 2007 21:57:14 +0200 From: Pontus Stenetorp User-Agent: Thunderbird 1.5.0.10 (X11/20070321) MIME-Version: 1.0 To: freebsd-ports@freebsd.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Mixed archives woes X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Mar 2007 20:17:50 -0000 Greetings, I have been working on a port for pyFastaudio bindings, well I have got a lot of help from Carl Johan Gustavsson. But now I have run into some severe problems. In order to build properly pyFastaudio requires the source for Fastaudio. This has all been sorted out, but there is a packaging problem. Fastaudio is distributed using zip and pyFastaudio as tar. The solution at the moment has been to re-pack Fastaudio to tar and then distribute it from another ftp. This feels rather ugly, but is it in your opinion a "good" solution? Or is there a know better solution? The Makefile is pasted below. This is my first port and the handbook has been a great help but when it comes to this I can't find any answers. I am not a member of the ports mailing list so please cc me if you reply. Best regards, Pontus Stenetorp # New ports collection makefile for: py-fastaudio # Date created: 3 March 2007 # Whom: Pontus Stenetorp # Carl Johan Gustavsson # # $FreeBSD$ # PORTNAME= fastaudio PORTVERSION= 0.1 CATEGORIES= audio python MASTER_SITES= http://www.freenet.org.nz/python/pyPortAudio/:site1 \ http://cjg.mine.nu/~ninjin/distfiles/:site2 PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= fastaudio DISTFILES= fastaudio.tar.gz:site1 portaudio_v18_1.tar.gz:site2 DIST_SUBDIR= python MAINTAINER= ninjin@kth.se COMMENT= Python bindings for the PortAudio multi-platform audio library BUILD_DEPENDS= pyrexc:${PORTSDIR}/devel/pyrex LIB_DEPENDS= portaudio:${PORTSDIR}/audio/portaudio PLIST_FILES= lib/%%PYTHON_VERSION%%/site-packages/fastaudio.so PLIST_DIRS= EXAMPLESDIR= ${LOCALBASE}/share/examples/py-${PORTNAME} USE_PYTHON= yes USE_PYDISTUTILS=yes .if !defined(WITHOUT_EXAMPLES) PLIST_DIRS+= share/examples/py-${PORTNAME} PLIST_FILES+= share/examples/py-${PORTNAME}/demo.py .endif post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/setup.py ${WRKSRC}/mysndfile.h # Borrowed from the portaudio port, fixes obsolete path @${REINPLACE_CMD} -e 's|machine\/soundcard.h|sys\/soundcard.h|' \ ${WRKSRC}/../portaudio_v18_1/pa_unix_oss/pa_unix_oss.c post-install: .if !defined(WITHOUT_EXAMPLES) ( ${MKDIR} ${EXAMPLESDIR} && \ ${INSTALL_DATA} ${WRKSRC}/demo.py ${EXAMPLESDIR}/ ) .endif .include -- Pontus Stenetorp E-mail: ninjin@kth.se Drottning Kristinas väg 73 1:2 URL: http://www.d.kth.se/~ninjin 114 28 Stockholm, Sweden Tel: (+46) 8 5000 39 37