Skip to content

Commit

Permalink
POV-Ray 3.6 is incompatible with libpng 1.5. Use the included libpng 1.2
Browse files Browse the repository at this point in the history
instead.
  • Loading branch information
Christian Weisgerber committed Jul 7, 2011
1 parent 0f9c217 commit 9b66cbb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions graphics/povray/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.19 2011/07/07 14:45:22 jasper Exp $
# $OpenBSD: Makefile,v 1.20 2011/07/07 17:46:11 naddy Exp $

COMMENT= 3D image rendering package

DISTNAME= povray-3.6.1
REVISION= 0
CATEGORIES= graphics

HOMEPAGE= http://www.povray.org/
Expand All @@ -21,7 +22,6 @@ EXTRACT_SUFX= .tar.bz2
USE_LIBTOOL= yes

LIB_DEPENDS= graphics/jpeg \
graphics/png \
graphics/tiff

CONFIGURE_STYLE= gnu
Expand All @@ -31,8 +31,13 @@ CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--disable-optimiz \
--x-includes="${X11BASE}/include" \
--includedir=${LOCALBASE}

# POV-Ray 3.6 is incompatible with libpng 1.5.
# We do not add -I${LOCALBASE}/include/libpng on purpose, so the
# included libpng 1.2 will be used.

CONFIGURE_ENV+= COMPILED_BY="OpenBSD Ports <[email protected]>" \
CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
CPPFLAGS="-I${LOCALBASE}/include" \
CXXFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lm"

Expand Down

0 comments on commit 9b66cbb

Please sign in to comment.