aboutsummaryrefslogtreecommitdiffstats
path: root/audio/nas/Makefile
blob: 7b5baf750beabe102b6acb0f5916192f1a91c6ea (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
# Created by: jkh
# $FreeBSD$

PORTNAME=   nas
PORTVERSION=    1.9.3
PORTREVISION=   1
CATEGORIES= audio
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}.${PORTVERSION}%20%28stable%29
EXTRACT_SUFX=   .src.tar.gz

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

USES=       imake
USE_CSTD=   gnu89
USE_XORG=   x11 xext xt xau sm ice xp xpm xmu xaw
USE_LDCONFIG=   yes
MAKE_ENV+=  COMPRESS_CMD="${COMPRESS_CMD:S/c//}"
MAKE_JOBS_UNSAFE=   yes

PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES=  pkg-message

.include "Makefile.man"

.include <bsd.port.pre.mk>

post-configure:
# Work around shortcomings of the Imake.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:
    @${CAT} ${PKGMESSAGE}

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

.include <bsd.port.post.mk>