[143039] trunk/dports/devel

raimue at macports.org raimue at macports.org
Sat Dec 12 08:17:59 PST 2015


Revision: 143039
          https://trac.macports.org/changeset/143039
Author:   raimue at macports.org
Date:     2015-12-02 06:18:42 -0800 (Wed, 02 Dec 2015)
Log Message:
-----------
devel/libvterm:
New port, a library for a VT220 terminal emulator

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

Added: trunk/dports/devel/libvterm/Portfile
===================================================================
--- trunk/dports/devel/libvterm/Portfile	                        (rev 0)
+++ trunk/dports/devel/libvterm/Portfile	2015-12-02 14:18:42 UTC (rev 143039)
@@ -0,0 +1,46 @@
+# -*- 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
+
+name                libvterm
+set bzr_rev         679
+set git_rev         04781d37ce5af3f580376dc721bd3b89c434966b
+version             0.0.${bzr_rev}
+categories          devel
+platforms           darwin
+maintainers         raimue \
+                    openmaintainer
+license             MIT
+
+description         A library for a VT220/xterm/ECMA-48 terminal emulator
+  
+long_description \
+    An abstract C99 library which implements a VT220 or xterm-like terminal \
+    emulator. It doesn't use any particular graphics toolkit or output system, \
+    instead it invokes callback function pointers that its embedding program \
+    should provide it to draw on its behalf. It avoids calling malloc() during \
+    normal running state, allowing it to be used in embedded kernel situations.
+
+homepage            http://www.leonerd.org.uk/code/libvterm/
+
+# fetch from github mirror as launchpad regenerates the tarball for every
+# download with new checksums
+master_sites        https://github.com/neovim/libvterm/archive/
+distname            ${git_rev}
+worksrcdir          ${name}-${git_rev}
+
+checksums           rmd160  97d6212bb52b64cfb282c947e053e5e07418c790 \
+                    sha256  3704b7e151579c12909d87f11b7f5dc99f8b02a1d2d32cd341becd5fba71c547
+
+depends_build       port:libtool \
+                    port:pkgconfig
+
+use_configure no
+
+build.args          PREFIX=${prefix}
+build.env-append    CC=${configure.cc} \
+                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
+                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
+
+destroot.args       ${build.args}


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

Added: trunk/dports/devel/libvterm/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/libvterm/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/devel/libvterm/files/patch-Makefile.diff	2015-12-02 14:18:42 UTC (rev 143039)
@@ -0,0 +1,30 @@
+--- Makefile.orig	2015-10-03 19:37:52.000000000 +0200
++++ Makefile	2015-10-03 19:39:01.000000000 +0200
+@@ -19,25 +19,14 @@
+   LDFLAGS+=-pg
+ endif
+ 
+-ifeq ($(shell pkg-config --atleast-version=0.1.0 unibilium && echo 1),1)
+-  CFLAGS +=$(shell pkg-config --cflags unibilium) -DHAVE_UNIBILIUM
+-  LDFLAGS+=$(shell pkg-config --libs   unibilium)
+-else ifeq ($(shell pkg-config ncursesw && echo 1),1)
+-  CFLAGS +=$(shell pkg-config --cflags ncursesw)
+-  LDFLAGS+=$(shell pkg-config --libs   ncursesw)
+-else
+-  LDFLAGS+=-lncurses
+-endif
++CFLAGS +=$(shell pkg-config --cflags ncursesw)
++LDFLAGS+=$(shell pkg-config --libs   ncursesw)
+ 
+ OBJECTS=termkey.lo driver-csi.lo driver-ti.lo
+ LIBRARY=libtermkey.la
+ 
+ DEMOS=demo demo-async
+ 
+-ifeq ($(shell pkg-config glib-2.0 && echo 1),1)
+-  DEMOS+=demo-glib
+-endif
+-
+ DEMO_OBJECTS=$(DEMOS:=.lo)
+ 
+ TESTSOURCES=$(wildcard t/[0-9]*.c)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/453ace32/attachment-0001.html>


More information about the macports-changes mailing list