[85096] users/cal/ports

cal at macports.org cal at macports.org
Sun Oct 9 13:39:12 PDT 2011


Revision: 85096
          http://trac.macports.org/changeset/85096
Author:   cal at macports.org
Date:     2011-10-09 13:39:08 -0700 (Sun, 09 Oct 2011)
Log Message:
-----------
user port: x11/herbstluftwm

Added Paths:
-----------
    users/cal/ports/x11/
    users/cal/ports/x11/herbstluftwm/
    users/cal/ports/x11/herbstluftwm/Portfile
    users/cal/ports/x11/herbstluftwm/files/
    users/cal/ports/x11/herbstluftwm/files/config.patch

Added: users/cal/ports/x11/herbstluftwm/Portfile
===================================================================
--- users/cal/ports/x11/herbstluftwm/Portfile	                        (rev 0)
+++ users/cal/ports/x11/herbstluftwm/Portfile	2011-10-09 20:39:08 UTC (rev 85096)
@@ -0,0 +1,51 @@
+# -*- 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                    herbstluftwm
+version                 0.1
+categories              x11 x11-wm
+license                 BSD
+maintainers             cal openmaintainer
+
+description             herbstluftwm is a very configurable tiling window manager
+long_description        \
+    herbstluftwm is a tiling window manager written from scratch supporting \
+    tags, multiple monitors and a flexible configuration.
+
+notes "In order to run herbstluftwm, you need to run the following commands as your user:
+    mkdir -p ~/.config/herbstluftwm
+    cp ${prefix}/etc/xdg/herbstluftwm/autostart ~/.config/herbstluftwm/autostart
+To make herbstluftwm your default X11 window manager, create a file named
+herbstluftwm.sh in your ~/.xinitrc.d directory (creating it if it doesn't exist) with
+the following contents:
+    USERWM=${prefix}/bin/herbstluftwm"
+
+homepage                http://wwwcip.cs.fau.de/~re06huxa/herbstluftwm/
+fetch.type              git
+git.url                 git://git.cs.fau.de/re06huxa/herbstluftwm
+git.branch              v${version}
+
+patchfiles              config.patch
+
+depends_build           bin:a2x:asciidoc
+
+depends_lib             port:glib2 \
+                        port:xorg-libX11
+
+# declare universal variant, so get_canonical_archflags works
+variant universal       {}
+
+use_configure           no
+
+build.args-append       CC=${configure.compiler} \
+                        LD=${configure.compiler} \
+                        EXTRACFLAGS="${configure.cflags} [get_canonical_archflags]" \
+                        EXTRALDFLAGS="${configure.ldflags} [get_canonical_archflags]" \
+                        TPUT=true
+
+destroot.args-append    PREFIX=${destroot}/${prefix} \
+                        ETCDIR=${destroot}/${prefix}/etc/ \
+                        TPUT=true
+


Property changes on: users/cal/ports/x11/herbstluftwm/Portfile
___________________________________________________________________
Added: svn:eol-style:native
   + 
Added: svn:keywords
   + Id

Added: users/cal/ports/x11/herbstluftwm/files/config.patch
===================================================================
--- users/cal/ports/x11/herbstluftwm/files/config.patch	                        (rev 0)
+++ users/cal/ports/x11/herbstluftwm/files/config.patch	2011-10-09 20:39:08 UTC (rev 85096)
@@ -0,0 +1,28 @@
+--- config.mk.orig	2011-10-09 21:06:21.000000000 +0200
++++ config.mk	2011-10-09 21:56:01.000000000 +0200
+@@ -1,7 +1,7 @@
+ 
+ # paths
+-X11INC = /usr/X11R6/include
+-X11LIB = /usr/X11R6/lib
++X11INC = /opt/local/include/X11
++X11LIB = /opt/local/lib
+ 
+ INCS = -Isrc/ -I/usr/include -I${X11INC}  `pkg-config --cflags glib-2.0`
+ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 `pkg-config --libs glib-2.0`
+@@ -9,13 +9,13 @@
+ # FLAGS
+ LD = gcc
+ CC = gcc
+-CFLAGS = -g -std=c99 -pedantic -Wall ${INCS} -D _XOPEN_SOURCE=600
++CFLAGS = -g -std=c99 -pedantic -Wall ${INCS} -D _XOPEN_SOURCE=600 ${EXTRACFLAGS}
+ VERSIONFLAGS = \
+     -D HERBSTLUFT_VERSION=$(VERSION) \
+     -D HERBSTLUFT_VERSION_MAJOR=$(VERSION_MAJOR) \
+     -D HERBSTLUFT_VERSION_MINOR=$(VERSION_MINOR)
+ CFLAGS += $(VERSIONFLAGS)
+-LDFLAGS = -g ${LIBS}
++LDFLAGS = -g ${LIBS} ${EXTRALDFLAGS}
+ PREFIX = ./build
+ BINDIR = $(PREFIX)/bin
+ SHAREDIR = $(PREFIX)/share
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111009/53f3cccf/attachment.html>


More information about the macports-changes mailing list