aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2013-07-11 03:41:30 +0800
committerpawel <pawel@FreeBSD.org>2013-07-11 03:41:30 +0800
commit4682c2c61dcb7a63ae78f7c087ba5d0bda84f154 (patch)
treef00883f68004a81b9e525ad5cc94de309898b666 /x11
parent31dd4fd824aafa89c7f4eb95e23f32974c053110 (diff)
downloadfreebsd-ports-gnome-4682c2c61dcb7a63ae78f7c087ba5d0bda84f154.tar.gz
freebsd-ports-gnome-4682c2c61dcb7a63ae78f7c087ba5d0bda84f154.tar.zst
freebsd-ports-gnome-4682c2c61dcb7a63ae78f7c087ba5d0bda84f154.zip
Convert my ports to current standards
- Switch USE_GMAKE to USES=gmake - Define supported options so users can see them in config dialogs - Use OPTIONS_SUB for plist alteration - Convert to options macros for better readability - Use PORTDOCS where it makes sense
Diffstat (limited to 'x11')
-rw-r--r--x11/xnee/Makefile16
1 files changed, 5 insertions, 11 deletions
diff --git a/x11/xnee/Makefile b/x11/xnee/Makefile
index 3634bd5b1cd5..c684dfe3e905 100644
--- a/x11/xnee/Makefile
+++ b/x11/xnee/Makefile
@@ -12,9 +12,8 @@ COMMENT= X events recorder and player
LICENSE= GPLv3
GNU_CONFIGURE= yes
-USE_GMAKE= yes
USE_XORG= xtst
-USES= pathfix
+USES= gmake pathfix
MAKE_JOBS_SAFE= yes
CONFIGURE_ARGS= --enable-cli --disable-doc --disable-xinput2
@@ -23,34 +22,29 @@ MAN1= cnee.1 xnee.1
INFO= xnee
OPTIONS_DEFINE= GNEE PNEE
+OPTIONS_SUB= yes
GNEE_DESC= GUI frontend
PNEE_DESC= GNOME panel frontend
+GNEE_CONFIGURE_ENABLE= gui
+PNEE_CONFIGURE_ENABLE= gnome-applet
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNEE}
-CONFIGURE_ARGS+=--enable-gui
USE_GNOME+= gtk20
MAN1+= gnee.1
-PLIST_SUB+= GNEE=""
DESKTOP_ENTRIES= "Gnee" "${COMMENT}" "${PORTNAME}.png" \
"gnee" "Development;" true
-.else
-CONFIGURE_ARGS+=--disable-gui
-PLIST_SUB+= GNEE="@comment "
.endif
.if ${PORT_OPTIONS:MPNEE}
BROKEN= Does not build, needs newer gnomepanel
-CONFIGURE_ARGS+=-enable-gnome-applet
USE_GNOME+= gnomepanel
MAN1+= pnee.1
-PLIST_SUB+= PNEE=""
.else
-CONFIGURE_ARGS+= --disable-gnome-applet
CONFIGURE_ENV+= libgnomeui_CFLAGS="${TRUE}" \
libgnomeui_LIBS="${TRUE}"
-PLIST_SUB+= PNEE="@comment "
.endif
post-patch: