Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Dec 2013 18:38:36 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r335840 - in head/audio/xcd: . files
Message-ID:  <201312071838.rB7IcamC074635@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Sat Dec  7 18:38:36 2013
New Revision: 335840
URL: http://svnweb.freebsd.org/changeset/ports/335840

Log:
  - Fix build (remove BROKEN). Use CXX as compiler instead of CC.
  - Add stage support

Modified:
  head/audio/xcd/Makefile
  head/audio/xcd/files/patch-Makefile
  head/audio/xcd/pkg-plist

Modified: head/audio/xcd/Makefile
==============================================================================
--- head/audio/xcd/Makefile	Sat Dec  7 18:23:30 2013	(r335839)
+++ head/audio/xcd/Makefile	Sat Dec  7 18:38:36 2013	(r335840)
@@ -12,12 +12,7 @@ COMMENT=	Tcl/Tk CD player
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
-BROKEN=		Does not build
-
-USES+=		tk
-NO_STAGE=	yes
-
-MAN1=		xcd.1
+USES=		tk
 
 WITH_CDROM_PLAYER?=	cd0
 

Modified: head/audio/xcd/files/patch-Makefile
==============================================================================
--- head/audio/xcd/files/patch-Makefile	Sat Dec  7 18:23:30 2013	(r335839)
+++ head/audio/xcd/files/patch-Makefile	Sat Dec  7 18:38:36 2013	(r335840)
@@ -1,5 +1,5 @@
---- Makefile.orig	1998-10-27 01:14:26.000000000 +0100
-+++ Makefile	2013-09-23 14:57:00.000000000 +0200
+--- ./Makefile.orig	1998-10-26 22:14:26.000000000 -0200
++++ ./Makefile	2013-12-07 16:02:51.000000000 -0200
 @@ -1,6 +1,6 @@
 -BINDIR = /usr/local/bin
 -CDDIR  = /usr/local/lib/xcd
@@ -10,3 +10,35 @@
  
  all: cdplayer xcd
  xcd:	xcd.in
+@@ -8,20 +8,20 @@
+ 		< xcd.in > $@
+ 	chmod ugo+x xcd
+ cdplayer: cdplayer.cc
+-	$(CC) $(CFLAGS) -o $@ cdplayer.cc -lm
++	$(CXX) $(CFLAGS) -o $@ cdplayer.cc -lm
+ 
+ install: xcd cdplayer
+-	mkdir -p $(BINDIR)
+-	mkdir -p $(MANDIR)
+-	mkdir -p $(CDDIR)
+-	install -c -s cdplayer $(CDDIR)
+-	install -c xcd $(BINDIR)
+-	install -c xcd.1 $(MANDIR)
++	mkdir -p ${DESTDIR}$(BINDIR)
++	mkdir -p ${DESTDIR}$(MANDIR)
++	mkdir -p ${DESTDIR}$(CDDIR)
++	install -c -s cdplayer ${DESTDIR}$(CDDIR)
++	install -c xcd ${DESTDIR}$(BINDIR)
++	install -c xcd.1 ${DESTDIR}$(MANDIR)
+ 	for f in bitmaps/*.xbm ; do \
+-		install -c $$f $(CDDIR); \
++		install -c $$f ${DESTDIR}$(CDDIR); \
+ 	done
+ 
+ install.prog: xcd cdplayer
+-	mkdir -p $(BINDIR)
+-	install -c -s cdplayer $(CDDIR)
+-	install -c xcd $(BINDIR)
++	mkdir -p ${DESTDIR}$(BINDIR)
++	install -c -s cdplayer ${DESTDIR}$(CDDIR)
++	install -c xcd ${DESTDIR}$(BINDIR)

Modified: head/audio/xcd/pkg-plist
==============================================================================
--- head/audio/xcd/pkg-plist	Sat Dec  7 18:23:30 2013	(r335839)
+++ head/audio/xcd/pkg-plist	Sat Dec  7 18:38:36 2013	(r335840)
@@ -1,4 +1,5 @@
 bin/xcd
+man/man1/xcd.1.gz
 lib/xcd/cdplayer
 lib/xcd/eject.xbm
 lib/xcd/eject_s.xbm



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312071838.rB7IcamC074635>