freebsd-ports/audio/gnump3d/Makefile
Dmitry Sivachenko 5d7a3cfde0 Update to version 0.9.9.9.2.
PR:		40620
Submitted by:	KATO Tsuguru <tkato@prontomail.com>
2002-07-15 21:38:20 +00:00

55 lines
1.3 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: gnump3d
# Date created: May 27, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= gnump3d
PORTVERSION= 0.9.9.9.2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf
USE_BZIP2= yes
USE_PERL5= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --libdir=${PREFIX}/lib/gnump3d
INSTALLS_SHLIB= yes
MAN1= gnump3d.1 gnump3d.conf.1 gnump3d-config.1 gnump3d-top.1
.if !defined(WITHOUT_VORBIS)
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
@${REINPLACE_CMD} -e \
's|#undef socklen_t||g' ${WRKSRC}/src/config.h.in
pre-configure:
.for dir in . mplib libltdl
@cd ${WRKSRC}/${dir} && ${LOCALBASE}/bin/autoconf
.endfor
.include <bsd.port.mk>