mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Properly look for X11 using CMake and include the appropriate directories
instead of relying on FREETYPE_INCLUDE_DIRS (which will change with the upcoming Freetype 2.5.2 update) to pass -I${LOCALBASE}/include to the compiler. - Support staging. - Set LICENSE (therefore stop installing the license file into DOCSDIR and bump PORTREVISION). - Remove the mysterious WITH_SN check, which was never a proper option and relied on some apparently unstable API (at least it was unstable at the time, almost 8 years ago).
This commit is contained in:
parent
a92c900500
commit
123411e1ee
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337384
3 changed files with 27 additions and 13 deletions
|
@ -3,12 +3,15 @@
|
||||||
|
|
||||||
PORTNAME= pawm
|
PORTNAME= pawm
|
||||||
PORTVERSION= 2.3.0
|
PORTVERSION= 2.3.0
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= x11-wm
|
CATEGORIES= x11-wm
|
||||||
MASTER_SITES= http://www.pleyades.net/pawm/files/
|
MASTER_SITES= http://www.pleyades.net/pawm/files/
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= The Puto Amo Window Manager
|
COMMENT= The Puto Amo Window Manager
|
||||||
|
|
||||||
|
LICENSE= GPLv2
|
||||||
|
|
||||||
USE_BZIP2= yes
|
USE_BZIP2= yes
|
||||||
USE_XORG= x11 xft xrandr xrender xpm
|
USE_XORG= x11 xft xrandr xrender xpm
|
||||||
USES= cmake pkgconfig
|
USES= cmake pkgconfig
|
||||||
|
@ -16,26 +19,19 @@ CMAKE_ARGS= -DCMAKE_CONFIG_PREFIX:STRING="${PREFIX}/etc" \
|
||||||
-DX11_LIBRARY_DIRS:STRING="${LOCALBASE}/lib"
|
-DX11_LIBRARY_DIRS:STRING="${LOCALBASE}/lib"
|
||||||
LDFLAGS+= -L${LOCALBASE}/lib -lXext -lXrender
|
LDFLAGS+= -L${LOCALBASE}/lib -lXext -lXrender
|
||||||
|
|
||||||
.if defined(WITH_SN)
|
OPTIONS_DEFINE= DOCS
|
||||||
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
|
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e \
|
${REINPLACE_CMD} -e \
|
||||||
'/"\/etc"/s|^|#| ; \
|
'/"\/etc"/s|^|#| ; \
|
||||||
/"-O2"/s|^|#| ; \
|
/"-O2"/s|^|#| ; \
|
||||||
/LINK_DIRECTORIES/s|\.|| ; \
|
/LINK_DIRECTORIES/s|\.|| ; \
|
||||||
/INSTALL/s| /etc| etc|' ${WRKSRC}/CMakeLists.txt
|
/INSTALL/s| /etc| etc|' ${WRKSRC}/CMakeLists.txt
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(NOPORTDOCS)
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
@${MKDIR} ${DOCSDIR}
|
.for ii in AUTHORS Changelog.old INSTALL README TODO
|
||||||
.for ii in AUTHORS Changelog.old GPL INSTALL README TODO
|
${INSTALL_DATA} ${WRKSRC}/${ii} ${STAGEDIR}${DOCSDIR}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${ii} ${DOCSDIR}
|
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
19
x11-wm/pawm/files/patch-CMakeLists.txt
Normal file
19
x11-wm/pawm/files/patch-CMakeLists.txt
Normal file
|
@ -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)
|
|
@ -2,7 +2,6 @@ bin/pawm
|
||||||
etc/pawm.conf
|
etc/pawm.conf
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
|
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/Changelog.old
|
%%PORTDOCS%%%%DOCSDIR%%/Changelog.old
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/GPL
|
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
|
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/TODO
|
%%PORTDOCS%%%%DOCSDIR%%/TODO
|
||||||
|
|
Loading…
Add table
Reference in a new issue