1999-04-21 13:51:11 +00:00
|
|
|
# New ports collection makefile for: cdrdao
|
1999-08-12 18:49:28 +00:00
|
|
|
# Version required: 1.1.2
|
1999-04-21 13:51:11 +00:00
|
|
|
# Date created: 7 April 1999
|
|
|
|
# Whom: futatuki
|
|
|
|
#
|
1999-08-25 04:36:31 +00:00
|
|
|
# $FreeBSD$
|
1999-04-21 13:51:11 +00:00
|
|
|
#
|
|
|
|
# If You don't want to use Joerg Schilling's SCSI library,
|
|
|
|
# set DONT_USE_SCGLIB = yes
|
1999-08-12 18:49:28 +00:00
|
|
|
# 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
|
1999-04-21 13:51:11 +00:00
|
|
|
|
1999-08-12 18:49:28 +00:00
|
|
|
DISTNAME= cdrdao-1.1.2.src
|
|
|
|
PKGNAME= cdrdao-1.1.2
|
1999-05-12 10:38:07 +00:00
|
|
|
CATEGORIES= audio
|
1999-04-21 13:51:11 +00:00
|
|
|
MASTER_SITES= http://www.ping.de/sites/daneb/
|
|
|
|
|
|
|
|
MAINTAINER= futatuki@fureai.or.jp
|
|
|
|
|
|
|
|
BUILD_DEPENDS= antlr:${PORTSDIR}/devel/pccts\
|
|
|
|
dlg:${PORTSDIR}/devel/pccts
|
|
|
|
|
1999-08-12 18:49:28 +00:00
|
|
|
WRKSRC= ${WRKDIR}/cdrdao-1.1.2
|
1999-04-21 13:51:11 +00:00
|
|
|
|
1999-08-29 04:45:19 +00:00
|
|
|
GNU_CONFIGURE= yes
|
1999-04-21 13:51:11 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
MAN1= cdrdao.1
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1999-08-13 22:37:38 +00:00
|
|
|
.if exists(${X11BASE}/include/gtk--.h)
|
1999-08-12 18:49:28 +00:00
|
|
|
XCDRDAO= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
XCDRDAO= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(XCDRDAO)
|
1999-08-29 06:25:05 +00:00
|
|
|
USE_NEWGCC= yes
|
1999-10-25 07:37:06 +00:00
|
|
|
LIB_DEPENDS+= gtkmm-1.0.7:${PORTSDIR}/x11-toolkits/gtk--
|
1999-08-12 18:49:28 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS= --disable-gtkmmtest
|
|
|
|
.endif
|
|
|
|
|
1999-08-29 06:25:05 +00:00
|
|
|
.if defined(USE_NEWGCC) && ${USE_NEWGCC} == yes && ${OSVERSION} < 400004
|
|
|
|
CFLAGS+= -fpermissive
|
|
|
|
.endif
|
|
|
|
|
1999-07-10 19:36:42 +00:00
|
|
|
.if defined(DONT_USE_SCGLIB) && ${OSVERSION} > 300000
|
1999-04-21 13:51:11 +00:00
|
|
|
CONFIGURE_ARGS+= --without-scglib
|
|
|
|
.endif
|
|
|
|
|
1999-08-12 18:49:28 +00:00
|
|
|
.if defined(DONT_USE_PTHREADS) && ${OSVERSION} > 320000
|
1999-07-10 19:36:42 +00:00
|
|
|
CONFIGURE_ARGS+= --without-posix-threads
|
|
|
|
.endif
|
|
|
|
|
1999-08-12 18:49:28 +00:00
|
|
|
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
|
|
|
|
|
1999-09-20 00:36:16 +00:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
post-extract:
|
|
|
|
@(cd ${WRKSRC}/scsilib/RULES; \
|
|
|
|
ln -sf i386-freebsd-cc.rul alpha-freebsd-cc.rul)
|
|
|
|
.endif
|
|
|
|
|
1999-04-21 13:51:11 +00:00
|
|
|
post-install:
|
|
|
|
strip $(PREFIX)/bin/cdrdao
|
1999-08-12 18:49:28 +00:00
|
|
|
.if defined(XCDRDAO)
|
|
|
|
strip $(PREFIX)/bin/xcdrdao
|
|
|
|
.endif
|
1999-04-21 13:51:11 +00:00
|
|
|
@${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>
|