mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
32 lines
853 B
Makefile
32 lines
853 B
Makefile
# Created by: Dima Sivachenko <dima@chg.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= flwm
|
|
PORTVERSION= 1.02
|
|
PORTREVISION= 6
|
|
CATEGORIES= x11-wm
|
|
MASTER_SITES= SF
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
COMMENT= The Fast Light Window Manager
|
|
|
|
LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk-devel
|
|
|
|
USE_XORG= x11 xt
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV+= CXXFLAGS="-DFL_LIBRARY `${LOCALBASE}/bin/fltk-devel/fltk-config --cflags`"
|
|
|
|
PLIST_FILES= bin/flwm \
|
|
man/man1/flwm.1.gz
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g; /^main/s|^|int |g' ${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
${REINPLACE_CMD} -e 's|^LIBS =.*|LIBS = `${LOCALBASE}/bin/fltk-devel/fltk-config --ldflags`|' ${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/flwm ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/flwm.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|