Index: head/audio/zita-convolver/Makefile =================================================================== --- head/audio/zita-convolver/Makefile (revision 457350) +++ head/audio/zita-convolver/Makefile (revision 457351) @@ -1,39 +1,39 @@ # Created by: Yuri Victorovich # $FreeBSD$ PORTNAME= zita-convolver PORTVERSION= 3.1.0 PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= http://kokkinizita.linuxaudio.org/linuxaudio/downloads/ MAINTAINER= yuri@rawbw.com COMMENT= Fast, partitioned convolution engine library LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/../COPYING BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3 LIB_DEPENDS= libfftw3f.so:math/fftw3-float -BROKEN_aarch64= fails to compile: c++: the clang compiler does not support '-march=native' -BROKEN_armv6= fails to compile: c++: the clang compiler does not support '-march=native' -BROKEN_armv7= fails to compile: c++: the clang compiler does not support '-march=native' +#BROKEN_aarch64= fails to compile: c++: the clang compiler does not support '-march=native' +#BROKEN_armv6= fails to compile: c++: the clang compiler does not support '-march=native' +#BROKEN_armv7= fails to compile: c++: the clang compiler does not support '-march=native' USES= compiler:c++11-lib gmake localbase:ldflags tar:bz2 USE_LDCONFIG= yes WRKSRC_SUBDIR= libs PLIST_FILES= include/zita-convolver.h \ lib/libzita-convolver.so \ lib/libzita-convolver.so.3 \ lib/libzita-convolver.so.${PORTVERSION} post-patch: ${REINPLACE_CMD} 's/__APPLE__/__FreeBSD__/' \ ${WRKSRC}/zita-convolver.h post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libzita-convolver.so.${PORTVERSION} .include Index: head/audio/zita-convolver/files/patch-Makefile =================================================================== --- head/audio/zita-convolver/files/patch-Makefile (revision 457350) +++ head/audio/zita-convolver/files/patch-Makefile (revision 457351) @@ -1,34 +1,43 @@ --- Makefile.orig 2011-11-20 21:30:54 UTC +++ Makefile @@ -21,8 +21,8 @@ # Modify as required. # PREFIX = /usr/local -SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/') -LIBDIR = lib$(SUFFIX) +#SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/') +LIBDIR = lib MAJVERS = 3 +@@ -33,7 +33,7 @@ VERSION = $(MAJVERS).$(MINVERS) + CPPFLAGS += -I. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DENABLE_VECTOR_MODE + CXXFLAGS += -fPIC -Wall + CXXFLAGS += -ffast-math -funroll-loops -O3 +-CXXFLAGS += -march=native ++#CXXFLAGS += -march=native + LDLFAGS += + LDLIBS += + @@ -45,9 +45,10 @@ ZITA-CONVOLVER_DEP = -lfftw3f -lpthread ZITA-CONVOLVER_O = zita-convolver.o ZITA-CONVOLVER_H = zita-convolver.h +all: $(ZITA-CONVOLVER_MIN) $(ZITA-CONVOLVER_MIN): $(ZITA-CONVOLVER_O) - g++ -shared $(LDFLAGS) -Wl,-soname,$(ZITA-CONVOLVER_MAJ) -o $(ZITA-CONVOLVER_MIN) $(ZITA-CONVOLVER_O) $(ZITA-CONVOLVER_DEP) + ${CXX} -shared $(LDFLAGS) -Wl,-soname,$(ZITA-CONVOLVER_MAJ) -o $(ZITA-CONVOLVER_MIN) $(ZITA-CONVOLVER_O) $(ZITA-CONVOLVER_DEP) install: $(ZITA-CONVOLVER_MIN) @@ -56,7 +57,7 @@ install: $(ZITA-CONVOLVER_MIN) install -m 644 $(ZITA-CONVOLVER_H) $(DESTDIR)$(PREFIX)/include install -m 755 $(ZITA-CONVOLVER_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR) ln -sf $(ZITA-CONVOLVER_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-CONVOLVER_SO) - ldconfig + ln -sf $(ZITA-CONVOLVER_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-CONVOLVER_MAJ) clean: /bin/rm -f *~ *.o *.a *.d *.so.* Index: head/biology/phyml/Makefile =================================================================== --- head/biology/phyml/Makefile (revision 457350) +++ head/biology/phyml/Makefile (revision 457351) @@ -1,65 +1,68 @@ # Created by: ballen # $FreeBSD$ PORTNAME= phyml DISTVERSIONPREFIX= v DISTVERSION= 3.3.20170530 PORTEPOCH= 1 CATEGORIES= biology MAINTAINER= ports@FreeBSD.org COMMENT= Simple, fast, and accurate algorithm to estimate large phylogenies LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_aarch64= fails to compile: c++: the clang compiler does not support '-march=native' -BROKEN_armv6= fails to compile: c++: the clang compiler does not support '-march=native' -BROKEN_armv7= fails to compile: c++: the clang compiler does not support '-march=native' +#BROKEN_aarch64= fails to compile: c++: the clang compiler does not support '-march=native' +#BROKEN_armv6= fails to compile: c++: the clang compiler does not support '-march=native' +#BROKEN_armv7= fails to compile: c++: the clang compiler does not support '-march=native' USE_GITHUB= yes GH_ACCOUNT= stephaneguindon USES= autoreconf libtool pkgconfig GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-beagle PORTDOCS= * PORTEXAMPLES= * PLIST_FILES= bin/phyml${BIN_SUFFIX} OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_RADIO= MPI OPTIONS_RADIO_MPI= MPICH2 OPENMPI MPICH2_LIB_DEPENDS= libmpich.so:net/mpich2 MPICH2_MAKE_ARGS= CC="${LOCALBASE}/bin/mpicc" OPENMPI_LIB_DEPENDS= libmpi.so:net/openmpi OPENMPI_MAKE_ARGS= CC="${LOCALBASE}/mpi/openmpi/bin/mpicc" .include .if ${PORT_OPTIONS:MMPICH2} || ${PORT_OPTIONS:MOPENMPI} CONFIGURE_ARGS+= --enable-mpi BIN_SUFFIX= -mpi .else CONFIGURE_ARGS+= --disable-mpi BIN_SUFFIX= # none .endif post-patch: @${REINPLACE_CMD} -e \ 's|-O2 .* $${ARCH_flag}|$${CFLAGS}|' ${WRKSRC}/configure.ac +.if ${ARCH} != amd64 && ${ARCH} != i386 + @${REINPLACE_CMD} -e 's|VECTOR_FLAG=-march=native|dnl &|' ${WRKSRC}/configure.ac +.endif @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/src/utilities.h post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/doc && ${INSTALL_DATA} *.pdf \ ${STAGEDIR}${DOCSDIR}) post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \ ${STAGEDIR}${EXAMPLESDIR}) .include Index: head/games/trigger-rally/Makefile =================================================================== --- head/games/trigger-rally/Makefile (revision 457350) +++ head/games/trigger-rally/Makefile (revision 457351) @@ -1,54 +1,54 @@ # Created by: Jean-Yves Lefort # $FreeBSD$ PORTNAME= trigger-rally PORTVERSION= 0.6.5 PORTREVISION= 2 CATEGORIES= games MASTER_SITES= SF/trigger-rally/trigger-${PORTVERSION} MAINTAINER= alfix86@gmail.com COMMENT= Rally car racing game LICENSE= GPLv2 LIB_DEPENDS= libphysfs.so:devel/physfs LIB_DEPENDS+= libalut.so:audio/freealut -BROKEN_aarch64= fails to compile: error: the clang compiler does not support -march=native -BROKEN_armv6= fails to compile: error: the clang compiler does not support -march=native -BROKEN_armv7= fails to compile: error: the clang compiler does not support -march=native -BROKEN_powerpc64= fails to compile: error: the clang compiler does not support -march=native +#BROKEN_aarch64= fails to compile: error: the clang compiler does not support -march=native +#BROKEN_armv6= fails to compile: error: the clang compiler does not support -march=native +#BROKEN_armv7= fails to compile: error: the clang compiler does not support -march=native +#BROKEN_powerpc64= fails to compile: error: the clang compiler does not support -march=native WRKSRC_SUBDIR= src USES= gmake openal:al,alut USE_SDL= sdl2 image2 USE_GL= glu gl glew MAKEFILE= GNUmakefile ALL_TARGET= build WORKINGSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} DATADIR= ${PREFIX}/share/games/trigger-rally DESKTOP_ENTRIES="Trigger" "" "trigger" \ "trigger-rally" "" false PORTDOCS= README-stereo.txt README.txt DATA_AUTHORS.txt do-install: ${INSTALL_PROGRAM} ${WORKINGSRC}/bin/trigger-rally ${STAGEDIR}${PREFIX}/bin ${MKDIR} ${STAGEDIR}${DATADIR} cd ${WORKINGSRC}/bin && ${CP} trigger-rally.config.defs ${STAGEDIR}${DATADIR} ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WORKINGSRC}/doc && ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} cd ${WORKINGSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} .for i in 16 22 24 32 36 48 64 72 96 128 192 256 @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/ && \ ${MV} ${STAGEDIR}${DATADIR}/icon/trigger-${i}.png \ ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/trigger.png .endfor ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/ && \ ${MV} ${STAGEDIR}${DATADIR}/icon/trigger-rally-icons.svg \ ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/trigger-rally-icons.svg .include Index: head/games/trigger-rally/files/patch-GNUmakefile =================================================================== --- head/games/trigger-rally/files/patch-GNUmakefile (revision 457350) +++ head/games/trigger-rally/files/patch-GNUmakefile (revision 457351) @@ -1,17 +1,26 @@ --- GNUmakefile.orig 2016-11-05 17:27:10 UTC +++ GNUmakefile +@@ -21,7 +21,7 @@ SRCFILES := $(shell find $(PROJDI + OBJFILES := $(patsubst %.cpp, %.o, $(SRCFILES)) + DEPFILES := $(patsubst %.cpp, %.d, $(SRCFILES)) + WARNINGS ?= -Wall -Wextra -pedantic +-OPTIMS ?= -march=native -mtune=native -Ofast ++OPTIMS ?= -mtune=native -Ofast + DMACROS := -DNDEBUG -DUNIX -DPACKAGE_VERSION=\"$(DISTVER)\" + INCDIRS := -I'./include' + CXXFLAGS += -std=c++11 $(WARNINGS) $(OPTIMS) @@ -125,7 +125,7 @@ $(TR_EXEFILE): $(OBJFILES) printf "\t%s\n" $$file; \ done; @printf "\t-> %s\n" $@ - @$(CXX) -o $@ $(OBJFILES) $(LDFLAGS) + @$(CXX) `sdl2-config --libs` -o $@ $(OBJFILES) $(LDFLAGS) @printf "strip\t%s\n" $@ @strip $@ @@ -155,4 +155,4 @@ clean: # %.o: %.cpp GNUmakefile @printf "%s\t%s -> %s\n" $(CXX) $< $@ - @$(CXX) $(CXXFLAGS) $(CPPFLAGS) -MMD -MP -c $< -o $@ + @$(CXX) `sdl2-config --cflags` $(CXXFLAGS) $(CPPFLAGS) -MMD -MP -c $< -o $@