aboutsummaryrefslogtreecommitdiffstats
path: root/audio/gnump3d/Makefile
blob: 20ab6940c4eee71f664442408620a02a3697aa8f (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
# ex:ts=8
# Ports collection makefile for:    gnump3d
# Date created:         May 27, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   gnump3d
PORTVERSION=    1.0
PORTREVISION=   2
CATEGORIES= audio
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org

USE_BZIP2=  yes
USE_PERL5=  yes
USE_REINPLACE=  yes
USE_GMAKE=  yes
USE_AUTOCONF_VER=   253
CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CONFIG_SHELL="${SH}" \
        CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --libdir=${PREFIX}/lib/gnump3d
# Avoid triggering automake
MAKE_ARGS=  ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \
        AUTOMAKE="${TRUE}"

MAN1=   gnump3d.1 gnump3d.conf.1 gnump3d-top.1

.if !defined(WITHOUT_VORBIS)
LIB_DEPENDS=    vorbis.2:${PORTSDIR}/audio/libvorbis
CONFIGURE_ARGS+=    --with-vorbis
.endif

pre-everything::
.if !defined(WITHOUT_VORBIS)
    @${ECHO_MSG}
    @${ECHO_MSG} "If you want to compile without Ogg/Vorbis support,"
    @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITHOUT_VORBIS=yes\""
    @${ECHO_MSG}
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS}|g ; \
         s|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/aclocal.m4

pre-configure:
.for dir in libltdl mplib
    @(cd ${WRKSRC}/${dir} && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF} \
        ${AUTOCONF_ARGS})
.endfor

post-install:
    @${MKDIR} /var/log/gnump3d

.include <bsd.port.mk>