Skip to content

Commit

Permalink
graphics/sharpconstruct: drop GCC on powerpc64
Browse files Browse the repository at this point in the history
  • Loading branch information
pkubaj committed Aug 10, 2023
1 parent a793245 commit c46e3d3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions graphics/sharpconstruct/Makefile
@@ -1,6 +1,6 @@
PORTNAME= sharpconstruct
PORTVERSION= 0.11
PORTREVISION= 18
PORTREVISION= 19
CATEGORIES= graphics
MASTER_SITES= SF/sharp3d/SharpConstruct/${PORTVERSION}

Expand All @@ -17,24 +17,22 @@ LIB_DEPENDS= libgtkglextmm-x11-1.2.so:x11-toolkits/gtkglextmm \
ONLY_FOR_ARCHS= amd64 i386 powerpc64 powerpc64le
ONLY_FOR_ARCHS_REASON= uses SSE instructions

USES= gl tar:bzip2 gmake pkgconfig
USES= compiler:c++11-lang gl tar:bzip2 gmake pkgconfig
USE_CXXSTD= c++11
GNU_CONFIGURE= yes
USE_GL= gl glu

CXXFLAGS_i386= -msse
CXXFLAGS_powerpc64le= -DNO_WARN_X86_INTRINSICS
CXXFLAGS_powerpc64= -DNO_WARN_X86_INTRINSICS -mvsx
PLIST_FILES= bin/${PORTNAME} \
man/man1/${PORTNAME}.1.gz
PORTDATA= *

.include <bsd.port.options.mk>

.if ${ARCH} == powerpc64
CXXFLAGS+= -DNO_WARN_X86_INTRINSICS -maltivec -mvsx
USES+= compiler:gcc-c++11-lib
.else
USES+= compiler:c++11-lang
.if ${ARCH} == powerpc64 && !defined(CPUTYPE)
CXXFLAGS+= -mcpu=power7
.endif

post-patch:
Expand Down

0 comments on commit c46e3d3

Please sign in to comment.