Skip to content

Commit

Permalink
graphics/povray38: Remove NATIVE option and do some cleanups
Browse files Browse the repository at this point in the history
- Drop NATIVE option, utilize CPUTYPE instead which is supported using
  the framework via /etc/make.conf
- Don't override optimization set by framework
- Utilize framework helpers more and do some slight rearrangement
  for better readability and consistency with Porters Handbook

PR:		273098
Reviewed by:	Philipp Ost <bsd@philippost.de> (maintainer)
Sponsored by:	Blinkinblox
  • Loading branch information
Daniel Engberg authored and Daniel Engberg committed Aug 26, 2023
1 parent a4b6c50 commit 9549a20
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions graphics/povray38/Makefile
Expand Up @@ -16,27 +16,29 @@ LICENSE_FILE= ${WRKSRC}/LICENSE

LIB_DEPENDS= libboost_thread.so:devel/boost-libs

USES= compiler:c++11-lang gmake
USES= compiler:c++14-lang gmake
USE_CXXSTD= c++14

GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-transform-name='s/povray/${PKGBASE}/' \
COMPILED_BY=${MAINTAINER}

VERSION_BASE= ${PORTVERSION:C/([0-9]+\.[0-9]+).*/\1/}
WRKSRC= ${WRKDIR}/${DISTNAME}
VERSION_BASE= ${DISTVERSION:C/([0-9]+\.[0-9]+).*/\1/}

DATADIR= ${PREFIX}/share/${PORTNAME}-${VERSION_BASE}
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${VERSION-BASE}
ETCDIR= ${PREFIX}/etc/${PORTNAME}/${VERSION_BASE}
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}-${VERSION_BASE}

OPTIONS_DEFINE= DOCS EXAMPLES IO JPEG OPENEXR OPTIMIZED_CFLAGS PNG TIFF \
CONFIGURE_ARGS= --disable-optimiz \
--program-transform-name='s/povray/${PKGBASE}/' \
COMPILED_BY=${HOSTARCH}-portbld-${OPSYS:tl}-${OSREL:R}

OPTIONS_DEFINE= DOCS EXAMPLES IO JPEG OPENEXR PNG TIFF \
X11
OPTIONS_DEFAULT= JPEG PNG TIFF
OPTIONS_SUB= yes

DOCS_DESC= Install HTML documentation
EXAMPLES_DESC= Install example scenes
IO_DESC= Without I/O restrictions (security risk)
IO_DESC= Without I/O restrictions (security risk)

IO_CONFIGURE_ON= --disable-io-restrictions

Expand All @@ -45,27 +47,19 @@ JPEG_CONFIGURE_OFF= --without-libjpeg

OPENEXR_LIB_DEPENDS= libImath.so:math/Imath \
libOpenEXR.so:graphics/openexr
OPENEXR_CONFIGURE_ON= --with-openexr
OPENEXR_CONFIGURE_OFF= --without-openexr

OPTIMIZED_CFLAGS_CONFIGURE_OFF= --disable-optimiz
OPTIMIZED_CFLAGS_CFLAGS= -march=native
OPENEXR_CONFIGURE_WITH= openexr

PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_CONFIGURE_ON= --with-libpng
PNG_CONFIGURE_OFF= --without-libpng
PNG_CONFIGURE_WITH= libpng

TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
TIFF_CONFIGURE_ON= --with-libtiff
TIFF_CONFIGURE_OFF= --without-libtiff
TIFF_CONFIGURE_WITH= libtiff

X11_USES= sdl xorg
X11_USE= SDL=sdl \
XORG=ice,sm,x11,xpm
X11_CONFIGURE_OFF= --without-x

WRKSRC= ${WRKDIR}/${DISTNAME}

.include <bsd.port.options.mk>

.if !${PORT_OPTIONS:MJPEG} || !${PORT_OPTIONS:MPNG} || !${PORT_OPTIONS:MTIFF}
Expand Down

0 comments on commit 9549a20

Please sign in to comment.