freebsd-ports/x11-wm/pawm/Makefile
John Marino 4ede5e9b24 Explicitly link libraries on 10 unmaintained ports
The following ports will not build with a binutils 2.22+ linker built
with standard options.  This has been obvious with DPorts, but difficult
to see on FreeBSD.  However, setting the ports compiler as a recent gcc
(e.g lang/gcc48) is an excellent way to detect the unspecified but needed
libraries as these recent GCC compilers use the latest binutils linkers.
These patches were tested on FreeBSD 8.4 and DragonFly 3.5
2013-10-08 00:15:34 +00:00

41 lines
1 KiB
Makefile

# Created by: trevor
# $FreeBSD$
PORTNAME= pawm
PORTVERSION= 2.3.0
CATEGORIES= x11-wm
MASTER_SITES= http://www.pleyades.net/pawm/files/
MAINTAINER= ports@FreeBSD.org
COMMENT= The Puto Amo Window Manager
USE_BZIP2= yes
USE_XORG= x11 xft xrandr xrender xpm
USES= cmake pkgconfig
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
NO_STAGE= yes
post-patch:
@${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}
.endfor
.endif
.include <bsd.port.mk>