Add OPTIONS:

FRIBIDI - bi-directional unicode support
SERVER - build the index and game servers

PR:		ports/147733
Submitted by:	Demelier David <demelier.david at gmail.com>
This commit is contained in:
Max Brazhnikov 2010-06-14 18:25:59 +00:00
parent a7cbacbaa2
commit 9ec40ee441
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=256535
4 changed files with 44 additions and 0 deletions

View file

@ -28,6 +28,12 @@ USE_DOS2UNIX= fixed_class.h
MANCOMPRESSED= no MANCOMPRESSED= no
MAN6= wormux.6 MAN6= wormux.6
OPTIONS+= NLS "Native Language Support via gettext utilities" on \
FRIBIDI "Enable bi-directional unicode support" off \
SERVER "Enable dedicated server" off
.include <bsd.port.options.mk>
post-patch: post-patch:
${REINPLACE_CMD} -e "s,-Werror,," ${WRKSRC}/Makefile.in \ ${REINPLACE_CMD} -e "s,-Werror,," ${WRKSRC}/Makefile.in \
${WRKSRC}/src/Makefile.in ${WRKSRC}/src/Makefile.in
@ -43,4 +49,18 @@ CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment " PLIST_SUB+= NLS="@comment "
.endif .endif
.if defined(WITH_SERVER)
PLIST_SUB+= SERVER=""
CONFIGURE_ARGS+= --enable-servers
.else
PLIST_SUB+= SERVER="@comment "
.endif
.if defined(WITH_FRIBIDI)
LIB_DEPENDS+= fribidi:${PORTSDIR}/converters/fribidi
CONFIGURE_ARGS+= --enable-fribidi
.else
CONFIGURE_ARGS+= --disable-fribidi
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,5 +1,7 @@
bin/wormux bin/wormux
%%SERVER%%bin/wormux-index-server
bin/wormux-list-games bin/wormux-list-games
%%SERVER%%bin/wormux-server
share/applications/wormux.desktop share/applications/wormux.desktop
%%NLS%%share/locale/bg/LC_MESSAGES/wormux.mo %%NLS%%share/locale/bg/LC_MESSAGES/wormux.mo
%%NLS%%share/locale/bs/LC_MESSAGES/wormux.mo %%NLS%%share/locale/bs/LC_MESSAGES/wormux.mo

View file

@ -28,6 +28,12 @@ USE_DOS2UNIX= fixed_class.h
MANCOMPRESSED= no MANCOMPRESSED= no
MAN6= wormux.6 MAN6= wormux.6
OPTIONS+= NLS "Native Language Support via gettext utilities" on \
FRIBIDI "Enable bi-directional unicode support" off \
SERVER "Enable dedicated server" off
.include <bsd.port.options.mk>
post-patch: post-patch:
${REINPLACE_CMD} -e "s,-Werror,," ${WRKSRC}/Makefile.in \ ${REINPLACE_CMD} -e "s,-Werror,," ${WRKSRC}/Makefile.in \
${WRKSRC}/src/Makefile.in ${WRKSRC}/src/Makefile.in
@ -43,4 +49,18 @@ CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment " PLIST_SUB+= NLS="@comment "
.endif .endif
.if defined(WITH_SERVER)
PLIST_SUB+= SERVER=""
CONFIGURE_ARGS+= --enable-servers
.else
PLIST_SUB+= SERVER="@comment "
.endif
.if defined(WITH_FRIBIDI)
LIB_DEPENDS+= fribidi:${PORTSDIR}/converters/fribidi
CONFIGURE_ARGS+= --enable-fribidi
.else
CONFIGURE_ARGS+= --disable-fribidi
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,5 +1,7 @@
bin/wormux bin/wormux
%%SERVER%%bin/wormux-index-server
bin/wormux-list-games bin/wormux-list-games
%%SERVER%%bin/wormux-server
share/applications/wormux.desktop share/applications/wormux.desktop
%%NLS%%share/locale/bg/LC_MESSAGES/wormux.mo %%NLS%%share/locale/bg/LC_MESSAGES/wormux.mo
%%NLS%%share/locale/bs/LC_MESSAGES/wormux.mo %%NLS%%share/locale/bs/LC_MESSAGES/wormux.mo