Changeset View
Changeset View
Standalone View
Standalone View
audio/soundtouch/Makefile
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org> | # Created by: Alexey Dokuchaev <danfe@FreeBSD.org> | ||||
PORTNAME= soundtouch | PORTNAME= soundtouch | ||||
DISTVERSION= 2.2 | DISTVERSION= 2.3.1 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= audio | CATEGORIES= audio | ||||
MAINTAINER= crees@FreeBSD.org | MAINTAINER= crees@FreeBSD.org | ||||
COMMENT= Open-source audio processing library | COMMENT= Open-source audio processing library | ||||
LICENSE= LGPL21 | LICENSE= LGPL21 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING.TXT | |||||
USES= cmake | |||||
USE_GITLAB= yes | USE_GITLAB= yes | ||||
GL_COMMIT= 762f56024b7ade81f6565903161dffec0ad4741e | GL_COMMIT= e1f315f5358d9db5cee35a7a2886425489fcefe8 | ||||
GNU_CONFIGURE= yes | |||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
USES= autoreconf libtool pathfix | CMAKE_ON= BUILD_SHARED_LIBS | ||||
OPTIONS_DEFINE= INTEGER_SAMPLES DOCS OPENMP | OPTIONS_DEFINE= INTEGER_SAMPLES OPTIMIZED_CFLAGS | ||||
OPTIONS_DEFINE_aarch64= NEON OPENMP | |||||
OPTIONS_DEFINE_amd64= OPENMP | |||||
OPTIONS_DEFINE_armv7= NEON | |||||
OPTIONS_DEFAULT= ${MACHINE_CPU:Msoftfp:C/.+/INTEGER_SAMPLES/} | OPTIONS_DEFAULT= ${MACHINE_CPU:Msoftfp:C/.+/INTEGER_SAMPLES/} | ||||
OPTIONS_DEFINE_amd64= SSE | OPTIONS_DEFAULT_aarch64=NEON OPENMP OPTIMIZED_CFLAGS | ||||
arrowd: Hum... This is extremely non-canonical, so I'm not sure what to do about it.
If I read this… | |||||
Done Inline ActionsCorrect, we have a least MIPS platforms that doesn't have hardware fpu support, there are also ARM (unsure of actual support n FreeBSD) and PPC platforms that share the same hardware limitation. diizzy: Correct, we have a least MIPS platforms that doesn't have hardware fpu support, there are also… | |||||
OPTIONS_DEFINE_i386= SSE | OPTIONS_DEFAULT_amd64= OPENMP OPTIMIZED_CFLAGS | ||||
OPTIONS_DEFAULT_amd64= SSE | |||||
OPTIONS_DEFAULT_i386= ${MACHINE_CPU:tu:MSSE} | |||||
INTEGER_SAMPLES_DESC= Use integer sample format | INTEGER_SAMPLES_DESC= Use integer sample format | ||||
INTEGER_SAMPLES_CONFIGURE_ENABLE= integer-samples | NEON_DESC= Use NEON instructions | ||||
OPENMP_CONFIGURE_ENABLE=openmp | |||||
SSE_CONFIGURE_ENABLE= x86-optimizations | |||||
SSE_USES= compiler:c++11-lang | |||||
post-patch: | INTEGER_SAMPLES_CMAKE_BOOL= INTEGER_SAMPLES | ||||
@${REINPLACE_CMD} -e \ | NEON_CMAKE_BOOL= NEON | ||||
'/^dist_doc_DATA/s|COPYING.TXT||' \ | OPENMP_CMAKE_BOOL= OPENMP | ||||
${WRKSRC}/Makefile.am | OPTIMIZED_CFLAGS_CFLAGS= -Ofast | ||||
@${REINPLACE_CMD} -e \ | |||||
's|^INCLUDES|AM_CPPFLAGS| ; \ | |||||
s|$$(prefix)/doc|$$(datadir)/doc|' \ | |||||
${WRKSRC}/config/am_include.mk | |||||
@${REINPLACE_CMD} -e \ | |||||
's|-O[0-9]||;s|-fcheck-new||' \ | |||||
${WRKSRC}/source/SoundTouch/Makefile.am | |||||
post-install: | |||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libSoundTouch.so.1.0.0 | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Hum... This is extremely non-canonical, so I'm not sure what to do about it.
If I read this right, the OPTIONS_DEFAULT knob is empty unless we have "softfp" in MACHINE_CPU?