svn commit: r328537 - head/games/chroma
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sat Sep 28 00:38:48 UTC 2013
Author: amdmi3
Date: Sat Sep 28 00:38:48 2013
New Revision: 328537
URL: http://svnweb.freebsd.org/changeset/ports/328537
Log:
- Support staging
- Rework OPTIONS
Deleted:
head/games/chroma/pkg-plist
Modified:
head/games/chroma/Makefile
Modified: head/games/chroma/Makefile
==============================================================================
--- head/games/chroma/Makefile Sat Sep 28 00:30:36 2013 (r328536)
+++ head/games/chroma/Makefile Sat Sep 28 00:38:48 2013 (r328537)
@@ -19,35 +19,37 @@ CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= README
+PORTDATA= *
-OPTIONS_DEFINE= SDL CURSES DOCS
+OPTIONS_DEFINE= DOCS
+OPTIONS_MULTI= INTERFACES
+OPTIONS_MULTI_INTERFACES= SDL CURSES
OPTIONS_DEFAULT=SDL CURSES
+
SDL_DESC= Enable SDL interface
CURSES_DESC= Enable curses interface
-NO_STAGE= yes
+OPTIONS_SUB= yes
+CURSES_USES= ncurses
+CURSES_CONFIGURE_ENABLE=curses
+SDL_CONFIGURE_ENABLE= sdl
+SDL_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
+
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MCURSES}
-PLIST_SUB+= CURSES=""
-.else
-CONFIGURE_ARGS+=--disable-curses
-PLIST_SUB+= CURSES="@comment "
+.if ${PORT_OPTIONS:MSDL}
+USE_SDL+= sdl image
+PLIST_FILES+= bin/${PORTNAME}
.endif
-.if ${PORT_OPTIONS:MSDL}
-USE_SDL= sdl image
-LIB_DEPENDS+= freetype:${PORTSDIR}/print/freetype2
-PLIST_SUB+= SDL=""
-.else
-CONFIGURE_ARGS+=--disable-sdl
-PLIST_SUB+= SDL="@comment "
+.if ${PORT_OPTIONS:MCURSES}
+PLIST_FILES+= bin/${PORTNAME}-curses
.endif
.if ${PORT_OPTIONS:MDOCS}
post-install:
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list