aboutsummaryrefslogtreecommitdiffstats
path: root/audio/hawkvoice/Makefile
blob: 7d9d076a95f5248aa7633daae7e2a0c01f67d8c2 (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
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$

PORTNAME=   hawkvoice
PORTVERSION=    0.91
CATEGORIES= audio devel
MASTER_SITES=   http://www.hawksoft.com/download/files/
DISTNAME=   HawkVoiceDI091src

MAINTAINER= acm@FreeBSD.org
COMMENT=    Portable sound and speech compression library

USE_ZIP=    yes
USE_DOS2UNIX=   yes
USES=       gmake
MAKEFILE=   makefile.linux
USE_CSTD=   gnu89
USE_LDCONFIG=   yes

LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CPPFLAGS+=  -I${LOCALBASE}/include
MAKE_ENV=   MAKE="${GMAKE}"

WRKSRC= ${WRKDIR}/HawkVoiceDI/src

OPTIONS_DEFINE= OPTIMIZED_CFLAGS

.include <bsd.port.options.mk>

.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+=    -fPIC -DPIC
.endif

.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CFLAGS+=    -funroll-all-loops -ffast-math -fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT
.endif

post-patch:
    @${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' "{}" \;

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
.for FILE in api.txt HVDIchanges.txt readme.txt cryptapi.txt
    ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>