diff options
author | johans <johans@FreeBSD.org> | 2012-06-29 00:12:21 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2012-06-29 00:12:21 +0800 |
commit | 85e01b22fa784372e96fe2125315113e71c06268 (patch) | |
tree | 5d6962d1dfd37d46dbd0d9a1e14673aa0b241785 /games/eboard | |
parent | ee875ae74ec47053ef25485870a507d035968953 (diff) | |
download | freebsd-ports-gnome-85e01b22fa784372e96fe2125315113e71c06268.tar.gz freebsd-ports-gnome-85e01b22fa784372e96fe2125315113e71c06268.tar.zst freebsd-ports-gnome-85e01b22fa784372e96fe2125315113e71c06268.zip |
Convert to new options framework
Diffstat (limited to 'games/eboard')
-rw-r--r-- | games/eboard/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/games/eboard/Makefile b/games/eboard/Makefile index 287d88227ede..4cd2b89c08f4 100644 --- a/games/eboard/Makefile +++ b/games/eboard/Makefile @@ -39,7 +39,8 @@ INSTALL_TARGET= install install-man MAN1= eboard-config.1 eboard-addtheme.1 MAN6= eboard.6 -OPTIONS= JOYSTICK "joystick support" off +OPTIONS_DEFINE= JOYSTICK +JOYSTICK_DESC= Enable joystick support DESKTOP_ENTRIES="eboard" \ "Play chess" \ @@ -48,9 +49,9 @@ DESKTOP_ENTRIES="eboard" \ "Application;Game;" \ true -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_JOYSTICK) +.if ${PORT_OPTIONS:MJOYSTICK} BUILD_DEPENDS+= ${LOCALBASE}/include/linux/joystick.h:${PORTSDIR}/devel/linux-js RUN_DEPENDS+= ${LOCALBASE}/include/linux/joystick.h:${PORTSDIR}/devel/linux-js .endif @@ -65,7 +66,7 @@ post-patch: @${REINPLACE_CMD} -e 's,g++,${CXX},' -e 's,-O6,${CXXFLAGS},' \ ${WRKSRC}/configure -.if !defined(WITH_JOYSTICK) +.if empty(PORT_OPTIONS:MJOYSTICK) post-configure: @${REINPLACE_CMD} -e '/^#define HAVE_LINUX_JOYSTICK_H 1/ d' \ ${WRKSRC}/config.h @@ -89,4 +90,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/icon-eboard.xpm ${PREFIX}/share/pixmaps/eboard.xpm @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |