1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/devel/liboil/Makefile
Joe Marcus Clarke 168e68a284 * Disable SSE2 support since it is buggy and can cause crashes in
gstreamer applications
* Add gnometarget

Approved by:	ahze
2007-01-09 20:11:49 +00:00

63 lines
1.6 KiB
Makefile

# New ports collection makefile for: liboil
# Date created: Nov 24, 2004
# Whom: ijliao
#
# $FreeBSD$
# $Id: Makefile 23 2006-10-25 14:24:32Z buhnux $
PORTNAME= liboil
PORTVERSION= 0.3.10
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://liboil.freedesktop.org/download/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= ahze
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Library of optimized inner loops
USE_GNOME= pkgconfig gnomehack gnometarget
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --disable-gtk-doc \
--disable-glib
CFLAGS+= -O2
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 600000 && ${OSVERSION} > 500000 && !defined(WITH_3DNOW_GCC40)
BUILD_DEPENDS+= gcc34:${PORTSDIR}/lang/gcc34
RUN_DEPENDS+= gcc34:${PORTSDIR}/lang/gcc34
CC:= gcc34
CXX:= g++34
.endif
.if defined(WITH_3DNOW_GCC40)
USE_GCC= 4.0+
.if ${OSVERSION} < 600000 && ${OSVERSION} > 500000
# yeah yeah, I know other stuff will be added that shouldn't...
RUN_DEPENDS+= ${BUILD_DEPENDS}
.endif
.endif
pre-everything::
.if ${MACHINE_CPU:M3dnow}!=""
.if !defined(WITH_3DNOW_GCC40)
@${ECHO_MSG} "You can enable 3dnow extensions by defining"
@${ECHO_MSG} "WITH_3DNOW_GCC40=yes"
.endif
@${ECHO_MSG} ""
@${ECHO_MSG} "Note: ${PORTNAME} will depend on gcc4.0+ with WITH_3DNOW_GCC40"
@${ECHO_MSG} "defined."
.endif
post-patch:
@${REINPLACE_CMD} -e 's|\\$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|<stdint\.h|<inttypes.h|g' \
${WRKSRC}/liboil/liboiltypes.h \
${WRKSRC}/liboil/liboilprofile.h \
${WRKSRC}/liboil/liboil.h
.include <bsd.port.post.mk>