aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/pawm
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2013-12-24 21:06:11 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2013-12-24 21:06:11 +0000
commit123411e1ee17366ee88efd54b8482949b8e76eb5 (patch)
treed33ef3d6f0a4ffcc1d2941e1386c7a50e1283cbc /x11-wm/pawm
parenta92c9005000e8a949096dac850fec655a64596ba (diff)
downloadports-123411e1ee17366ee88efd54b8482949b8e76eb5.tar.gz
ports-123411e1ee17366ee88efd54b8482949b8e76eb5.zip
Notes
Diffstat (limited to 'x11-wm/pawm')
-rw-r--r--x11-wm/pawm/Makefile20
-rw-r--r--x11-wm/pawm/files/patch-CMakeLists.txt19
-rw-r--r--x11-wm/pawm/pkg-plist1
3 files changed, 27 insertions, 13 deletions
diff --git a/x11-wm/pawm/Makefile b/x11-wm/pawm/Makefile
index 677811d35eef..08b9cd9a17e2 100644
--- a/x11-wm/pawm/Makefile
+++ b/x11-wm/pawm/Makefile
@@ -3,12 +3,15 @@
PORTNAME= pawm
PORTVERSION= 2.3.0
+PORTREVISION= 1
CATEGORIES= x11-wm
MASTER_SITES= http://www.pleyades.net/pawm/files/
MAINTAINER= ports@FreeBSD.org
COMMENT= The Puto Amo Window Manager
+LICENSE= GPLv2
+
USE_BZIP2= yes
USE_XORG= x11 xft xrandr xrender xpm
USES= cmake pkgconfig
@@ -16,26 +19,19 @@ CMAKE_ARGS= -DCMAKE_CONFIG_PREFIX:STRING="${PREFIX}/etc" \
-DX11_LIBRARY_DIRS:STRING="${LOCALBASE}/lib"
LDFLAGS+= -L${LOCALBASE}/lib -lXext -lXrender
-.if defined(WITH_SN)
-LIB_DEPENDS+= startup-notification-1.0:${PORTSDIR}/x11/startup-notification
-CFLAGS+= -DENABLE_STARTUP -DSN_API_NOT_YET_FROZEN \
- `pkg-config --cflags --libs libstartup-notification-1.0`
-.endif
+OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
post-patch:
- @${REINPLACE_CMD} -e \
+ ${REINPLACE_CMD} -e \
'/"\/etc"/s|^|#| ; \
/"-O2"/s|^|#| ; \
/LINK_DIRECTORIES/s|\.|| ; \
/INSTALL/s| /etc| etc|' ${WRKSRC}/CMakeLists.txt
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for ii in AUTHORS Changelog.old GPL INSTALL README TODO
- ${INSTALL_DATA} ${WRKSRC}/${ii} ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for ii in AUTHORS Changelog.old INSTALL README TODO
+ ${INSTALL_DATA} ${WRKSRC}/${ii} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/x11-wm/pawm/files/patch-CMakeLists.txt b/x11-wm/pawm/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..c53e77236676
--- /dev/null
+++ b/x11-wm/pawm/files/patch-CMakeLists.txt
@@ -0,0 +1,19 @@
+--- CMakeLists.txt.orig 2013-12-24 22:52:47.000000000 +0200
++++ CMakeLists.txt 2013-12-24 22:53:02.000000000 +0200
+@@ -39,6 +39,7 @@
+ ENDIF (NOT XRANDR_FOUND)
+
+ FIND_PACKAGE(Freetype REQUIRED)
++FIND_PACKAGE(X11 REQUIRED)
+
+ # FIXME: Check if CMAKE_CONFIG_PREFIX is being set ok
+ SET(CMAKE_CONFIG_PREFIX "/etc")
+@@ -56,7 +57,7 @@
+ SET (CMAKE_C_FLAGS "-O2")
+ ENDIF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
+
+-INCLUDE_DIRECTORIES(. ${FREETYPE_INCLUDE_DIRS} ${X11_INCLUDE_DIRS})
++INCLUDE_DIRECTORIES(. ${FREETYPE_INCLUDE_DIRS} ${X11_INCLUDE_DIR})
+ LINK_DIRECTORIES (. ${X11_LIBRARY_DIRS})
+ LINK_LIBRARIES (-lm ${X11_LIBRARIES} ${XFT_LIBRARIES} ${XPM_LIBRARIES} ${XRANDR_LIBRARIES})
+ ADD_CUSTOM_TARGET(signals.c DEPENDS src/signals.h src/signals.c)
diff --git a/x11-wm/pawm/pkg-plist b/x11-wm/pawm/pkg-plist
index c137553c0e8b..2a7e7b316e4d 100644
--- a/x11-wm/pawm/pkg-plist
+++ b/x11-wm/pawm/pkg-plist
@@ -2,7 +2,6 @@ bin/pawm
etc/pawm.conf
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/Changelog.old
-%%PORTDOCS%%%%DOCSDIR%%/GPL
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO