Legal music and sound issues with games/viruskiller

David Demelier demelier.david at
Wed Aug 25 18:11:54 UTC 2010


We rewrote the games/viruskiller with one option, MUSIC. The musics and 
sounds have legal issues and that is specified here :

Because I wanted to write this port, I made this option to interact with 
the user. He needs to enable the option to use the sounds and musics.

I also said in the comment options that the files are non-free, then the 
user is completely warned.

Do you agree with this Makefile now ?

--- Makefile.orig	2010-08-25 19:20:40.000000000 +0200
+++ Makefile	2010-08-25 20:06:48.000000000 +0200
@@ -20,15 +20,26 @@
  USE_SDL=	mixer image ttf net
  USE_GMAKE=	yes

+NO_CDROM=	yes


  MAKEFILE=	makefile

+OPTIONS=	MUSIC "Enable musics (non-free)" Off
+.include <>
+.if !defined(WITH_MUSIC)
+SUB_FILES=	pkg-message
-	# Remove non-free restricted files:
-	${RM} -f ${WRKSRC}/music/* ${WRKSRC}/sound/*
+.if !defined(WITH_MUSIC)
+	@${REINPLACE_CMD} -e "s|music||g;s|sound||g" ${WRKSRC}/makefile

  .if defined(NOPORTDOCS)
  	@${REINPLACE_CMD} -e "s|^.*install.*DOCS.*||g" \
@@ -40,4 +51,9 @@
  		-e "s|^DATADIR.*|DATADIR=${DATADIR}/|g" \
  		-e "s|^DOCDIR.*|DOCDIR=${DOCSDIR}|g" ${WRKSRC}/makefile

+.if !defined(WITH_MUSIC)
  .include <>
--- /dev/null	2010-08-25 20:08:43.000000000 +0200
+++ files/	2010-08-25 20:05:20.000000000 +0200
@@ -0,0 +1,2 @@
+Because you disabled music you need to start viruskiller with the 
-noaudio flag,
+otherwise it will segfaults.

I think with this, we could keep the game in the ports/ tree.

With kind regards.

More information about the freebsd-ports mailing list