Support stage
General modernization
This commit is contained in:
parent
e2f3ea58af
commit
099912cfb1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347357
1 changed files with 10 additions and 16 deletions
|
@ -6,14 +6,14 @@ PORTVERSION= 0.91
|
|||
CATEGORIES= audio devel
|
||||
MASTER_SITES= http://www.hawksoft.com/download/files/
|
||||
DISTNAME= HawkVoiceDI091src
|
||||
EXTRACT_SUFX= .zip
|
||||
|
||||
MAINTAINER= acm@FreeBSD.org
|
||||
COMMENT= Portable sound and speech compression library
|
||||
|
||||
USE_ZIP= yes
|
||||
NO_STAGE= yes
|
||||
USE_DOS2UNIX= yes
|
||||
USES= gmake
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
USES= gmake dos2unix
|
||||
MAKEFILE= makefile.linux
|
||||
USE_CSTD= gnu89
|
||||
USE_LDCONFIG= yes
|
||||
|
@ -21,30 +21,24 @@ USE_LDCONFIG= yes
|
|||
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
MAKE_ENV= MAKE="${GMAKE}"
|
||||
MAKE_ARGS= LIBDIR=${STAGEDIR}${PREFIX}/lib INCDIR=${STAGEDIR}${PREFIX}/include
|
||||
|
||||
WRKSRC= ${WRKDIR}/HawkVoiceDI/src
|
||||
|
||||
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
CFLAGS_amd64= -fPIC -DPIC
|
||||
CFLAGS_ia64= -fPIC -DPIC
|
||||
|
||||
.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
|
||||
OPTIMIZED_CFLAGS_CFLAGS= -funroll-all-loops -ffast-math -fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT
|
||||
|
||||
post-patch:
|
||||
@${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' "{}" \;
|
||||
|
||||
post-install:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for FILE in api.txt HVDIchanges.txt readme.txt cryptapi.txt
|
||||
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue