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

- Switch to options helpers

This commit is contained in:
Dmitry Marakasov 2015-09-15 12:08:07 +00:00
parent 7162affaee
commit 8dddf1cd08
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396955

View File

@ -33,31 +33,24 @@ OPTIONS_DEFINE= DESKTOP_FILES
OPTIONS_DEFAULT=DESKTOP_FILES
DESKTOP_FILES_DESC=Install menu entries (lots of them)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDESKTOP_FILES}
. for f in ${PUZZLE_LIST}
PLIST_FILES+= share/pixmaps/sgt-${f}.png
DESKTOP_ENTRIES+=\
.for f in ${PUZZLE_LIST}
DESKTOP_FILES_PLIST_FILES+= share/pixmaps/sgt-${f}.png
DESKTOP_FILES_DESKTOP_ENTRIES+=\
"${f}" \
"${f} puzzle game" \
"sgt-${f}" \
"sgt-${f}" \
"Game;LogicGame;" \
""
. endfor
.endif
.endfor
post-patch:
@${REINPLACE_CMD} -e 's|-Werror||' ${WRKSRC}/configure.ac \
${WRKSRC}/configure
.if ${PORT_OPTIONS:MDESKTOP_FILES}
post-install:
. for f in ${PUZZLE_LIST}
post-install-DESKTOP_FILES-on:
.for f in ${PUZZLE_LIST}
${INSTALL_DATA} ${WRKSRC}/icons/${f}-48d24.png ${STAGEDIR}${PREFIX}/share/pixmaps/sgt-${f}.png
. endfor
.endif
.endfor
.include <bsd.port.mk>