blob: 3f4f4246d160c485be68e5c5d1405ffe6202fc42 (
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
|
# New ports collection makefile for: liboil
# Date created: Nov 24, 2004
# Whom: ijliao
#
# $FreeBSD: ports/devel/liboil/Makefile,v 1.31 2008/02/05 12:33:13 ahze Exp $
# $MCom$
# $Id: Makefile,v 1.6 2008-03-19 13:53:25 ahze Exp $
PORTNAME= liboil
PORTVERSION= 0.3.14
CATEGORIES= devel
MASTER_SITES= http://liboil.freedesktop.org/download/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Library of optimized inner loops
USE_GNOME= pkgconfig gnomehack gnometarget ltverhack
USE_AUTOTOOLS= libtool:15
USE_LDCONFIG= yes
CONFIGURE_ARGS= --disable-gtk-doc \
--disable-glib
CFLAGS:= ${CFLAGS:N-O*} -O2
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 600000 && !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) && ${OSVERSION} < 700042
USE_GCC= 4.1+
.if ${OSVERSION} < 600000
RUN_DEPENDS+= ${BUILD_DEPENDS}
.endif
.endif
pre-everything::
.if ${MACHINE_CPU:M3dnow}!="" && ${OSVERSION} < 700042
.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>
|