[MacPorts] #26992: qscintilla : enable universal variant
MacPorts
noreply at macports.org
Mon Oct 25 03:02:34 PDT 2010
#26992: qscintilla : enable universal variant
-------------------------------+--------------------------------------------
Reporter: petr@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.1
Keywords: | Port: qscintilla
-------------------------------+--------------------------------------------
currently building qscintilla with "universal" variant is not available.
Port contains "universal_variant no"
But anyway I'm able to build it as an universal lib with simple patch file
{{{
--- Portfile.local 2010-10-25 11:57:51.000000000 +0200
+++ Portfile 2010-10-25 11:42:20.000000000 +0200
@@ -39,7 +39,8 @@
sha1 2401c2214ba0377ad61855c0fac6f6c7c95801d6 \
rmd160 d96cf05c879f314ee828ec6a1609bd1864692bd6
-universal_variant no
+universal_variant yes
+patchfiles patch-Qt4-qscintilla.pro.diff
post-patch {
# fix up 'Platform.h's, to avoid a conflict with the port 'tidy's
}}}
and the patch-Qt4-qscintilla.pro.diff contains only this change:
{{{
Index: Qt4/qscintilla.pro
===========================================================
--- Qt4/qscintilla.pro 2010-10-15 11:15:11.000000000 +0200
+++ Qt4/qscintilla.pro 2010-10-15 11:16:20.000000000 +0200
@@ -34,6 +34,7 @@
TEMPLATE = lib
TARGET = qscintilla2
CONFIG += qt warn_off release dll thread
+CONFIG += x86 x86_64
INCLUDEPATH = . ../include ../src
DEFINES = QSCINTILLA_MAKE_DLL QT SCI_LEXER
}}}
well, I don't know if it can be done in some abstract way - to use
architectures specified in macports universal config for that patch
file... Please, take it as a proof of concept (working in real life
applications ;))
--
Ticket URL: <https://trac.macports.org/ticket/26992>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list