mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
3f651573ad
Begin autotools sanitization sequence by requiring ports to explicitly specify which version of {libtool,autoconf,automake} they need, erasing the concept of a "system default". For ports-in-waiting: USE_LIBTOOL=YES -> USE_LIBTOOL_VER=13 USE_AUTOCONF=YES -> USE_AUTOCONF_VER=213 USE_AUTOMAKE=YES -> USE_AUTOMAKE_VER=14 Ports attempting to use the old style system after June 1st 2004 will be sorely disappointed.
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# New ports collection makefile for: yafray
|
|
# Date created: 18 May 2003
|
|
# Whom: David Yeske <dyeske@yahoo.com>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= yafray
|
|
PORTVERSION= 0.0.4
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://www.coala.uniovi.es/~jandro/noname/downloads/
|
|
|
|
MAINTAINER= dyeske@yahoo.com
|
|
COMMENT= A fast XML based raytracer
|
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
|
|
|
|
USE_GETOPT_LONG=yes
|
|
USE_REINPLACE= yes
|
|
USE_LIBTOOL_VER=13
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib ${PTHREAD_CFLAGS}" \
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
|
|
|
.if defined(WITH_OPTIMIZED_CFLAGS)
|
|
CFLAGS+= -O3 -ffast-math
|
|
.endif
|
|
|
|
pre-everything::
|
|
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
|
@${ECHO_MSG} "You can enable additional compilation optimizations"
|
|
@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|-lpthread|${PTHREAD_LIBS}|' \
|
|
${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -E -e \
|
|
's|^CXX =.+$$|CXX=${CXX}|; \
|
|
s|-O3||; \
|
|
s|-ffast-math||; \
|
|
s|-Wall|${CXXFLAGS}|' \
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
.include <bsd.port.mk>
|