mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Fix build on amd64/ia64 by passing -fPIC to compiler
PR: ports/61853 Submitted by: Dan Pelleg <daniel+boodler@pelleg.org> (maintainer) Reported by: bento via kris
This commit is contained in:
parent
ef7406b7e3
commit
19c310a942
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99058
2 changed files with 36 additions and 1 deletions
|
@ -30,12 +30,16 @@ LDCONFIG_DIRS= %%PREFIX%%/share/boodler/boodle
|
|||
DRIVER= FILE
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "ia64"
|
||||
PIC= --PIC
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e "s|^booroot=.*|booroot=${PREFIX}/share/boodler|" ${WRKSRC}/wrapper/boodler
|
||||
@${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:
|
||||
|
|
31
audio/boodler/files/patch-ab
Normal file
31
audio/boodler/files/patch-ab
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue