openbsd-ports/editors/tiled/Makefile
bentley 107ccb8d24 Update to tiled-0.9.1.
ok ajacoutot@
2014-04-28 09:48:54 +00:00

46 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.3 2014/04/28 09:48:54 bentley Exp $
COMMENT = tile map editor
V = 0.9.1
DISTNAME = tiled-qt-${V}
PKGNAME = tiled-${V}
SHARED_LIBS += tiled 0.0 # 1.0
CATEGORIES = editors games
HOMEPAGE = http://www.mapeditor.org/
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += GL ICE QtGui QtOpenGL SM X11 Xext Xi Xinerama Xrender
WANTLIB += c fontconfig freetype m pthread stdc++ z
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=tiled/}
RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+2,-guic
MODULES = x11/qt4
MAKE_FLAGS = CC="${CC}" \
CXX="${CXX}" \
CXXFLAGS="${CXXFLAGS}" \
PREFIX="${PREFIX}" \
LIBtiled_VERSION="${LIBtiled_VERSION}"
FAKE_FLAGS = INSTALL_ROOT="${DESTDIR}"
do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
qmake4 -makefile tiled.pro -config release
do-test:
cd ${WRKSRC}/tests/staggeredrenderer && ./staggeredrenderer && \
cd ${WRKSRC}/tests/mapreader && ./mapreader
# XXX qmake picks up Cocoa/Cocoa.h even though it's apparently unused
DPB_PROPERTIES = nojunk
.include <bsd.port.mk>