aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/dvdisaster/Makefile
blob: 092ab103ae84cbffe427893cff71f7218455b128 (plain) (blame)
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
# New ports collection makefile for:    dvdisaster
# Date created:                         2006/08/13
# Whom:                                 Heiner <h.eichmann@gmx.de>
#
# $FreeBSD$
#

PORTNAME=   dvdisaster
PORTVERSION=    0.72.4
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   SF \
        http://dvdisaster.net/downloads/

MAINTAINER= chalpin@cs.wisc.edu
COMMENT=    A CD/DVD error recovery tool

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  bash:${PORTSDIR}/shells/bash

MAKEFILE=   GNUmakefile

USE_BZIP2=  yes
USES=       gettext
USE_GNOME=  gtk20
CONFIGURE_ARGS= --prefix=${PREFIX} \
        --docsubdir="/" \
        --png-includes=${LOCALBASE}/include \
        --png-libraries=${LOCALBASE}/lib
USE_GMAKE=  yes
MAKE_JOBS_UNSAFE=yes

.if defined(NOPORTDOCS)
CONFIGURE_ARGS+=    --docdir=${WRKSRC}
.else
CONFIGURE_ARGS+=    --docdir=${DOCSDIR}
.endif

PORTDOCS=   *

PORTSCOUT=  limitw:1,even

MAN1=       dvdisaster.1
MANLANG=    "" cs de it

do-configure:
    @(cd ${CONFIGURE_WRKSRC} && \
        if ! ${SETENV} CC="${CC}" CXX="${CXX}" \
        CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
        INSTALL="${INSTALL} -c ${_BINOWNGRP}" \
        INSTALL_DATA="${INSTALL_DATA}" \
        INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
        INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
        ${CONFIGURE_ENV} bash configure ${CONFIGURE_ARGS}; then \
             ${ECHO_CMD} "===>  Script \"${CONFIGURE_SCRIPT}\" failed unexpectedly."; \
             (${ECHO_CMD} ${CONFIGURE_FAIL_MESSAGE}) | ${FMT} 75 79 ; \
             ${FALSE}; \
        fi)

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>