summaryrefslogtreecommitdiffstats
path: root/audio/cdrdao/Makefile
blob: 0145dfe7eba7d22acd8f0d58448b50f75982cca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# New ports collection makefile for:    cdrdao
# Version required:     1.1.2
# Date created:         7 April 1999
# Whom:                 futatuki
#
# $FreeBSD$
#
# If You don't want to use Joerg Schilling's SCSI library,
# set DONT_USE_SCGLIB = yes
# If You don't want to use pthreads, set DONT_USE_PTHREADS = yes
# If You want the graphical X toc file editor, set XCDRDAO = yes

DISTNAME=		cdrdao-1.1.2.src
PKGNAME=		cdrdao-1.1.2
CATEGORIES=		audio
MASTER_SITES=		http://www.ping.de/sites/daneb/

MAINTAINER=		futatuki@fureai.or.jp

BUILD_DEPENDS=		antlr:${PORTSDIR}/devel/pccts\
			dlg:${PORTSDIR}/devel/pccts

WRKSRC=         	${WRKDIR}/cdrdao-1.1.2

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
MAN1=		cdrdao.1

.include <bsd.port.pre.mk>

.if exists(${X11BASE}/include/gtk--.h)
XCDRDAO=		yes
.endif

.if defined(PACKAGE_BUILDING)
XCDRDAO=		yes
.endif

.if defined(XCDRDAO)
USE_NEWGCC=	yes
LIB_DEPENDS+=		gtkmm-1.0.7:${PORTSDIR}/x11-toolkits/gtk--
.else
CONFIGURE_ARGS= 	--disable-gtkmmtest
.endif

.if defined(USE_NEWGCC) && ${USE_NEWGCC} == yes && ${OSVERSION} < 400004
CFLAGS+=		-fpermissive
.endif

.if defined(DONT_USE_SCGLIB) && ${OSVERSION} > 300000
CONFIGURE_ARGS+= 	--without-scglib
.endif

.if defined(DONT_USE_PTHREADS) && ${OSVERSION} > 320000
CONFIGURE_ARGS+=	--without-posix-threads
.endif

pre-fetch:
.if !defined(XCDRDAO)
	@${ECHO_MSG} "To build the graphical X toc file editor, xcdrdao, type:"
	@${ECHO_MSG} "    make XCDRDAO=yes"
.else
	@${ECHO_MSG} "Building with xcdrdao"
.endif

.if ${MACHINE_ARCH} == "alpha"
post-extract:
	@(cd ${WRKSRC}/scsilib/RULES; \
	  ln -sf i386-freebsd-cc.rul alpha-freebsd-cc.rul)
.endif

post-install:
	strip $(PREFIX)/bin/cdrdao
.if defined(XCDRDAO)
	strip $(PREFIX)/bin/xcdrdao
.endif
	@${MKDIR} ${PREFIX}/share/doc/cdrdao
.for i in COPYING INSTALL README README.FreeBSD README.PlexDAE
	@${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/cdrdao/
.endfor
	@${CAT} ${PKGDIR}/MESSAGE

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud