1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Fix options helper

- Fix OPTIONS_DEFAULT: remove IPV6 and NLS which are added by framework
- Convert to options target helper

Approved by:	portmgr (blanket)
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2017-05-28 23:17:24 +00:00
parent 8a815a6a69
commit 6fbb7d9609
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=441957

View File

@ -26,7 +26,7 @@ CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} --program-transform-name= \
PORTDATA= *
OPTIONS_DEFINE?= NLS X11 SDL MYSQL IPV6 DOCS
OPTIONS_DEFAULT?= NLS X11 IPV6
OPTIONS_DEFAULT?= X11
OPTIONS_SUB= yes
SDL_CONFIGURE_ON= --enable-client=gtk,sdl
SDL_USE= SDL=sdl,image,ttf,gfx
@ -72,11 +72,11 @@ post-patch:
${WRKSRC}/client/Makefile.in
post-install:
.if ${PORT_OPTIONS:MX11}
${INSTALL_DATA} ${WRKSRC}/data/civclient.dsc ${STAGEDIR}${DATADIR}/
cd ${STAGEDIR}/${PREFIX}/bin && ${LN} -s freeciv-gtk2 freeciv-client
.endif
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libfreeciv*.so
${RM} ${STAGEDIR}${PREFIX}/etc/ggz.modules
post-install-X11-on:
${INSTALL_DATA} ${WRKSRC}/data/civclient.dsc ${STAGEDIR}${DATADIR}/
cd ${STAGEDIR}/${PREFIX}/bin && ${LN} -s freeciv-gtk2 freeciv-client
.include <bsd.port.mk>