aboutsummaryrefslogtreecommitdiff
path: root/audio/boodler
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-01-25 12:17:16 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-01-25 12:17:16 +0000
commit19c310a9427e8fcf5cda91d40b8164c76672bedc (patch)
tree5e5f00fc7b69235dd0f13c356b70bc2300b1203f /audio/boodler
parentef7406b7e3dab8fd5608502bf5bb23414fbd6ec4 (diff)
downloadports-19c310a9427e8fcf5cda91d40b8164c76672bedc.tar.gz
ports-19c310a9427e8fcf5cda91d40b8164c76672bedc.zip
Notes
Diffstat (limited to 'audio/boodler')
-rw-r--r--audio/boodler/Makefile6
-rw-r--r--audio/boodler/files/patch-ab31
2 files changed, 36 insertions, 1 deletions
diff --git a/audio/boodler/Makefile b/audio/boodler/Makefile
index 776fc338c024..a5bac830d889 100644
--- a/audio/boodler/Makefile
+++ b/audio/boodler/Makefile
@@ -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:
diff --git a/audio/boodler/files/patch-ab b/audio/boodler/files/patch-ab
new file mode 100644
index 000000000000..acfd88e13f7f
--- /dev/null
+++ b/audio/boodler/files/patch-ab
@@ -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