mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00: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,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>
|
||||
|
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
|
||||
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/Changelog.old
|
||||
%%PORTDOCS%%%%DOCSDIR%%/GPL
|
||||
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/TODO
|
||||
|
Loading…
Reference in New Issue
Block a user