Reduce unnecessary bsd.port.options.mk inclusion by using
OPTIONS helpers. Approved by: portmgr (blanket)
This commit is contained in:
parent
f17cf8c978
commit
654093c547
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360453
2 changed files with 15 additions and 46 deletions
|
@ -21,16 +21,12 @@ EXAMPLES= atkaction.py atkapplication.py atkcapi.c atktext.py atkvalue.py \
|
||||||
|
|
||||||
OPTIONS_DEFINE= EXAMPLES
|
OPTIONS_DEFINE= EXAMPLES
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
${REINPLACE_CMD} -i "" -e 's|: docfiles|: []|g' ${WRKSRC}/setup.py
|
${REINPLACE_CMD} -i "" -e 's|: docfiles|: []|g' ${WRKSRC}/setup.py
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
||||||
@${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}/
|
@${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}/
|
||||||
@cd ${WRKSRC}/doc/examples && \
|
@cd ${WRKSRC}/doc/examples && \
|
||||||
${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR}/
|
${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR}/
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -17,57 +17,30 @@ INSTALLS_ICONS= yes
|
||||||
CONFIGURE_ARGS+= --disable-wingdi
|
CONFIGURE_ARGS+= --disable-wingdi
|
||||||
|
|
||||||
OPTIONS_DEFINE= GNOME GUI NLS RANDR VIDMODE
|
OPTIONS_DEFINE= GNOME GUI NLS RANDR VIDMODE
|
||||||
OPTIONS_DEFAULT= RANDR
|
OPTIONS_DEFAULT=RANDR
|
||||||
|
OPTIONS_SUB= yes
|
||||||
|
|
||||||
GNOME_DESC= GNOME clock support
|
GNOME_DESC= GNOME clock support
|
||||||
GUI_DESC= Tray icon
|
GUI_DESC= Tray icon
|
||||||
RANDR_DESC= Support RANDR for changing colors
|
RANDR_DESC= Support RANDR for changing colors
|
||||||
VIDMODE_DESC= Support VIDMODE for changing colors (NVIDIA)
|
VIDMODE_DESC= Support VIDMODE for changing colors (NVIDIA)
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
NLS_USES= gettext iconv
|
||||||
|
NLS_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG} \
|
||||||
|
--with-libintl-prefix=${LOCALBASE}
|
||||||
|
NLS_CONFIGURE_OFF= --disable-nls
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MNLS}
|
RANDR_USE= XORG=xrandr
|
||||||
USES+= gettext iconv
|
RANDR_CONFIGURE_ENABLE= randr
|
||||||
CONFIGURE_ARGS+=${ICONV_CONFIGURE_ARG} \
|
|
||||||
--with-libintl-prefix=${LOCALBASE}
|
|
||||||
PLIST_SUB= NLS=""
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+=--disable-nls
|
|
||||||
PLIST_SUB= NLS="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MRANDR}
|
VIDMODE_CONFIGURE_ENABLE= vidmode
|
||||||
CONFIGURE_ARGS+=--enable-randr
|
|
||||||
USE_XORG= xrandr
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+=--disable-randr
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MVIDMODE}
|
GUI_USE= PYTHON=yes
|
||||||
CONFIGURE_ARGS+=--enable-vidmode
|
GUI_CONFIGURE_ENABLE= gui
|
||||||
.else
|
GUI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gtk2>0:${PORTSDIR}/x11-toolkits/py-gtk2 \
|
||||||
CONFIGURE_ARGS+=--disable-vidmode
|
${PYTHON_PKGNAMEPREFIX}xdg>0:${PORTSDIR}/devel/py-xdg
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MGUI}
|
GNOME_CONFIGURE_ENABLE= gnome-clock
|
||||||
USE_PYTHON= yes
|
GNOME_USE= GNOME=glib20,gconf2
|
||||||
CONFIGURE_ARGS+=--enable-gui
|
|
||||||
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}gtk2>0:${PORTSDIR}/x11-toolkits/py-gtk2 \
|
|
||||||
${PYTHON_PKGNAMEPREFIX}xdg>0:${PORTSDIR}/devel/py-xdg
|
|
||||||
PLIST_SUB+= GUI=""
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+=--disable-gui
|
|
||||||
PLIST_SUB+= GUI="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MGNOME}
|
|
||||||
CONFIGURE_ARGS+=--enable-gnome-clock
|
|
||||||
BUILD_DEPENDS+= glib>0:${PORTSDIR}/devel/glib20 \
|
|
||||||
gconf2>0:${PORTSDIR}/devel/gconf2
|
|
||||||
RUN_DEPENDS+= glib>0:${PORTSDIR}/devel/glib20 \
|
|
||||||
gconf2>0:${PORTSDIR}/devel/gconf2
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+=--disable-gnome-clock
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Reference in a new issue