ed298848a3
the "MODULES=x11/qtX + CONFIGURE_STYLE=qmake" logic to the "MODULES=devel/qmake x11/qtX" logic. Discussed with espie@ a few weeks ago.
35 lines
998 B
Makefile
35 lines
998 B
Makefile
# $OpenBSD: Makefile,v 1.4 2016/03/26 20:37:35 zhuk Exp $
|
|
COMMENT = arcade-puzzle game
|
|
V = 0.3.2
|
|
DISTNAME = jag-${V}
|
|
CATEGORIES = games
|
|
HOMEPAGE = http://jag.xlabsoft.com
|
|
|
|
# GPLv3
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB += GL ICE QtGui QtOpenGL QtXml SDL SDL_mixer SM X11 Xext
|
|
WANTLIB += Xi Xinerama Xrandr Xrender c fontconfig freetype m
|
|
WANTLIB += pthread stdc++
|
|
|
|
MASTER_SITES = http://jag.xlabsoft.com/files/
|
|
DISTFILES = jag-${V}-src.zip jag-${V}-data.zip
|
|
|
|
MODULES = devel/qmake x11/qt4
|
|
BUILD_DEPENDS = archivers/unzip
|
|
LIB_DEPENDS = devel/sdl \
|
|
devel/sdl-mixer
|
|
WRKDIST = ${WRKDIR}/jag-${V}-src
|
|
|
|
pre-configure:
|
|
@${SUBST_CMD} ${WRKSRC}/Game.pro ${WRKSRC}/main.cpp
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/jag
|
|
cd ${WRKDIR}/jag-${V}-data/data && pax -rw . ${PREFIX}/share/jag
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/
|
|
find ${PREFIX}/share -type d -exec chmod ${DIRMODE} {} \;
|
|
find ${PREFIX}/share -type f -exec chmod ${SHAREMODE} {} \;
|
|
|
|
.include <bsd.port.mk>
|