Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 224829 Details for
Bug 90614
media-libs/portmidi (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
portmidi-200-Makefile.patch
portmidi-200-Makefile.patch (text/plain), 5.17 KB, created by
Samuli Suominen (RETIRED)
on 2010-03-23 09:30:40 UTC
(
hide
)
Description:
portmidi-200-Makefile.patch
Filename:
MIME Type:
Creator:
Samuli Suominen (RETIRED)
Created:
2010-03-23 09:30:40 UTC
Size:
5.17 KB
patch
obsolete
>diff -ur portmidi.orig/pm_linux/Makefile portmidi/pm_linux/Makefile >--- portmidi.orig/pm_linux/Makefile 2009-01-20 06:01:54.000000000 +0200 >+++ portmidi/pm_linux/Makefile 2010-03-23 11:28:41.000000000 +0200 >@@ -30,11 +30,11 @@ > # ALSALIB = > # VFLAGS = -DPMNULL > >-pmlib = pm_linux/libportmidi.a >+pmlib = pm_linux/libportmidi.so > >-ptlib = porttime/libporttime.a >+ptlib = porttime/libporttime.so > >-CC = gcc $(VFLAGS) $(PMFLAGS) -g -Ipm_common -Iporttime >+CFLAGS += -fPIC $(VFLAGS) $(PMFLAGS) -Ipm_common -Iporttime > > pmobjects = pm_common/pmutil.o $(versions) pm_linux/pmlinux.o \ > pm_common/portmidi.o pm_linux/finddefault.o >@@ -44,58 +44,58 @@ > current: all > > all: $(pmlib) $(ptlib) pm_test/test pm_test/sysex pm_test/midithread \ >- pm_test/latency pm_test/midithru pm_test/qtest pm_test/mm \ >- pm_java/pmjni/libpmjni.so pm_java/pmdefaults/pmdefaults.jar >+ pm_test/latency pm_test/midithru pm_test/qtest pm_test/mm >+# pm_java/pmjni/libpmjni.so pm_java/pmdefaults/pmdefaults.jar > >-$(pmlib): pm_linux/Makefile $(pmobjects) >- ar -cr $(pmlib) $(pmobjects) >+$(pmlib): pm_linux/Makefile $(pmobjects) $(ptlib) >+ $(CC) $(LDFLAGS) $(CFLAGS) -shared -o $(pmlib) $(pmobjects) $(ALSALIB) -Lporttime -lporttime > > $(ptlib): pm_linux/Makefile $(ptobjects) >- ar -cr $(ptlib) $(ptobjects) >+ $(CC) $(LDFLAGS) $(CFLAGS) -shared -o $(ptlib) $(ptobjects) -lpthread > > pm_linux/pmlinuxalsa.o: pm_linux/Makefile pm_linux/pmlinuxalsa.c pm_linux/pmlinuxalsa.h >- $(CC) -c pm_linux/pmlinuxalsa.c -o pm_linux/pmlinuxalsa.o >+ $(CC) $(CFLAGS) -c pm_linux/pmlinuxalsa.c -o pm_linux/pmlinuxalsa.o > > #---------- test programs ------------ > > > > pm_test/test: pm_linux/Makefile pm_test/test.o $(pmlib) $(ptlib) >- $(CC) pm_test/test.o -o pm_test/test $(pmlib) $(ptlib) $(ALSALIB) >+ $(CC) $(LDFLAGS) $(CFLAGS) pm_test/test.o -o pm_test/test $(pmlib) $(ptlib) $(ALSALIB) > > pm_test/sysex: pm_linux/Makefile pm_test/sysex.o $(pmlib) $(ptlib) >- $(CC) pm_test/sysex.o -o pm_test/sysex $(pmlib) $(ptlib) $(ALSALIB) >+ $(CC) $(LDFLAGS) $(CFLAGS) pm_test/sysex.o -o pm_test/sysex $(pmlib) $(ptlib) $(ALSALIB) > > pm_test/midithread: pm_linux/Makefile pm_test/midithread.o $(pmlib) $(ptlib) >- $(CC) pm_test/midithread.o -o pm_test/midithread \ >+ $(CC) $(LDFLAGS) $(CFLAGS) pm_test/midithread.o -o pm_test/midithread \ > $(pmlib) $(ptlib) $(ALSALIB) > >-pm_test/latency: pm_linux/Makefile $(ptlib) pm_test/latency.o >- $(CC) pm_test/latency.o -o pm_test/latency $(pmlib) $(ptlib) \ >+pm_test/latency: pm_linux/Makefile $(pmlib) $(ptlib) pm_test/latency.o >+ $(CC) $(LDFLAGS) $(CFLAGS) pm_test/latency.o -o pm_test/latency $(pmlib) $(ptlib) \ > $(ALSALIB) -lpthread -lm > >-pm_test/midithru: pm_linux/Makefile $(ptlib) pm_test/midithru.o >- $(CC) pm_test/midithru.o -o pm_test/midithru $(pmlib) $(ptlib) \ >+pm_test/midithru: pm_linux/Makefile $(pmlib) $(ptlib) pm_test/midithru.o >+ $(CC) $(LDFLAGS) $(CFLAGS) pm_test/midithru.o -o pm_test/midithru $(pmlib) $(ptlib) \ > $(ALSALIB) -lpthread -lm > >-pm_test/mm: pm_linux/Makefile $(ptlib) pm_test/mm.o >- $(CC) pm_test/mm.o -o pm_test/mm $(pmlib) $(ptlib) \ >+pm_test/mm: pm_linux/Makefile $(pmlib) $(ptlib) pm_test/mm.o >+ $(CC) $(LDFLAGS) $(CFLAGS) pm_test/mm.o -o pm_test/mm $(pmlib) $(ptlib) \ > $(ALSALIB) -lpthread -lm > > porttime/ptlinux.o: pm_linux/Makefile porttime/ptlinux.c >- $(CC) -c porttime/ptlinux.c -o porttime/ptlinux.o >+ $(CC) $(CFLAGS) -c porttime/ptlinux.c -o porttime/ptlinux.o > > pm_test/qtest: pm_linux/Makefile pm_test/qtest.o $(pmlib) $(ptlib) >- $(CC) pm_test/qtest.o -o pm_test/qtest $(pmlib) $(ptlib) $(ALSALIB) >+ $(CC) $(LDFLAGS) $(CFLAGS) pm_test/qtest.o -o pm_test/qtest $(pmlib) $(ptlib) $(ALSALIB) > > #------------ Java stuff here -------------- > > pm_java/pmjni/libpmjni.so: pm_java/pmjni/pmjni.c \ > pm_java/pmjni/jportmidi_JportMidiApi.h >- gcc -o $@ -shared -Wl,-soname,libpmjni.so \ >+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ -shared -Wl,-soname,libpmjni.so \ > -lgcj -fPIC \ > -Ipm_common -Iporttime -Ipm_java/pmjni \ >- pm_java/pmjni/pmjni.c -static -lc $(pmlib) $(ptlib) $(ALSALIB) >+ pm_java/pmjni/pmjni.c -static -lc -lportmidi -Lporttime -lporttime $(ALSALIB) > > #pm_java/pmjni/pmjni.so: pm_java/pmjni/pmjni.o \ > # pm_java/pmjni/jportmidi_JportMidiApi.h >@@ -146,11 +146,17 @@ > # just in case, make it executable > cd pm_java; chmod +x pmdefaults/pmdefaults > >-install: >- cp pm_java/pmjni/libpmjni.so /usr/local/lib >- cp pm_java/pmdefaults.jar /usr/share/java >- # do not chmod +x here since we are probably root >- cp pm_java/pmdefaults/pmdefaults /usr/local/bin >+#install: >+# cp pm_java/pmjni/libpmjni.so /usr/local/lib >+# cp pm_java/pmdefaults.jar /usr/share/java >+# # do not chmod +x here since we are probably root >+# cp pm_java/pmdefaults/pmdefaults /usr/local/bin >+ >+install: all >+ install -D -m755 $(pmlib) $(DESTDIR)/usr/$(LIBDIR)/libportmidi.so >+ install -D -m644 pm_common/portmidi.h $(DESTDIR)/usr/include/portmidi.h >+ install -D -m755 $(ptlib) $(DESTDIR)/usr/$(LIBDIR)/libporttime.so >+ install -D -m644 porttime/porttime.h $(DESTDIR)/usr/include/porttime.h > > clean: > rm -f *.o *~ core* */*.o */*.so */*~ */core* pm_test/*/pm_dll.dll
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 90614
:
57388
|
57409
|
95807
|
100760
|
100761
|
101587
|
101588
|
214074
|
214075
|
218907
|
218909
|
218915
|
218917
|
224827
| 224829 |
225995
|
226031
|
226033
|
226035
|
226047
|
226335
|
226337
|
226339
|
228581
|
228585
|
251163
|
251165
|
251167
|
251211
|
251213
|
251309
|
253397
|
253399
|
253401
|
268205
|
289943
|
289945
|
290041
|
297469