openbsd-ports/graphics/hugin/Makefile
2010-10-20 15:32:40 +00:00

75 lines
2.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.20 2010/10/20 15:32:40 sthen Exp $
VMEM_WARNING = Yes
COMMENT = panorama image stitcher
DISTNAME = hugin-2010.2.0
PKGNAME = ${DISTNAME:S/_//:L}
WRKDIST = ${WRKDIR}/${DISTNAME:C/_.*//}
SHARED_LIBS += huginbasewx 0.0
SHARED_LIBS += celeste 0.0
SHARED_LIBS += huginANN 0.0
SHARED_LIBS += huginbase 1.0
SHARED_LIBS += huginvigraimpex 0.0
CATEGORIES = graphics x11
HOMEPAGE = http://hugin.sourceforge.net/
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB += GL GLEW GLU Half Iex Imath IlmImf IlmThread ICE SM X11
WANTLIB += Xext Xi Xmu boost_date_time-mt boost_thread-mt c
WANTLIB += exiv2 glut.>=4.1 jpeg m pano13.>=2.0 png pthread
WANTLIB += stdc++ tiff wx_base wx_base_net wx_base_xml wx_gtk2_adv
WANTLIB += wx_gtk2_core wx_gtk2_gl wx_gtk2_html wx_gtk2_xrc z
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=hugin/}
RUN_DEPENDS = :desktop-file-utils-*:devel/desktop-file-utils \
::graphics/autopano-sift-c \
::graphics/enblend-enfuse \
::graphics/p5-Image-ExifTool \
::devel/gmake # yes, really a RUN_DEPENDS
LIB_DEPENDS = ::devel/boost \
:exiv2->=0.12:graphics/exiv2 \
::graphics/glew \
::graphics/freeglut \
::graphics/ilmbase \
::graphics/jpeg \
:libpano13->=2.9.17rc1:graphics/libpano13 \
::graphics/openexr \
::graphics/png \
::graphics/tiff \
::x11/wxWidgets
USE_GROFF = Yes
USE_X11 = Yes
MODULES += devel/cmake
SEPARATE_BUILD = simple
CONFIGURE_STYLE = cmake
CONFIGURE_ENV = MANDIR=man
NO_REGRESS = Yes
CFLAGS += -pthread
LDFLAGS += -L${X11BASE}/lib
pre-patch:
find ${WRKSRC} -name '*.orig' | xargs rm
cd ${WRKSRC}/CMakeModules; perl -i -pe 's/\r$$//' `find . -type f` \
../src/CMakeLists.txt
pre-configure:
${SUBST_CMD} ${WRKSRC}/CMakeModules/FindPNG.cmake \
${WRKSRC}/CMakeModules/FindGLEW.cmake
.include <bsd.port.mk>