aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libvisual04/Makefile
blob: 3b72c6ef0ea6fbac30aa6a20f3151af94ad0b9be (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
# New ports collection makefile for:    libvisual
# Date created:     23 oktober 2004
# Whom:         Koop Mast <kwm@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   libvisual
PORTVERSION=    0.4.0
CATEGORIES= graphics
MASTER_SITES=   SF
PKGNAMESUFFIX=  04

MAINTAINER= infofarmer@FreeBSD.org
COMMENT=    Abstraction library that sits between apps and visual plugin

USE_AUTOTOOLS=  libtool:15
USE_XLIBS=  yes
USE_GNOME=  gnomehack pkgconfig
USE_GETTEXT=    yes
GNU_CONFIGURE=  yes
CPPFLAGS=   -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS=    -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
USE_LDCONFIG=   yes
PLIST_SUB=  VER=-0.4

post-patch:
    @${REINPLACE_CMD} -e 's|-Wno-unused-variable||g;s|-O3|${CFLAGS}|g' \
        ${WRKSRC}/libvisual/Makefile.in
    @${REINPLACE_CMD} -e 's|sys/sched.h||g' -e '/test.*==/s|==|=|g' ${WRKSRC}/configure
    @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e 's|$$<|$${.ALLSRC}|g'

.include <bsd.port.mk>