1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Remove deprecated GTK/XMMS support

- While I'm here:
  - Add DOCS to OPTIONS_DEFINE
  - Remove IPV6 from OPTIONS_DEFAULT

PR:		ports/181628
Submitted by:	Chris Petrik <c.petrik.sosa@gmail.com> (co-maintainer)
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-09-07 18:38:25 +00:00
parent bd503ebb02
commit dec5b2ef72
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=326679
2 changed files with 6 additions and 37 deletions

View File

@ -28,14 +28,12 @@ PORTDOCS= *
DATADIR= ${PREFIX}/share/bx DATADIR= ${PREFIX}/share/bx
MAN1= BitchX.1 MAN1= BitchX.1
OPTIONS_DEFINE= ESOUND GNOME IPV6 LATIN PLUGINS SSL XMMS OPTIONS_DEFINE= IPV6 LATIN PLUGINS SSL DOCS
GNOME_DESC= Legacy GTK/GNOME frontend
LATIN_DESC= Recommended for ISO-8859-1 display LATIN_DESC= Recommended for ISO-8859-1 display
PLUGINS_DESC= Build a handful of BitchX plugins PLUGINS_DESC= Build a handful of BitchX plugins
XMMS_DESC= Build XMMS plugin
OPTIONS_DEFAULT= IPV6 PLUGINS SSL OPTIONS_DEFAULT=PLUGINS SSL
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
@ -47,20 +45,6 @@ CONFIGURE_ARGS+= --enable-ipv6
CONFIGURE_ARGS+= --with-ssl CONFIGURE_ARGS+= --with-ssl
.endif .endif
.if ${PORT_OPTIONS:MGNOME} || ${PORT_OPTIONS:MESOUND}
USE_GNOME= gnomelibs
CONFIGURE_ARGS+= --with-gtk
. if ${PORT_OPTIONS:MESOUND}
USE_GNOME+= esound
CONFIGURE_ARGS+= --enable-sound
. endif
CFLAGS+= -I${LOCALBASE}/include/gnome-1.0
PLIST_SUB+= NOGNOME="@comment " GNOME=""
.else
CONFIGURE_ARGS+= --without-gtk
PLIST_SUB+= GNOME="@comment " NOGNOME=""
.endif
.if ${PORT_OPTIONS:MPLUGINS} .if ${PORT_OPTIONS:MPLUGINS}
PLUGINS= abot acro aim arcfour autocycle blowfish cavlink cdrom encrypt \ PLUGINS= abot acro aim arcfour autocycle blowfish cavlink cdrom encrypt \
europa fserv hint nap nicklist pkga possum qbx qmail wavplay europa fserv hint nap nicklist pkga possum qbx qmail wavplay
@ -69,14 +53,6 @@ PLIST_SUB+= PLUGINS=""
PLIST_SUB+= PLUGINS="@comment " PLIST_SUB+= PLUGINS="@comment "
.endif .endif
.if ${PORT_OPTIONS:MXMMS}
LIB_DEPENDS= xmms:${PORTSDIR}/multimedia/xmms
PLUGINS+= xmms
PLIST_SUB+= XMMS=""
.else
PLIST_SUB+= XMMS="@comment "
.endif
.if !empty(PLUGINS) .if !empty(PLUGINS)
CONFIGURE_ARGS+= --with-plugins="${PLUGINS:C/\$$/,/g}" CONFIGURE_ARGS+= --with-plugins="${PLUGINS:C/\$$/,/g}"
.else .else
@ -91,12 +67,8 @@ post-patch:
${REINPLACE_CMD} -e 's|bzip2|true|g' ${WRKSRC}/Makefile.in ${REINPLACE_CMD} -e 's|bzip2|true|g' ${WRKSRC}/Makefile.in
post-install: post-install:
.if ${PORT_OPTIONS:MGNOME}
${STRIP_CMD} ${PREFIX}/bin/gtkBitchX
.else
${STRIP_CMD} ${PREFIX}/bin/BitchX ${STRIP_CMD} ${PREFIX}/bin/BitchX
${STRIP_CMD} ${PREFIX}/bin/scr-bx ${STRIP_CMD} ${PREFIX}/bin/scr-bx
.endif
.if ${PORT_OPTIONS:MDOCS} .if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR} @${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/bitchx-docs && ${COPYTREE_SHARE} . ${DOCSDIR} cd ${WRKSRC}/bitchx-docs && ${COPYTREE_SHARE} . ${DOCSDIR}

View File

@ -1,9 +1,7 @@
@unexec if [ -f %D/%%DATADIR%%/script/bxglobal.old ]; then rm -f %D/share/bx/script/bxglobal.old; fi @unexec if [ -f %D/%%DATADIR%%/script/bxglobal.old ]; then rm -f %D/share/bx/script/bxglobal.old; fi
%%NOGNOME%%bin/BitchX bin/BitchX
%%NOGNOME%%bin/BitchX-%%DISTVERSION%% bin/BitchX-%%DISTVERSION%%
%%GNOME%%bin/gtkBitchX bin/scr-bx
%%GNOME%%bin/gtkBitchX-%%DISTVERSION%%
%%NOGNOME%%bin/scr-bx
%%DATADIR%%/BitchX.help %%DATADIR%%/BitchX.help
%%DATADIR%%/BitchX.ircnames %%DATADIR%%/BitchX.ircnames
%%DATADIR%%/BitchX.quit %%DATADIR%%/BitchX.quit
@ -27,7 +25,6 @@
%%PLUGINS%%%%DATADIR%%/plugins/autocycle.so %%PLUGINS%%%%DATADIR%%/plugins/autocycle.so
%%PLUGINS%%%%DATADIR%%/plugins/cdrom.so %%PLUGINS%%%%DATADIR%%/plugins/cdrom.so
%%PLUGINS%%%%DATADIR%%/plugins/nicklist.so %%PLUGINS%%%%DATADIR%%/plugins/nicklist.so
%%XMMS%%%%DATADIR%%/plugins/xmms.so
%%DATADIR%%/script/SCRIPTS %%DATADIR%%/script/SCRIPTS
%%DATADIR%%/script/actplug.gmz %%DATADIR%%/script/actplug.gmz
%%DATADIR%%/script/bxglobal %%DATADIR%%/script/bxglobal
@ -77,7 +74,7 @@
%%DATADIR%%/translation/SWISS %%DATADIR%%/translation/SWISS
%%DATADIR%%/translation/UNITED_KINGDOM %%DATADIR%%/translation/UNITED_KINGDOM
%%DATADIR%%/translation/UNITED_KINGDOM_COM %%DATADIR%%/translation/UNITED_KINGDOM_COM
%%NOGNOME%%%%DATADIR%%/wserv %%DATADIR%%/wserv
@dirrm %%DATADIR%%/translation @dirrm %%DATADIR%%/translation
@dirrm %%DATADIR%%/script @dirrm %%DATADIR%%/script
@dirrm %%DATADIR%%/plugins @dirrm %%DATADIR%%/plugins