View | Details | Raw Unified | Return to bug 29687
Collapse All | Expand All

(-)xcdroast/Makefile (-7 / +30 lines)
Lines 6-17 Link Here
6
#
6
#
7
7
8
PORTNAME=	xcdroast
8
PORTNAME=	xcdroast
9
PORTVERSION=	0.98.a.8
9
PORTVERSION=	0.98.a.9
10
CATEGORIES=	sysutils
10
CATEGORIES=	sysutils
11
MASTER_SITES=	http://www.xcdroast.org/download/
11
MASTER_SITES=	http://www.xcdroast.org/download/
12
DISTNAME=	xcdroast-0.98alpha8
12
DISTNAME=	${PORTNAME}-0.98alpha9
13
13
14
MAINTAINER=	Kai_Allard_Liao@gmx.de
14
MAINTAINER=	lehmann@ans-netz.de
15
15
16
RUN_DEPENDS=	cdrecord:${PORTSDIR}/sysutils/cdrtools \
16
RUN_DEPENDS=	cdrecord:${PORTSDIR}/sysutils/cdrtools \
17
		mkisofs:${PORTSDIR}/sysutils/mkisofs
17
		mkisofs:${PORTSDIR}/sysutils/mkisofs
Lines 21-30 Link Here
21
USE_GTK=	yes
21
USE_GTK=	yes
22
USE_IMLIB=	yes
22
USE_IMLIB=	yes
23
23
24
post-patch:
25
	for i in xcdroast.h Makefile ; do \
26
	  ${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/$$i ; \
27
	done
28
24
post-install:
29
post-install:
25
	       ${LN} -sf ${PREFIX}/bin/cdrecord ${X11BASE}/lib/xcdroast-0.98/bin/cdrecord
26
	       ${LN} -sf ${PREFIX}/bin/mkisofs ${X11BASE}/lib/xcdroast-0.98/bin/mkisofs
27
	       ${LN} -sf ${PREFIX}/bin/cdda2wav ${X11BASE}/lib/xcdroast-0.98/bin/cdda2wav
28
	       ${LN} -sf ${PREFIX}/bin/readcd ${X11BASE}/lib/xcdroast-0.98/bin/readcd
29
30
31
	${LN} -sf ${LOCALBASE}/bin/cdrecord ${PREFIX}/lib/xcdroast-0.98/bin/cdrecord
32
	${LN} -sf ${LOCALBASE}/bin/mkisofs ${PREFIX}/lib/xcdroast-0.98/bin/mkisofs
33
	${LN} -sf ${LOCALBASE}/bin/cdda2wav ${PREFIX}/lib/xcdroast-0.98/bin/cdda2wav
34
	${LN} -sf ${LOCALBASE}/bin/readcd ${PREFIX}/lib/xcdroast-0.98/bin/readcd
35
36
	pw groupadd -n cdwrite
37
38
	for i in cdrecord cdda2wav mkisofs readcd ; do \
39
	    chown root:cdwrite ${PREFIX}/bin/$i && \
40
	    chmod 4710 ${PREFIX}/bin/$i ; \
41
	done
42
43
	chown root:cdwrite ${PREFIX}/lib/xcdroast-0.98/bin/xcdrwrap
44
	chmod 2755 ${PREFIX}/lib/xcdroast-0.98/bin/xcdrwrap
45
46
	@${ECHO} ""
47
	@${ECHO} "***************************************************************"
48
	@${ECHO} " The first time root have to start xcdroast, to create the"
49
	@${ECHO} " root-configuration-file ${PREFIX}/etc/xcdroast.conf. Without"
50
	@${ECHO} " this file, a normal user will get an error message."
51
	@${ECHO} "***************************************************************"
52
	@${ECHO} ""
30
.include <bsd.port.mk>
53
.include <bsd.port.mk>
(-)xcdroast/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (xcdroast-0.98alpha8.tar.gz) = b26664d09a530f798e062cfb9f8aac8f
1
MD5 (xcdroast-0.98alpha9.tar.gz) = 543d3237e7109572f5fcb6bdc6cf3e44
(-)xcdroast/files/patch-Makefile (-22 / +7 lines)
Lines 1-26 Link Here
1
--- Makefile.orig	Sun Nov 26 15:03:56 2000
1
--- Makefile.orig	Tue Aug 14 01:01:08 2001
2
+++ Makefile	Tue Jan 16 18:02:52 2001
2
+++ Makefile	Tue Aug 14 01:01:32 2001
3
@@ -5,7 +5,7 @@
3
@@ -6,7 +6,7 @@
4
 
5
 # Installation prefix directory:
4
 # Installation prefix directory:
6
 
5
 
7
-PREFIX=/usr
6
 #PREFIX=/usr
8
+PREFIX?=/usr/X11R6
7
-PREFIX=/usr/local
9
 #PREFIX=/usr/local
8
+PREFIX=%%PREFIX%%
10
 PRE_LIBDIR=$(PREFIX)/lib/xcdroast-0.98
9
 PRE_LIBDIR=$(PREFIX)/lib/xcdroast-0.98
11
 
10
 
12
@@ -13,10 +13,10 @@
11
 # put here the prefix where you want xcdroast to look for 
13
 
14
 #---
15
 
16
-CFLAGS=-Wall `gtk-config --cflags` `imlib-config --cflags` -DPRE_PREFIX="\"$(PREFIX)\"" -DPRE_LIBDIR="\"$(PRE_LIBDIR)\""
17
-LIBS=`gtk-config --libs` `imlib-config --libs` -lgdk_imlib 
18
-TOOLLIBS=`gtk-config --libs`
19
-CC=gcc
20
+CFLAGS+=-Wall `${GTK_CONFIG} --cflags` `imlib-config --cflags` -DPRE_PREFIX="\"$(PREFIX)\"" -DPRE_LIBDIR="\"$(PRE_LIBDIR)\""
21
+LIBS=`${GTK_CONFIG} --libs` `imlib-config --libs` -lgdk_imlib
22
+TOOLLIBS=`${GTK_CONFIG} --libs`
23
+CC?=gcc
24
 
25
 OBJ = main.o language.o init.o tools.o xtools.o menus.o setup.o io.o duplicate.o wav_frontend.o wav_id.o create.o
26
 
(-)xcdroast/files/patch-aa (+19 lines)
Line 0 Link Here
1
--- xcdroast.h.orig	Tue Aug 14 00:15:43 2001
2
+++ xcdroast.h	Tue Aug 14 00:46:08 2001
3
@@ -89,14 +89,14 @@
4
 #define SAVEMASTERTRACK "mkisofs.out"
5
 
6
 /* default paths/configfile */
7
-#define PREFIX "/usr/local"
8
+#define PREFIX "%%PREFIX%%"
9
 #define LIBDIR "lib/xcdroast-0.98"
10
 #define CONFIGDIR "~/.xcdroast"
11
 #define CONFFILE "xcdr098.cfg"
12
 #define LOGFILE "xcdr098.log"
13
 #define ISOOPTFILE "isoopt.cfg"
14
 #define ISOHEADERFILE "isoheader.cfg"
15
-#define ROOTCONFIG "/etc/xcdroast.conf"
16
+#define ROOTCONFIG "%%PREFIX%%/etc/xcdroast.conf"
17
 
18
 /* language stuff*/
19
 #define MAXENTRIES 512 
(-)xcdroast/pkg-plist (-1 / +2 lines)
Lines 1-4 Link Here
1
bin/xcdrgtk
1
bin/xcdroast
2
lib/xcdroast-0.98/icons/burnproof.gif
2
lib/xcdroast-0.98/icons/burnproof.gif
3
lib/xcdroast-0.98/icons/cddblogo.gif
3
lib/xcdroast-0.98/icons/cddblogo.gif
4
lib/xcdroast-0.98/icons/dialog_default.png
4
lib/xcdroast-0.98/icons/dialog_default.png
Lines 19-24 Link Here
19
lib/xcdroast-0.98/bin/cdrecord
19
lib/xcdroast-0.98/bin/cdrecord
20
lib/xcdroast-0.98/bin/cdda2wav
20
lib/xcdroast-0.98/bin/cdda2wav
21
lib/xcdroast-0.98/bin/readcd
21
lib/xcdroast-0.98/bin/readcd
22
lib/xcdroast-0.98/bin/xcdrwrap
22
@dirrm lib/xcdroast-0.98/bin
23
@dirrm lib/xcdroast-0.98/bin
23
@dirrm lib/xcdroast-0.98/icons
24
@dirrm lib/xcdroast-0.98/icons
24
@dirrm lib/xcdroast-0.98/lang
25
@dirrm lib/xcdroast-0.98/lang

Return to bug 29687