aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/gtoaster/Makefile
blob: 5a8bcfcb7444d110424cf988895f70ec30bf5c28 (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
# New ports collection makefile for:    gtoaster
# Date created:             28 September 2000
# Whom:                 eric
#
# $FreeBSD$
#

PORTNAME=   gtoaster
PORTVERSION=    1.0.b6
PORTREVISION=   1
PORTEPOCH=  2
CATEGORIES= sysutils gnome
MASTER_SITES=   http://gnometoaster.rulez.org/archive/
DISTNAME=   ${PORTNAME}${PORTVERSION:S/.b/Beta/}
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Graphical cd cooking interface

RUN_DEPENDS=    cdrecord:${PORTSDIR}/sysutils/cdrtools \
        mkisofs:${PORTSDIR}/sysutils/mkisofs

WRKSRC=     ${WRKDIR}/${PORTNAME}

PLIST_FILES=    bin/gtoaster
USE_X_PREFIX=   yes
WANT_GNOME= yes
USE_GNOME=  gnomehack gnometarget gtk12
USE_GMAKE=  yes
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mgnomelibs}!=""
PKGNAMESUFFIX=  -gnome
USE_GNOME+= gnomelibs
.else
CONFIGURE_ARGS+=    --without-gnome
.endif

.if ${HAVE_GNOME:Morbit}!=""
USE_GNOME+= orbit
.else
CONFIGURE_ARGS+=    --without-orbit
.endif

.if ${HAVE_GNOME:Mesound}!=""
USE_GNOME+= esound
.else
CONFIGURE_ARGS+=    --without-esd
.endif

post-extract:
    @${RM} -f ${WRKSRC}/config.guess
    @${TOUCH} ${WRKSRC}/config.guess

post-patch:
    ${REINPLACE_CMD} -e 's, -pthread, ${PTHREAD_LIBS},g' \
        ${WRKSRC}/configure
.include <bsd.port.post.mk>