aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2012-12-17 17:55:50 +0800
committerdanfe <danfe@FreeBSD.org>2012-12-17 17:55:50 +0800
commit8edee351a24a6ba0f16e84e2c61a35069212ce32 (patch)
treebad78a2a441104f965ac06675ce2331475f4d0b7 /x11-wm
parent0cafba9abb57848e295b4081894462823948539d (diff)
downloadfreebsd-ports-gnome-8edee351a24a6ba0f16e84e2c61a35069212ce32.tar.gz
freebsd-ports-gnome-8edee351a24a6ba0f16e84e2c61a35069212ce32.tar.zst
freebsd-ports-gnome-8edee351a24a6ba0f16e84e2c61a35069212ce32.zip
- Convert to the new OPTIONS framework
- Use USE_XORG syntax instead of LIB_DEPENDS for Xft and Xinerama - Trim the header per new rules, define LICENSE (GPLv2) - Fix whitespace bugs and provide better port description while here Nota bene: version 2.1.0 is available Approved by: maintainer timeout
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/jwm/Makefile46
-rw-r--r--x11-wm/jwm/pkg-descr8
2 files changed, 24 insertions, 30 deletions
diff --git a/x11-wm/jwm/Makefile b/x11-wm/jwm/Makefile
index bf46294c3d16..770d54b279b8 100644
--- a/x11-wm/jwm/Makefile
+++ b/x11-wm/jwm/Makefile
@@ -1,20 +1,17 @@
-# New ports collection makefile for: jwm
-# Date created: 26 DEC 2005
-# Whom: babak@farrokhi.net
-#
+# Created by: Babak Farrokhi <babak@farrokhi.net>
# $FreeBSD$
-#
PORTNAME= jwm
PORTVERSION= 2.0.1
PORTREVISION= 4
CATEGORIES= x11-wm
-MASTER_SITES= SF \
- http://joewing.net/programs/jwm/releases/
+MASTER_SITES= SF http://joewing.net/programs/jwm/releases/
MAINTAINER= admin@mjbrune.org
COMMENT= Joe's Window Manager
+LICENSE= GPLv2
+
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
USE_XORG= xpm
@@ -26,37 +23,32 @@ LDFLAGS+= -L${LOCALBASE}/lib
MAN1= jwm.1
-OPTIONS= FRIBIDI "Fribidi support" on \
- XFT "Xft support " on \
- XINERAMA "XINERAMA support" on \
- JPEG "JPEG support" on \
- DEBUG "Enable Debugging" off
+OPTIONS_DEFINE= FRIBIDI XFT XINERAMA JPEG DEBUG
+OPTIONS_DEFAULT= FRIBIDI XFT XINERAMA JPEG
+DEBUG_DESC= Enable debugging
.include <bsd.port.options.mk>
-.if defined(WITH_FRIBIDI)
-BUILD_DEPENDS+= fribidi:${PORTSDIR}/converters/fribidi
+.if ${PORT_OPTIONS:MFRIBIDI}
+BUILD_DEPENDS+= fribidi:${PORTSDIR}/converters/fribidi
.endif
-.if defined(WITH_XFT)
-LIB_DEPENDS+= Xft:${PORTSDIR}/x11-fonts/libXft
+.if ${PORT_OPTIONS:MXFT}
+USE_XORG+= xft
.endif
-.if defined(WITH_XINERAMA)
-LIB_DEPENDS+= Xinerama:${PORTSDIR}/x11/libXinerama
-
+.if ${PORT_OPTIONS:MXINERAMA}
+USE_XORG+= xinerama
.endif
-.if defined(WITH_JPEG)
-LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg
+.if ${PORT_OPTIONS:MJPEG}
+LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg
.endif
-.if defined(WITH_DEBUG)
-CONFIGURE_ARGS+= --enable-debug
+.if ${PORT_OPTIONS:MDEBUG}
+CONFIGURE_ARGS+= --enable-debug
.endif
-.include <bsd.port.pre.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/example.jwmrc
@@ -68,6 +60,6 @@ do-install:
if ! [ -f ${PREFIX}/etc/system.jwmrc ]; then \
${INSTALL_DATA} ${WRKSRC}/example.jwmrc ${PREFIX}/etc/system.jwmrc; \
fi
- ${INSTALL_MAN} ${WRKSRC}/jwm.1 ${MANPREFIX}/man/man1/
+ ${INSTALL_MAN} ${WRKSRC}/jwm.1 ${MANPREFIX}/man/man1
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/x11-wm/jwm/pkg-descr b/x11-wm/jwm/pkg-descr
index 018dddd38fbd..ba6b2428c0ef 100644
--- a/x11-wm/jwm/pkg-descr
+++ b/x11-wm/jwm/pkg-descr
@@ -1,4 +1,6 @@
-WM is a window manager for the X11 Window System.
-JWM is written in C and uses only Xlib at a minimum.
+JWM is a window manager for the X11 Window System. JWM is written in C and
+uses only Xlib at a minimum, though additional libraries are supported for
+extended functionality and features. JWM supports MWM and Extended Window
+Manager Hints (EWMH).
-WWW: http://joewing.net/programs/jwm/index.shtml
+WWW: http://joewing.net/programs/jwm/