svn commit: r344213 - in head/x11-wm/obpager: . files
Pietro Cerutti
gahr at FreeBSD.org
Fri Feb 14 14:36:59 UTC 2014
Author: gahr
Date: Fri Feb 14 14:36:58 2014
New Revision: 344213
URL: http://svnweb.freebsd.org/changeset/ports/344213
QAT: https://qat.redports.org/buildarchive/r344213/
Log:
- STAGE-clean
- Add LICENSE
- Fix compiler warnings
Added:
head/x11-wm/obpager/files/patch-src_OBPager.cc (contents, props changed)
head/x11-wm/obpager/files/patch-src_OBPager.h (contents, props changed)
Modified:
head/x11-wm/obpager/Makefile
Modified: head/x11-wm/obpager/Makefile
==============================================================================
--- head/x11-wm/obpager/Makefile Fri Feb 14 14:33:59 2014 (r344212)
+++ head/x11-wm/obpager/Makefile Fri Feb 14 14:36:58 2014 (r344213)
@@ -7,22 +7,23 @@ CATEGORIES= x11-wm
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= gahr at FreeBSD.org
-COMMENT= A lightweight pager for netwm compatible window managers
+COMMENT= Lightweight pager for netwm compatible window managers
+
+LICENSE= GPLv2
BUILD_DEPENDS= gsed:${PORTSDIR}/textproc/gsed
+USES= gmake
USE_XORG= x11 xext
-USE_GMAKE= yes
PLIST_FILES= bin/${PORTNAME}
-NO_STAGE= yes
post-patch:
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g; \
s|%%LOCALBASE%%|${LOCALBASE}|g; \
s|%%CXX%%|${CXX}|g; \
s|sed|gsed|g' ${WRKSRC}/Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
Added: head/x11-wm/obpager/files/patch-src_OBPager.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11-wm/obpager/files/patch-src_OBPager.cc Fri Feb 14 14:36:58 2014 (r344213)
@@ -0,0 +1,20 @@
+--- src/OBPager.cc.orig 2014-02-14 15:35:01.000000000 +0100
++++ src/OBPager.cc 2014-02-14 15:39:12.000000000 +0100
+@@ -159,7 +159,7 @@
+ * @param displayName is the name of the display to connect to
+ */
+
+-void OBPager::connectToXServer(char *displayName)
++void OBPager::connectToXServer(const char *displayName)
+ {
+ // Connect to the user-specified desktop or whatever is in $DISPLAY?
+
+@@ -301,7 +301,7 @@
+ int maxHeight = height;
+ int minWidth = width;
+ int minHeight = height;
+- char* appName = APPLET_NAME;
++ char appName[] = APPLET_NAME;
+ unsigned long borderColour = BlackPixel(mDisplay(), mScreenNum);
+ unsigned long backgroundColour = BlackPixel(mDisplay(), mScreenNum);
+
Added: head/x11-wm/obpager/files/patch-src_OBPager.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/x11-wm/obpager/files/patch-src_OBPager.h Fri Feb 14 14:36:58 2014 (r344213)
@@ -0,0 +1,11 @@
+--- src/OBPager.h.orig 2014-02-14 15:36:36.000000000 +0100
++++ src/OBPager.h 2014-02-14 15:37:08.000000000 +0100
+@@ -63,7 +63,7 @@
+ ~OBPager();
+
+ /// Connect to a specified X server display, or the default display
+- void connectToXServer(char *displayName = NULL);
++ void connectToXServer(const char *displayName = NULL);
+
+ /// Create and show the X window
+ void createShowWindow();
More information about the svn-ports-all
mailing list