[152635] trunk/dports/devel

ryandesign at macports.org ryandesign at macports.org
Tue Sep 13 19:49:10 PDT 2016


Revision: 152635
          https://trac.macports.org/changeset/152635
Author:   ryandesign at macports.org
Date:     2016-09-13 19:49:10 -0700 (Tue, 13 Sep 2016)
Log Message:
-----------
libpointing: new port, version 1.0.1 (#51737)

Added Paths:
-----------
    trunk/dports/devel/libpointing/
    trunk/dports/devel/libpointing/Portfile
    trunk/dports/devel/libpointing/files/
    trunk/dports/devel/libpointing/files/patch-Makefile.diff

Added: trunk/dports/devel/libpointing/Portfile
===================================================================
--- trunk/dports/devel/libpointing/Portfile	                        (rev 0)
+++ trunk/dports/devel/libpointing/Portfile	2016-09-14 02:49:10 UTC (rev 152635)
@@ -0,0 +1,40 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           cxx11 1.0
+PortGroup           github 1.0
+
+github.setup        INRIA libpointing 1.0.1 v
+categories          devel
+platforms           darwin
+maintainers         gmail.com:christian.frisson inria.fr:izzatbek.mukhanov openmaintainer
+license             GPL-2+
+
+description         An open-source cross-platform library to get raw events \
+                    from pointing devices and master transfer functions.
+
+long_description    Libpointing is an open-source cross-platform library \
+                    that provides direct access to HID pointing devices \
+                    and supports the design of pointing transfer functions.
+
+homepage            http://libpointing.org
+github.tarball_from releases
+distname            ${name}-mac-${version}
+worksrcdir          ${name}-${version}
+
+checksums           rmd160  d767c4ce32c80ce52aee3c104caf23f47e133fbd \
+                    sha256  46e2cefa7eb41b9f0c4e5e9b9307ce50e5a36b7a986606e1f759ec6b4efb1204
+
+patchfiles          patch-Makefile.diff
+
+use_configure       no
+
+variant universal {}
+
+build.env           CXX="${configure.cxx}" \
+                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
+                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \
+                    PREFIX=${prefix}
+
+destroot.env        PREFIX=${prefix}


Property changes on: trunk/dports/devel/libpointing/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/libpointing/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/libpointing/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/devel/libpointing/files/patch-Makefile.diff	2016-09-14 02:49:10 UTC (rev 152635)
@@ -0,0 +1,54 @@
+--- Makefile.orig	2016-08-31 08:02:05.000000000 -0500
++++ Makefile	2016-09-13 21:39:52.000000000 -0500
+@@ -1,6 +1,5 @@
+-ifndef PREFIX
+-	PREFIX = /usr/local
+-endif
++PREFIX ?= /usr/local
++DESTDIR ?=
+ 
+ LIBPOINTING = libpointing.dylib
+ 
+@@ -8,10 +7,10 @@
+ 
+ SOURCES = src/pointing/utils/Base64.cpp src/pointing/utils/ByteOrder.cpp src/pointing/utils/FileUtils.cpp src/pointing/utils/TimeStamp.cpp src/pointing/utils/URI.cpp src/pointing/utils/ConfigDict.cpp src/pointing/utils/HIDItem.cpp src/pointing/utils/HIDReportParser.cpp src/pointing/utils/PointingCursor.cpp src/pointing/input/PointingDevice.cpp src/pointing/input/DummyPointingDevice.cpp src/pointing/output/DisplayDevice.cpp src/pointing/output/DisplayDeviceManager.cpp src/pointing/output/DummyDisplayDevice.cpp src/pointing/transferfunctions/Composition.cpp src/pointing/transferfunctions/ConstantFunction.cpp src/pointing/transferfunctions/NaiveConstantFunction.cpp src/pointing/transferfunctions/SigmoidFunction.cpp src/pointing/transferfunctions/TransferFunction.cpp src/pointing/transferfunctions/SubPixelFunction.cpp src/pointing/transferfunctions/Interpolation.cpp src/pointing/input/PointingDeviceManager.cpp src/pointing/input/SystemPointingDevice.cpp src/pointing/utils/osx/o
 sxPlistUtils.cpp src/pointing/input/osx/osxPointingDevice.cpp src/pointing/input/osx/osxHIDUtils.cpp src/pointing/input/osx/osxPrivateMultitouchDevice.cpp src/pointing/input/osx/osxPointingDeviceManager.cpp src/pointing/output/osx/osxDisplayDevice.cpp src/pointing/output/osx/osxDisplayDeviceManager.cpp src/pointing/transferfunctions/osx/osxSystemPointerAcceleration.cpp src/pointing-xorg/transferfunctions/XorgFunction.cpp
+ 
+-CXX      = g++ -stdlib=libc++
+-CPPFLAGS = -Iinclude -DPOINTING_XORG
+-CXXFLAGS = -mmacosx-version-min=10.7 -std=c++11
+-LDFLAGS  = -Llib -F/System/Library/PrivateFrameworks -mmacosx-version-min=10.7
++CXX      ?= g++
++CPPFLAGS := -Iinclude -DPOINTING_XORG $(CPPFLAGS)
++CXXFLAGS := -std=c++11 -stdlib=libc++ $(CXXFLAGS)
++LDFLAGS  := -Llib -F/System/Library/PrivateFrameworks $(LDFLAGS)
+ LIBS     = -framework MultitouchSupport -framework IOKit -framework CoreFoundation -framework ApplicationServices -framework AppKit
+ 
+ OBJECTS = $(SOURCES:.cpp=.o)
+@@ -19,7 +18,7 @@
+ all: lib/$(LIBPOINTING)
+ 
+ lib/$(LIBPOINTING): $(OBJECTS)
+-	$(CXX) -shared -o $@ $^ $(LDFLAGS) $(LIBS)
++	$(CXX) -dynamiclib -install_name $(PREFIX)/lib/$(LIBPOINTING) -o $@ $^ $(LDFLAGS) $(LIBS)
+ 
+ src/simpletest: src/simpletest.cpp
+ 	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS) -lpointing
+@@ -31,12 +30,12 @@
+ distclean: clean
+ 	rm -f lib/$(LIBPOINTING)
+ install:
+-	mkdir -p $(PREFIX)/include
+-	cp -r include/pointing $(PREFIX)/include
+-	cp -r include/pointing-xorg $(PREFIX)/include
+-	cp -r include/pointing-echomouse $(PREFIX)/include
+-	mkdir -p $(PREFIX)/lib
+-	cp -r lib $(PREFIX)
++	mkdir -p $(DESTDIR)$(PREFIX)/include
++	cp -R include/pointing $(DESTDIR)$(PREFIX)/include
++	cp -R include/pointing-xorg $(DESTDIR)$(PREFIX)/include
++	cp -R include/pointing-echomouse $(DESTDIR)$(PREFIX)/include
++	mkdir -p $(DESTDIR)$(PREFIX)/lib
++	cp -R lib $(DESTDIR)$(PREFIX)
+ uninstall:
+ 	rm -rf $(PREFIX)/include/pointing
+ 	rm -rf $(PREFIX)/include/pointing-xorg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160913/1e140b2a/attachment.html>


More information about the macports-changes mailing list