summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2018-09-10 13:14:50 +0000
committerMathieu Arnold <mat@FreeBSD.org>2018-09-10 13:14:50 +0000
commite1bfdfbe5665c963621e06f6bbfbbc2c000a804e (patch)
treeeaf052562fa1ad9b232918eb5e617ac1df0dd725 /x11
parentAfter an include, PLIST_SUB must be appended to, not overwritten. (diff)
Add DOCS options to ports that should have one.
Also various fixes related to said option. PR: 230864 Submitted by: mat exp-runs by: antoine
Notes
Notes: svn path=/head/; revision=479406
Diffstat (limited to '')
-rw-r--r--x11-clocks/kteatime/Makefile2
-rw-r--r--x11-clocks/ktimer/Makefile2
-rw-r--r--x11-drivers/xf86-video-qxl/Makefile2
-rw-r--r--x11-fm/dolphin/Makefile2
-rw-r--r--x11-fm/konqueror/Makefile2
-rw-r--r--x11-fm/mucommander/Makefile2
-rw-r--r--x11-fm/rodent/Makefile2
-rw-r--r--x11-fonts/averiagwf/Makefile2
-rw-r--r--x11-fonts/linux-c6-fontconfig/Makefile2
-rw-r--r--x11-fonts/linux-c7-fontconfig/Makefile2
-rw-r--r--x11-fonts/mkbold-mkitalic/Makefile2
-rw-r--r--x11-fonts/webfonts/Makefile2
-rw-r--r--x11-themes/sddm-freebsd-black-theme/Makefile2
-rw-r--r--x11-themes/slim-freebsd-black-theme/Makefile2
-rw-r--r--x11-toolkits/gtksourceview3/Makefile2
-rw-r--r--x11-toolkits/libxaw3dxft/Makefile2
-rw-r--r--x11-toolkits/linux-c6-openmotif/Makefile2
-rw-r--r--x11-toolkits/linux-c6-pango/Makefile2
-rw-r--r--x11-toolkits/linux-c6-tk85/Makefile2
-rw-r--r--x11-toolkits/linux-c7-openmotif/Makefile2
-rw-r--r--x11-toolkits/linux-c7-pango/Makefile2
-rw-r--r--x11-toolkits/linux-c7-tk85/Makefile2
-rw-r--r--x11-toolkits/osm-gps-map/Makefile2
-rw-r--r--x11-toolkits/py-fltk/Makefile2
-rw-r--r--x11-wm/blackbox/Makefile2
-rw-r--r--x11-wm/ctwm/Makefile2
-rw-r--r--x11-wm/larswm/Makefile2
-rw-r--r--x11-wm/xfce4-panel-profiles/Makefile2
-rw-r--r--x11/alttab/Makefile2
-rw-r--r--x11/konsole/Makefile2
-rw-r--r--x11/libXcm/Makefile2
-rw-r--r--x11/lightdm-gtk-greeter/Makefile2
-rw-r--r--x11/linux-c6-xorg-libs/Makefile2
-rw-r--r--x11/linux-c7-xorg-libs/Makefile2
-rw-r--r--x11/mate-desktop/Makefile2
-rw-r--r--x11/mate-panel/Makefile2
-rw-r--r--x11/menulibre/Makefile2
-rw-r--r--x11/trayer/Makefile2
-rw-r--r--x11/urxvt-perls/Makefile2
-rw-r--r--x11/wbarconf/Makefile2
-rw-r--r--x11/xcm/Makefile2
41 files changed, 79 insertions, 3 deletions
diff --git a/x11-clocks/kteatime/Makefile b/x11-clocks/kteatime/Makefile
index e3e256da63e0..537438b22694 100644
--- a/x11-clocks/kteatime/Makefile
+++ b/x11-clocks/kteatime/Makefile
@@ -14,4 +14,6 @@ USE_KDE= auth codecs config configwidgets coreaddons crash doctools ecm \
USE_QT= core dbus gui widgets xml \
buildtools_build qmake_build
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11-clocks/ktimer/Makefile b/x11-clocks/ktimer/Makefile
index 3e1b293bdaf7..074e5ed6d877 100644
--- a/x11-clocks/ktimer/Makefile
+++ b/x11-clocks/ktimer/Makefile
@@ -14,4 +14,6 @@ USE_KDE= auth codecs completion config configwidgets coreaddons \
USE_QT= core dbus gui network widgets xml \
buildtools_build qmake_build
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11-drivers/xf86-video-qxl/Makefile b/x11-drivers/xf86-video-qxl/Makefile
index a74ee0d6296a..48967cfed48f 100644
--- a/x11-drivers/xf86-video-qxl/Makefile
+++ b/x11-drivers/xf86-video-qxl/Makefile
@@ -24,6 +24,8 @@ CONFIGURE_ARGS+=--enable-xspice
python_OLD_CMD= "/usr/bin/python"
SHEBANG_FILES= scripts/Xspice
+OPTIONS_DEFINE= DOCS
+
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/X11/xorg.conf.d
${INSTALL_DATA} ${WRKSRC}/examples/spiceqxl.xorg.conf.example \
diff --git a/x11-fm/dolphin/Makefile b/x11-fm/dolphin/Makefile
index 1043c81db5db..59d0bc0e5b96 100644
--- a/x11-fm/dolphin/Makefile
+++ b/x11-fm/dolphin/Makefile
@@ -29,4 +29,6 @@ SHLIB_VER= 5.0.0
PLIST_SUB+= SHLIB_VER="${SHLIB_VER}" \
SHLIB_SHVER="${SHLIB_VER:R:R}"
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11-fm/konqueror/Makefile b/x11-fm/konqueror/Makefile
index d22d35e1b2b6..0f0774cec1a2 100644
--- a/x11-fm/konqueror/Makefile
+++ b/x11-fm/konqueror/Makefile
@@ -20,4 +20,6 @@ USE_QT= core dbus gui location network printsupport qml quick script \
buildtools_build qmake_build
USE_XORG= ice sm x11 xext
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11-fm/mucommander/Makefile b/x11-fm/mucommander/Makefile
index 45e05d03c3c9..4a310b3a23d5 100644
--- a/x11-fm/mucommander/Makefile
+++ b/x11-fm/mucommander/Makefile
@@ -22,6 +22,8 @@ PORTDOCS= readme.txt
WRKSRC= ${WRKDIR}/muCommander-${PORTVERSION:S/./_/g}
+OPTIONS_DEFINE= DOCS
+
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/mucommander.jar ${STAGEDIR}${DATADIR}
diff --git a/x11-fm/rodent/Makefile b/x11-fm/rodent/Makefile
index 08226b4bc469..27fd319eefc5 100644
--- a/x11-fm/rodent/Makefile
+++ b/x11-fm/rodent/Makefile
@@ -30,7 +30,7 @@ SHEBANG_FILES= configure
PORTDOCS= *
-OPTIONS_DEFINE= NLS
+OPTIONS_DEFINE= NLS DOCS
OPTIONS_SUB= yes
NLS_USES= gettext
diff --git a/x11-fonts/averiagwf/Makefile b/x11-fonts/averiagwf/Makefile
index dd1e9e4be955..3583a3594ff3 100644
--- a/x11-fonts/averiagwf/Makefile
+++ b/x11-fonts/averiagwf/Makefile
@@ -19,6 +19,8 @@ NO_WRKSUBDIR= yes
PORTDOCS= FONTLOG.txt
+OPTIONS_DEFINE= DOCS
+
do-install:
${MKDIR} ${STAGEDIR}${FONTSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} *.ttf ${STAGEDIR}${FONTSDIR}
diff --git a/x11-fonts/linux-c6-fontconfig/Makefile b/x11-fonts/linux-c6-fontconfig/Makefile
index 4190670ac93c..a8aa23301b0b 100644
--- a/x11-fonts/linux-c6-fontconfig/Makefile
+++ b/x11-fonts/linux-c6-fontconfig/Makefile
@@ -16,6 +16,8 @@ USE_LDCONFIG= yes
USE_LINUX= expat
USE_LINUX_RPM= yes
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${RM} -r ${WRKSRC}/etc ${WRKSRC}/usr/share/fonts ${WRKSRC}/var
diff --git a/x11-fonts/linux-c7-fontconfig/Makefile b/x11-fonts/linux-c7-fontconfig/Makefile
index 8fef85c015cd..73fbd5fcf28d 100644
--- a/x11-fonts/linux-c7-fontconfig/Makefile
+++ b/x11-fonts/linux-c7-fontconfig/Makefile
@@ -18,6 +18,8 @@ USE_LDCONFIG= yes
USE_LINUX= expat
USE_LINUX_RPM= yes
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${RM} -r ${WRKSRC}/etc ${WRKSRC}/usr/share/fonts \
${WRKSRC}/usr/share/fontconfig ${WRKSRC}/var
diff --git a/x11-fonts/mkbold-mkitalic/Makefile b/x11-fonts/mkbold-mkitalic/Makefile
index 097947cc6ab9..9ab14a24f7f2 100644
--- a/x11-fonts/mkbold-mkitalic/Makefile
+++ b/x11-fonts/mkbold-mkitalic/Makefile
@@ -16,6 +16,8 @@ PLIST_FILES= bin/mkbold bin/mkitalic bin/mkbolditalic
PORTDOCS= ALGORITHM ALGORITHM.eucJP LICENSE README README.eucJP
USES= tar:bzip2
+OPTIONS_DEFINE= DOCS
+
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
diff --git a/x11-fonts/webfonts/Makefile b/x11-fonts/webfonts/Makefile
index f442098952ad..0f018271e6f4 100644
--- a/x11-fonts/webfonts/Makefile
+++ b/x11-fonts/webfonts/Makefile
@@ -32,7 +32,7 @@ EXTRACT_CMD= ${LOCALBASE}/bin/cabextract
EXTRACT_BEFORE_ARGS= -qLF '[a-uw-z]*.ttf' -d ${WRKSRC}
EXTRACT_AFTER_ARGS=
-OPTIONS_DEFINE= EXTRAFONTS CLEARTYPE NEWVERDANA
+OPTIONS_DEFINE= EXTRAFONTS CLEARTYPE NEWVERDANA DOCS
OPTIONS_SUB= yes
EXTRAFONTS_DESC= Fonts licensed under MS Windows license
diff --git a/x11-themes/sddm-freebsd-black-theme/Makefile b/x11-themes/sddm-freebsd-black-theme/Makefile
index 4f3db50a5eea..e032d48a2cb5 100644
--- a/x11-themes/sddm-freebsd-black-theme/Makefile
+++ b/x11-themes/sddm-freebsd-black-theme/Makefile
@@ -25,6 +25,8 @@ PLIST_SUB= THEMEDIR=${THEMEDIR_REL}
SUB_FILES= pkg-message
PORTDOCS= README.md AUTHORS COPYING TRADEMARKS
+OPTIONS_DEFINE= DOCS
+
do-install:
${MKDIR} ${STAGEDIR}${THEMEDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${THEMEDIR} \
diff --git a/x11-themes/slim-freebsd-black-theme/Makefile b/x11-themes/slim-freebsd-black-theme/Makefile
index 29c1a1c26699..1f840145e490 100644
--- a/x11-themes/slim-freebsd-black-theme/Makefile
+++ b/x11-themes/slim-freebsd-black-theme/Makefile
@@ -24,6 +24,8 @@ PLIST_SUB= THEMEDIR=${THEMEDIR_REL}
SUB_FILES= pkg-message
PORTDOCS= README.md AUTHORS COPYING TRADEMARKS
+OPTIONS_DEFINE= DOCS
+
do-install:
${MKDIR} ${STAGEDIR}${THEMEDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${THEMEDIR} \
diff --git a/x11-toolkits/gtksourceview3/Makefile b/x11-toolkits/gtksourceview3/Makefile
index 32682b0fe9d4..660d5a62a75c 100644
--- a/x11-toolkits/gtksourceview3/Makefile
+++ b/x11-toolkits/gtksourceview3/Makefile
@@ -35,6 +35,8 @@ CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${REINPLACE_CMD} -e 's|tests testsuite||g' \
${WRKSRC}/Makefile.in
diff --git a/x11-toolkits/libxaw3dxft/Makefile b/x11-toolkits/libxaw3dxft/Makefile
index 639bafeb08c9..3237d880734e 100644
--- a/x11-toolkits/libxaw3dxft/Makefile
+++ b/x11-toolkits/libxaw3dxft/Makefile
@@ -26,6 +26,8 @@ CPPFLAGS+= -I${LOCALBASE}/include/freetype2
DOCSDIR= ${LOCALBASE}/share/doc/libXaw3dXft
PORTDOCS= *
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${REINPLACE_CMD} '/^typedef.*Pixel;/d' ${WRKSRC}/src/Xaw3dXft.c
diff --git a/x11-toolkits/linux-c6-openmotif/Makefile b/x11-toolkits/linux-c6-openmotif/Makefile
index 7f81303e4683..125b2014e772 100644
--- a/x11-toolkits/linux-c6-openmotif/Makefile
+++ b/x11-toolkits/linux-c6-openmotif/Makefile
@@ -16,6 +16,8 @@ USE_LDCONFIG= yes
USE_LINUX= xorglibs
USE_LINUX_RPM= yes
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${RM} -r ${WRKSRC}/etc ${WRKSRC}/usr/bin ${WRKSRC}/usr/include \
${WRKSRC}/usr/share/X11 ${WRKSRC}/usr/share/man
diff --git a/x11-toolkits/linux-c6-pango/Makefile b/x11-toolkits/linux-c6-pango/Makefile
index 342b9357df4a..f458782703eb 100644
--- a/x11-toolkits/linux-c6-pango/Makefile
+++ b/x11-toolkits/linux-c6-pango/Makefile
@@ -16,4 +16,6 @@ USE_LDCONFIG= yes
USE_LINUX= cairo fontconfig libthai xorglibs
USE_LINUX_RPM= yes
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11-toolkits/linux-c6-tk85/Makefile b/x11-toolkits/linux-c6-tk85/Makefile
index e80791dde202..1501d922a844 100644
--- a/x11-toolkits/linux-c6-tk85/Makefile
+++ b/x11-toolkits/linux-c6-tk85/Makefile
@@ -19,4 +19,6 @@ USE_LINUX= xorglibs
USE_LINUX_RPM= yes
USE_LINUX_RPM_BAD_PERMS= yes
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11-toolkits/linux-c7-openmotif/Makefile b/x11-toolkits/linux-c7-openmotif/Makefile
index d41d5ed21b56..b9ed1f5ea156 100644
--- a/x11-toolkits/linux-c7-openmotif/Makefile
+++ b/x11-toolkits/linux-c7-openmotif/Makefile
@@ -18,6 +18,8 @@ USE_LDCONFIG= yes
USE_LINUX= xorglibs
USE_LINUX_RPM= yes
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${RM} -r ${WRKSRC}/etc ${WRKSRC}/usr/bin ${WRKSRC}/usr/include \
${WRKSRC}/usr/share/X11 ${WRKSRC}/usr/share/man
diff --git a/x11-toolkits/linux-c7-pango/Makefile b/x11-toolkits/linux-c7-pango/Makefile
index 343ad1b92b09..dfaf80dcd3ac 100644
--- a/x11-toolkits/linux-c7-pango/Makefile
+++ b/x11-toolkits/linux-c7-pango/Makefile
@@ -17,4 +17,6 @@ USE_LDCONFIG= yes
USE_LINUX= cairo fontconfig harfbuzz libthai xorglibs
USE_LINUX_RPM= yes
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11-toolkits/linux-c7-tk85/Makefile b/x11-toolkits/linux-c7-tk85/Makefile
index 9f206512780d..972a5ecdfbe4 100644
--- a/x11-toolkits/linux-c7-tk85/Makefile
+++ b/x11-toolkits/linux-c7-tk85/Makefile
@@ -21,4 +21,6 @@ USE_LINUX= xorglibs
USE_LINUX_RPM= yes
USE_LINUX_RPM_BAD_PERMS= yes
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11-toolkits/osm-gps-map/Makefile b/x11-toolkits/osm-gps-map/Makefile
index 88bea77b8619..6a3458ee9973 100644
--- a/x11-toolkits/osm-gps-map/Makefile
+++ b/x11-toolkits/osm-gps-map/Makefile
@@ -21,4 +21,6 @@ GNU_CONFIGURE= yes
MAKE_ARGS= pkgconfigdir="${PREFIX}/libdata/pkgconfig"
INSTALL_TARGET= install-strip
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11-toolkits/py-fltk/Makefile b/x11-toolkits/py-fltk/Makefile
index 99f551c9558c..b012bcf1c37e 100644
--- a/x11-toolkits/py-fltk/Makefile
+++ b/x11-toolkits/py-fltk/Makefile
@@ -30,6 +30,8 @@ PORTDOCS= *
PORTEXAMPLES= *
WRKSRC= ${WRKDIR}/pyFltk-${PORTVERSION}
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${REINPLACE_CMD} -e "s|/usr/X11R6|${LOCALBASE}|g;s|package_data.*},||g;s|sunos5|dragonfly4', 'freebsd8', 'freebsd9', 'freebsd10', 'freebsd11', 'freebsd12|g" ${WRKSRC}/setup.py
diff --git a/x11-wm/blackbox/Makefile b/x11-wm/blackbox/Makefile
index 34e97c3a24ff..1151b4c4c404 100644
--- a/x11-wm/blackbox/Makefile
+++ b/x11-wm/blackbox/Makefile
@@ -22,7 +22,7 @@ LDFLAGS+= ${ICONV_LIB}
PORTDOCS= README.bbtools README.bsetbg
MANPAGES= bsetbg.1 bsetroot.1
-OPTIONS_DEFINE= TOOLS_ONLY
+OPTIONS_DEFINE= TOOLS_ONLY DOCS
TOOLS_ONLY_DESC= Do not install window manager, only tools
diff --git a/x11-wm/ctwm/Makefile b/x11-wm/ctwm/Makefile
index b87622651a64..98d0cd8baa68 100644
--- a/x11-wm/ctwm/Makefile
+++ b/x11-wm/ctwm/Makefile
@@ -16,4 +16,6 @@ LICENSE= MIT
USES= cmake:outsource jpeg tar:xz
USE_XORG= x11 xext xt ice sm xpm xmu
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11-wm/larswm/Makefile b/x11-wm/larswm/Makefile
index c48db9a77fac..b3109c7f5fae 100644
--- a/x11-wm/larswm/Makefile
+++ b/x11-wm/larswm/Makefile
@@ -19,6 +19,8 @@ PLIST_FILES= bin/larsclock bin/larsmenu bin/larsremote bin/larswm \
man/man1/larsclock.1.gz man/man1/larsmenu.1.gz \
man/man1/larsremote.1.gz man/man1/larswm.1.gz
+OPTIONS_DEFINE= DOCS
+
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
diff --git a/x11-wm/xfce4-panel-profiles/Makefile b/x11-wm/xfce4-panel-profiles/Makefile
index 4bdea603234e..3a583cb8dfc2 100644
--- a/x11-wm/xfce4-panel-profiles/Makefile
+++ b/x11-wm/xfce4-panel-profiles/Makefile
@@ -19,6 +19,8 @@ HAS_CONFIGURE= yes
SHEBANG_FILES= xfce4-panel-profiles/xfce4-panel-profiles.py \
xfce4-panel-profiles/panelconfig.py
+OPTIONS_DEFINE= DOCS
+
post-install:
${RLN} ${STAGEDIR}${PREFIX}/share/locale ${STAGEDIR}${PREFIX}/share/${PORTNAME}/locale
diff --git a/x11/alttab/Makefile b/x11/alttab/Makefile
index ca2b01324d35..8cce83b28df8 100644
--- a/x11/alttab/Makefile
+++ b/x11/alttab/Makefile
@@ -28,4 +28,6 @@ PORTDOCS= README \
alttab.ad \
wm-setup.md
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11/konsole/Makefile b/x11/konsole/Makefile
index 1eded20cc54b..9620d59af60b 100644
--- a/x11/konsole/Makefile
+++ b/x11/konsole/Makefile
@@ -21,4 +21,6 @@ USE_QT= core dbus gui network printsupport script scripttools sql \
widgets xml \
buildtools_build qmake_build
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11/libXcm/Makefile b/x11/libXcm/Makefile
index 45f8d0e3010f..c2f94a38ef30 100644
--- a/x11/libXcm/Makefile
+++ b/x11/libXcm/Makefile
@@ -19,4 +19,6 @@ USE_XORG= x11 xfixes xmu xt
INSTALL_TARGET= install-strip
PORTDOCS= *
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11/lightdm-gtk-greeter/Makefile b/x11/lightdm-gtk-greeter/Makefile
index b0cda2286099..c4277efe9635 100644
--- a/x11/lightdm-gtk-greeter/Makefile
+++ b/x11/lightdm-gtk-greeter/Makefile
@@ -21,6 +21,8 @@ USE_GNOME= cairo gdkpixbuf2 gtk30 intltool
USE_XFCE= libexo
USE_XORG= x11
+OPTIONS_DEFINE= DOCS
+
post-install:
(cd ${STAGEDIR}${PREFIX}/etc/lightdm && ${MV} lightdm-gtk-greeter.conf \
lightdm-gtk-greeter.conf.sample)
diff --git a/x11/linux-c6-xorg-libs/Makefile b/x11/linux-c6-xorg-libs/Makefile
index 28d6842d035c..79023a09d704 100644
--- a/x11/linux-c6-xorg-libs/Makefile
+++ b/x11/linux-c6-xorg-libs/Makefile
@@ -81,6 +81,8 @@ USE_LDCONFIG= yes
USE_LINUX= fontconfig
USE_LINUX_RPM= yes
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${RM} -r ${WRKSRC}/usr/share/icons
diff --git a/x11/linux-c7-xorg-libs/Makefile b/x11/linux-c7-xorg-libs/Makefile
index 68308215b53d..6b92d473c03b 100644
--- a/x11/linux-c7-xorg-libs/Makefile
+++ b/x11/linux-c7-xorg-libs/Makefile
@@ -85,6 +85,8 @@ USE_LDCONFIG= yes
USE_LINUX= fontconfig
USE_LINUX_RPM= yes
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${RM} -r ${WRKSRC}/usr/share/icons
diff --git a/x11/mate-desktop/Makefile b/x11/mate-desktop/Makefile
index b5ff54408c1c..d973e93f478b 100644
--- a/x11/mate-desktop/Makefile
+++ b/x11/mate-desktop/Makefile
@@ -49,4 +49,6 @@ GLIB_SCHEMAS= org.mate.accessibility-keyboard.gschema.xml \
org.mate.typing-break.gschema.xml \
org.mate.debug.gschema.xml
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11/mate-panel/Makefile b/x11/mate-panel/Makefile
index 19e834262409..929ee89ba292 100644
--- a/x11/mate-panel/Makefile
+++ b/x11/mate-panel/Makefile
@@ -44,4 +44,6 @@ GLIB_SCHEMAS= org.mate.panel.applet.clock.gschema.xml \
org.mate.panel.object.gschema.xml \
org.mate.panel.toplevel.gschema.xml
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/x11/menulibre/Makefile b/x11/menulibre/Makefile
index e15736d5da03..b25f80f4c49c 100644
--- a/x11/menulibre/Makefile
+++ b/x11/menulibre/Makefile
@@ -22,6 +22,8 @@ USE_GNOME= intltool pygobject3
USE_PYTHON= distutils
INSTALLS_ICONS= yes
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.pre.mk>
PYDISTUTILS_INSTALLARGS:= ${PYDISTUTILS_INSTALLARGS:N--single-version-externally-managed}
diff --git a/x11/trayer/Makefile b/x11/trayer/Makefile
index 2071e93cd579..7abb3e8b3e81 100644
--- a/x11/trayer/Makefile
+++ b/x11/trayer/Makefile
@@ -26,6 +26,8 @@ PORTDOCS= README CREDITS CHANGELOG
PLIST_FILES= bin/trayer man/man1/trayer.1.gz
+OPTIONS_DEFINE= DOCS
+
post-install:
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/x11/urxvt-perls/Makefile b/x11/urxvt-perls/Makefile
index faf57edb1bf1..96550b12eae4 100644
--- a/x11/urxvt-perls/Makefile
+++ b/x11/urxvt-perls/Makefile
@@ -21,6 +21,8 @@ INSTDIR_REL= lib/urxvt/perl
SCRIPTS= clipboard keyboard-select url-select
PLIST_FILES+= ${SCRIPTS:C/^/${INSTDIR_REL}\//}
+OPTIONS_DEFINE= DOCS
+
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${INSTDIR_REL}
.for s in ${SCRIPTS}
diff --git a/x11/wbarconf/Makefile b/x11/wbarconf/Makefile
index 6239ce087621..529474d96edd 100644
--- a/x11/wbarconf/Makefile
+++ b/x11/wbarconf/Makefile
@@ -23,6 +23,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
PORTDOCS= README COPYING
INSTALLS_ICONS= yes
+OPTIONS_DEFINE= DOCS
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}
diff --git a/x11/xcm/Makefile b/x11/xcm/Makefile
index 5d9c0cd17a12..f88ecd77c344 100644
--- a/x11/xcm/Makefile
+++ b/x11/xcm/Makefile
@@ -30,4 +30,6 @@ PLIST_FILES= bin/xcm bin/xcmedid bin/xcmevents bin/xcmhextobin \
man/man1/xcmevents.1.gz man/man1/xcmhextobin.1.gz
PORTDOCS= *
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>