aboutsummaryrefslogtreecommitdiffstats
path: root/audio/glame/Makefile
blob: 8684e41a1fb56fb3b7865830e97a29a769f03966 (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
# New ports collection makefile for:    glame
# Date created:             26 September 2000
# Whom:                 Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   glame
PORTVERSION=    0.6.3
CATEGORIES= audio gnome
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= sobomax@FreeBSD.org

LIB_DEPENDS=    ltdl.1:${PORTSDIR}/devel/libtool

USE_GNOMENG=    yes
USE_GNOME=  gnomeprefix gnomehack libglade
USE_X_PREFIX=   yes
USE_GMAKE=  yes
USE_LIBTOOL=    yes
INSTALLS_SHLIB= yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib -lltdl ${PTHREAD_LIBS}"

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
         s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
    @find ${WRKSRC} -name "Makefile.in*" | xargs ${REINPLACE_CMD} -e \
        's|-lpthread|${PTHREAD_LIBS}|g'
    @find ${WRKSRC} -name "*.[ch]" | xargs ${REINPLACE_CMD} -e \
        's|<values[.]h>|<limits.h>|'

post-install:
    @install-info ${PREFIX}/info/glame.info \
        --section="Audio Processing" \
        --entry="* glame: (glame).           audio processing tool for GNOME" \
        ${PREFIX}/info/dir

.include <bsd.port.post.mk>