Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 2004 19:28:33 -0500 (EST)
From:      Dan Pelleg <daniel+boodler@pelleg.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/61853: Maintainer update: support amd64,ia64 compilation for audio/boodler
Message-ID:  <20040125002833.1457622A@palraz.wburn>
Resent-Message-ID: <200401250030.i0P0UFUk063380@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         61853
>Category:       ports
>Synopsis:       Maintainer update: support amd64,ia64 compilation for audio/boodler
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 24 16:30:14 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Dan Pelleg
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD l 4.7-STABLE FreeBSD 4.7-STABLE #8: Wed Jul 3 21:28:13 EDT 2002 d@p i386

	
>Description:

Patches to compile under amd64 and ia64. I have no access to such machines
running freebsd; hopefully this does the trick.

>How-To-Repeat:
	
>Fix:

	


diff -ruN boodler/Makefile boodler-1.5.3_1/Makefile
--- boodler/Makefile	Tue Dec 30 19:45:42 2003
+++ boodler-1.5.3_1/Makefile	Sat Jan 24 19:21:26 2004
@@ -7,6 +7,7 @@
 
 PORTNAME=	boodler
 PORTVERSION=	1.5.3
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	http://www.eblong.com/zarf/boodler/ \
 		http://s89813419.onlinehome.us/
@@ -35,7 +36,7 @@
 	@${RMDIR} ${WRKDIR}/boodler-snd/string
 
 do-build:
-	(cd ${WRKSRC} && ${PYTHON_CMD} configure.py --driver ${DRIVER} && make)
+	(cd ${WRKSRC} && ${PYTHON_CMD} configure.py --driver ${DRIVER} ${PIC} && make)
 	@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/effects ${WRKSRC}/boodle/
 
 do-install:
@@ -52,5 +53,9 @@
 	@${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
 .endif
 	@${CAT} ${PKGMESSAGE}
+
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64"
+PIC=	--PIC
+.endif
 
 .include <bsd.port.mk>
diff -ruN boodler/files/patch-ab boodler-1.5.3_1/files/patch-ab
--- boodler/files/patch-ab	Wed Dec 31 19:00:00 1969
+++ boodler-1.5.3_1/files/patch-ab	Sat Jan 24 19:22:37 2004
@@ -0,0 +1,31 @@
+--- configure.py.orig	Sat Jan 24 18:44:11 2004
++++ configure.py	Sat Jan 24 18:46:37 2004
+@@ -7,7 +7,7 @@
+ import getopt
+ 
+ usagemessage = 'usage: ' + sys.argv[0] + ' [-d NAME] [-i] [-I /dir/path] [-L /dir/path] [-l]'
+-usagemessage = usagemessage + '\n   or: ' + sys.argv[0] + ' [--driver NAME] [--integer] [--include /dir/path] [--lib /dir/path] [--list]'
++usagemessage = usagemessage + '\n   or: ' + sys.argv[0] + ' [--driver NAME] [--integer] [--include /dir/path] [--lib /dir/path] [--list] [--PIC]'
+ 
+ helpmessage = 'Boodler configuration script\n\n' + usagemessage + '''
+ 
+@@ -68,8 +68,8 @@
+ '''
+ 
+ try:
+-	(opts, args) = getopt.getopt(sys.argv[1:], 'd:I:L:lih', 
+-		['driver=', 'include=', 'lib=', 'list', 'integer', 'help'])
++	(opts, args) = getopt.getopt(sys.argv[1:], 'd:I:L:lihP', 
++		['driver=', 'include=', 'lib=', 'list', 'integer', 'help', 'PIC'])
+ except getopt.error, ex:
+ 	print (sys.argv[0] + ':'), str(ex)
+ 	print usagemessage
+@@ -101,6 +101,8 @@
+ 		extraheaders.append(opval)
+ 	if (opname == '--lib' or opname == '-L'):
+ 		extralibs.append(opval)
++	if (opname == '--PIC' or opname == '-P'):
++		cflagopts = cflagopts + ' -fPIC'
+ 
+ headerpath = extraheaders + headerpath
+ libpath = extralibs + libpath
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040125002833.1457622A>