Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=a7ab3aeff1321d1eaeb962151dc20bff9131a156

commit a7ab3aeff1321d1eaeb962151dc20bff9131a156
Author: Marius Cirsta <[email protected]>
Date:   Mon Feb 24 02:49:32 2014 +0200

portmidi-217-2-x86_64

* fix install path

diff --git a/source/multimedia-extra/portmidi/FrugalBuild 
b/source/multimedia-extra/portmidi/FrugalBuild
index 14a7fee..eadc981 100644
--- a/source/multimedia-extra/portmidi/FrugalBuild
+++ b/source/multimedia-extra/portmidi/FrugalBuild
@@ -5,7 +5,7 @@ options+=('asneeded')

pkgname=portmidi
pkgver=217
-pkgrel=1
+pkgrel=2
pkgdesc="Platform independent library for real-time MIDI input/output."
archs=('i686' 'x86_64')
url='http://portmedia.sourceforge.net/'
@@ -23,17 +23,19 @@ _F_cmake_confopts="-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release"
Finclude cmake sourceforge openjava
source=("http://downloads.sourceforge.net/project/portmedia/${pkgname}/${pkgver}/${pkgname}-src-${pkgver}.zip";
 \
-       portmidi-217-build-fix.patch)
+       portmidi-217-build-fix.patch path-fix.patch java-fix.patch)
sha1sums=('f45bf4e247c0d7617deacd6a65d23d9fddae6117' \
-          'a89b80531ccc823ba267aaf21920e59deec80e99')
+          'a89b80531ccc823ba267aaf21920e59deec80e99' \
+          '755457a05a9303a0f7953975834531a96ac8a027' \
+          'aa3f2240a63c8890dc53382575522e010cdb6af4')

build() {
Fcd
-  Fsed "#/usr/local" "#/usr#" CMakeLists.txt
-  Fsed "#/usr/local" "#/usr#" pm_python/setup.py

mkdir -p pm_java/Release || Fdie

+  unset MAKEFLAGS
+
CMake_build
}

diff --git a/source/multimedia-extra/portmidi/java-fix.patch 
b/source/multimedia-extra/portmidi/java-fix.patch
new file mode 100644
index 0000000..887423a
--- /dev/null
+++ b/source/multimedia-extra/portmidi/java-fix.patch
@@ -0,0 +1,36 @@
+--- portmidi/pm_java/pmdefaults/PmDefaultsFrame.java   2010-09-29 
02:41:47.000000000 +0300
++++ portmidi.new/pm_java/pmdefaults/PmDefaultsFrame.java       2014-02-24 
02:29:31.000000000 +0200
+@@ -103,13 +103,13 @@
+     }
+
+     private JLabel inputLabel;
+-    private JComboBox inputSelection;
++    private JComboBox<String> inputSelection;
+     // inputIds maps from the index of an item in inputSelection to the
+     // device ID. Used to open the selected device.
+     private ArrayList<Integer> inputIds;
+     private ActivityLight inputActivity;
+     private JLabel outputLabel;
+-    private JComboBox outputSelection;
++    private JComboBox<String> outputSelection;
+     // analogous to inputIds, outputIds maps selection index to device ID
+     private ArrayList<Integer> outputIds;
+     private JButton testButton;
+@@ -326,7 +326,7 @@
+         inputLabel.setText("Default Input");
+         wholePanel.add(inputLabel);
+
+-        inputSelection = new JComboBox();
++        inputSelection = new JComboBox<String>();
+         inputSelection.addActionListener(this);
+         inputSelection.setLocation(20, 30);
+         inputSelection.setSize(inputSelection.getPreferredSize());
+@@ -341,7 +341,7 @@
+         outputLabel.setText("Default Output");
+         wholePanel.add(outputLabel);
+
+-        outputSelection = new JComboBox();
++        outputSelection = new JComboBox<String>();
+         outputSelection.addActionListener(this);
+         wholePanel.add(outputSelection);
+         testButton = new JButton();
diff --git a/source/multimedia-extra/portmidi/path-fix.patch 
b/source/multimedia-extra/portmidi/path-fix.patch
new file mode 100644
index 0000000..32ecf21
--- /dev/null
+++ b/source/multimedia-extra/portmidi/path-fix.patch
@@ -0,0 +1,47 @@
+--- portmidi/pm_java/CMakeLists.txt    2014-02-24 01:59:47.000000000 +0200
++++ portmidi.new/pm_java/CMakeLists.txt        2014-02-24 01:57:04.000000000 
+0200
+@@ -38,7 +38,7 @@
+     INSTALL(FILES ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/pmdefaults.jar
+       DESTINATION /usr/share/java)
+     INSTALL(PROGRAMS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/pmdefaults
+-      DESTINATION /usr/local/bin)
++      DESTINATION bin)
+   endif(APPLE)
+ endif(UNIX)
+ # In windows, use pm_java/make.bat
+--- portmidi/pm_common/CMakeLists.txt  2010-09-20 22:57:48.000000000 +0300
++++ portmidi.new/pm_common/CMakeLists.txt      2014-02-24 01:55:57.000000000 
+0200
+@@ -120,8 +120,8 @@
+ # install the libraries (Linux and Mac OS X command line)
+ if(UNIX)
+   INSTALL(TARGETS portmidi-static pmjni
+-    LIBRARY DESTINATION /usr/local/lib
+-    ARCHIVE DESTINATION /usr/local/lib)
++    LIBRARY DESTINATION lib
++    ARCHIVE DESTINATION lib)
+ # .h files installed by pm_dylib/CMakeLists.txt, so don't need them here
+ #  INSTALL(FILES portmidi.h ../porttime/porttime.h
+ #    DESTINATION /usr/local/include)
+--- portmidi/pm_dylib/CMakeLists.txt   2009-11-20 07:41:09.000000000 +0200
++++ portmidi.new/pm_dylib/CMakeLists.txt       2014-02-24 01:59:22.000000000 
+0200
+@@ -59,7 +59,7 @@
+
+     set(JAVAVM_LIB "${FRAMEWORK_PATH}/JavaVM.framework")
+     set(JAVA_INCLUDE_PATHS ${JAVAVM_LIB}/Headers)
+-    set(INSTALL_NAME_DIR "/usr/local/lib")
++    set(INSTALL_NAME_DIR "lib")
+     message(STATUS "SYSROOT: " ${CMAKE_OSX_SYSROOT})
+   else(APPLE)
+     # LINUX settings...
+@@ -120,8 +120,8 @@
+ # install the libraries (Linux and Mac OS X command line)
+ if(UNIX)
+   INSTALL(TARGETS portmidi-dynamic
+-    LIBRARY DESTINATION /usr/local/lib
+-    ARCHIVE DESTINATION /usr/local/lib)
++    LIBRARY DESTINATION lib
++    ARCHIVE DESTINATION lib)
+   INSTALL(FILES ../pm_common/portmidi.h ../porttime/porttime.h
+-    DESTINATION /usr/local/include)
++    DESTINATION include)
+ endif(UNIX)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to