diff options
Diffstat (limited to 'x11/libxfce4util/Makefile')
-rw-r--r-- | x11/libxfce4util/Makefile | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/x11/libxfce4util/Makefile b/x11/libxfce4util/Makefile index 63aa1a74aaa3..e9719465beaa 100644 --- a/x11/libxfce4util/Makefile +++ b/x11/libxfce4util/Makefile @@ -25,12 +25,11 @@ USE_XFCE= configenv CONFIGURE_ARGS+=--disable-gtk-doc-html -OPTIONS= NLS "Enable Native Language Support" on \ - APIDOCS "Install api documentation" off +OPTIONS_DEFINE= NLS DOCS -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes CONFIGURE_ARGS+=--enable-nls PLIST_SUB+= NLS="" @@ -39,12 +38,12 @@ CONFIGURE_ARGS+=--disable-nls PLIST_SUB+= NLS="@comment " .endif -.if defined(WITHOUT_APIDOCS) -CONFIGURE_ARGS+=--without-html-dir -PLIST_SUB+= APIDOCS="@comment " -.else +.if ${PORT_OPTIONS:MDOCS} CONFIGURE_ARGS+=--with-html-dir=${PREFIX}/share/gtk-doc/html PLIST_SUB+= APIDOCS="" +.else +CONFIGURE_ARGS+=--without-html-dir +PLIST_SUB+= APIDOCS="@comment " .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |