mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
graphics/sharpconstruct: fix build on powerpc64le
Use GCC's SSE translation. Remove -msse and add it to i386 flags.
This commit is contained in:
parent
7eb55359e7
commit
45ac01128f
@ -13,18 +13,28 @@ LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
LIB_DEPENDS= libgtkglextmm-x11-1.2.so:x11-toolkits/gtkglextmm \
|
||||
libglademm-2.4.so:devel/libglademm24
|
||||
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
ONLY_FOR_ARCHS= amd64 i386 powerpc64le
|
||||
ONLY_FOR_ARCHS_REASON= uses SSE instructions
|
||||
|
||||
USES= compiler:c++11-lang gl tar:bzip2 gmake pkgconfig
|
||||
USES= gl tar:bzip2 gmake pkgconfig
|
||||
USE_CXXSTD= c++11
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GL= gl glu
|
||||
|
||||
CXXFLAGS_i386= -msse
|
||||
PLIST_FILES= bin/${PORTNAME} \
|
||||
man/man1/${PORTNAME}.1.gz
|
||||
PORTDATA= *
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${ARCH} == powerpc64le
|
||||
CXXFLAGS+= -DNO_WARN_X86_INTRINSICS
|
||||
USES+= compiler:gcc-c++11-lib
|
||||
.else
|
||||
USES+= compiler:c++11-lang
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/include/Align.hh
|
||||
@${REINPLACE_CMD} -e 's|"/sharpconstruct|"|' ${WRKSRC}/src/MainWindow.cc
|
||||
|
11
graphics/sharpconstruct/files/patch-src_Makefile.in
Normal file
11
graphics/sharpconstruct/files/patch-src_Makefile.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/Makefile.in.orig 2021-12-02 18:50:44 UTC
|
||||
+++ src/Makefile.in
|
||||
@@ -172,7 +172,7 @@ sharedstatedir = ${prefix}/com
|
||||
sysconfdir = ${prefix}/etc
|
||||
target_alias =
|
||||
INCLUDES = -I../include
|
||||
-AM_CXXFLAGS = -Wall -msse $(libglademm_CFLAGS) $(gtkglextmm_CFLAGS) $(X_CFLAGS) $(BINRELOC_CFLAGS)
|
||||
+AM_CXXFLAGS = -Wall $(libglademm_CFLAGS) $(gtkglextmm_CFLAGS) $(X_CFLAGS) $(BINRELOC_CFLAGS)
|
||||
LDADD = $(libglademm_LIBS) $(gtkglextmm_LIBS) -lGL -lGLU $(X_LIBS)
|
||||
sharpconstruct_SOURCES = \
|
||||
ArcBall.cc \
|
Loading…
Reference in New Issue
Block a user