aboutsummaryrefslogtreecommitdiffstats
path: root/audio/nas/Makefile
blob: f59acbc1d5eb8855008ff8fc411db83f7e57a456 (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
# New ports collection makefile for:    nas (formerly netaudio)
# Date created:     03 Nov 1994
# Whom:         jkh
#
# $FreeBSD$
#

PORTNAME=   nas
PORTVERSION=    1.7b
CATEGORIES= audio
MASTER_SITES=   http://nas.codebrilliance.com/nas/
EXTRACT_SUFX=   .src.tar.gz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Network Audio System

USE_REINPLACE=  yes
USE_IMAKE=  yes
INSTALLS_SHLIB= yes
CFLAGS+=    -Werror
MAKE_ENV+=  COMPRESS_CMD="${COMPRESS_CMD:S/c//}"

post-patch:
    @${FIND} ${WRKSRC} -name '*.c' | ${XARGS} ${GREP} -lF malloc.h \
        | ${XARGS} ${REINPLACE_CMD} -n -e "s|<malloc.h>||" -e t -e p

post-configure:
    cd ${WRKSRC} && ${MAKE} Makefiles clean includes depend
    # Work around shortcomings of the Image.rules et. al:
    ${REINPLACE_CMD} -e 's:-fPIC:${FPIC} -DPIC:g' \
        -e 's,-c \$$(CCOPTIONS),-c $$(CFLAGS),' \
        -e 's,\(\$$(AR) \$$@ \$$\)(OBJS),\1(OBJS:S|^|unshared/|),' \
        ${WRKSRC}/lib/audio/Makefile

post-install:
    @${SED} -e 's:/usr/X11R6:${PREFIX}:g' ${PKGMESSAGE}

.include "Makefile.man"
.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
FPIC=   -fPIC
.else
FPIC=   -fpic
.endif

.include <bsd.port.post.mk>