1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Fix build (remove BROKEN). Use CXX as compiler instead of CC.

- Add stage support
This commit is contained in:
Danilo Egea Gondolfo 2013-12-07 18:38:36 +00:00
parent 639f14b87b
commit 30ec49f1f3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335840
3 changed files with 36 additions and 8 deletions

View File

@ -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

View File

@ -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)

View File

@ -1,4 +1,5 @@
bin/xcd
man/man1/xcd.1.gz
lib/xcd/cdplayer
lib/xcd/eject.xbm
lib/xcd/eject_s.xbm