aboutsummaryrefslogtreecommitdiffstats
path: root/audio/boodler
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-01-25 20:17:16 +0800
committerpav <pav@FreeBSD.org>2004-01-25 20:17:16 +0800
commit93daa6390c0aaaecd4704783d8a27dc1b69345e7 (patch)
treef059e2007a3c6682663c28b048b57c4264ad1e8d /audio/boodler
parent44534ac78814dc44fff13828ce500a0cd86130b9 (diff)
downloadfreebsd-ports-gnome-93daa6390c0aaaecd4704783d8a27dc1b69345e7.tar.gz
freebsd-ports-gnome-93daa6390c0aaaecd4704783d8a27dc1b69345e7.tar.zst
freebsd-ports-gnome-93daa6390c0aaaecd4704783d8a27dc1b69345e7.zip
- 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
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