Bug 170671 - [MAINTAINER] games/twind: Makefile changed, OptionsNG
Summary: [MAINTAINER] games/twind: Makefile changed, OptionsNG
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-16 16:40 UTC by nemysis
Modified: 2012-08-17 18:50 UTC (History)
0 users

See Also:


Attachments
twind-1.1.0.patch (1.28 KB, patch)
2012-08-16 16:40 UTC, nemysis
no flags Details | Diff
twind.diff (309 bytes, patch)
2012-08-16 22:28 UTC, nemysis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2012-08-16 16:40:09 UTC
Makefile changed, OptionsNG added

.if ${PORT_OPTIONS:MDATA}

.if ${PORT_OPTIONS:MDOCS}

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
Comment 1 nemysis 2012-08-16 17:10:54 UTC
Please change

Severity: 	serious

to

Severity: 	non-critical

This is a Mistake, sorry.
Comment 2 Dmitry Marakasov freebsd_committer freebsd_triage 2012-08-17 18:44:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->amdmi3

I'll take it.
Comment 3 Dmitry Marakasov freebsd_committer freebsd_triage 2012-08-17 18:46:33 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2012-08-17 18:46:41 UTC
Author: amdmi3
Date: Fri Aug 17 17:46:32 2012
New Revision: 302690
URL: http://svn.freebsd.org/changeset/ports/302690

Log:
  - Switch to optionsNG
  
  PR:		ports/170671
  Submitted by:	nemysis <nemysis@gmx.ch>

Modified:
  head/games/twind/Makefile

Modified: head/games/twind/Makefile
==============================================================================
--- head/games/twind/Makefile	Fri Aug 17 17:43:59 2012	(r302689)
+++ head/games/twind/Makefile	Fri Aug 17 17:46:32 2012	(r302690)
@@ -15,15 +15,20 @@ COMMENT=	Match and remove all of the blo
 
 LICENSE=	GPLv2
 
+OPTIONS_DEFINE=	DATA
+OPTIONS_DEFAULT=	DATA
+
 USE_SDL=	sdl image mixer
 MAKE_JOBS_SAFE=	yes
 
-PLIST_FILES=	bin/twind \
+PLIST_FILES=	bin/${PORTNAME} \
 		share/pixmaps/${PORTNAME}.png
 
 PORTDATA=	*
 PORTDOCS=	AUTHORS CREDITS ChangeLog NEWS README TODO
 
+.include <bsd.port.options.mk>
+
 do-build:
 	cd ${WRKSRC} && ${CC} -o ${PORTNAME} ${CFLAGS} \
 		-DDATA_PREFIX=\"${DATADIR}/\" -DAUDIO -DLINUX \
@@ -31,17 +36,22 @@ do-build:
 do-install:
 # Executable
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-# Pixmaps
-	${INSTALL_DATA} ${WRKSRC}/graphics/twind.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
+
 # Data
+.if ${PORT_OPTIONS:MDATA}
 	${MKDIR} ${DATADIR}
 	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "graphics music sound" ${DATADIR})
+.endif
+
+# Pixmaps
+	${INSTALL_DATA} ${WRKSRC}/graphics/${PORTNAME}.png ${PREFIX}/share/pixmaps/
+
 # Documentation
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
+.  for f in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
+.  endfor
 .endif
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"