openbsd-ports/games/jag/Makefile
stsp 5dbd94ae26 Import games/jag.
JAG is an arcade-puzzle 2D game. The aim of JAG is to break all of the
target pieces on each level, and to do this before the time runs out.
tweaks & ok landry
2013-01-27 23:54:51 +00:00

42 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2013/01/27 23:54:51 stsp Exp $
COMMENT = arcade-puzzle game
V = 0.3.2
DISTNAME = jag-${V}
CATEGORIES = games
HOMEPAGE = http://jag.xlabsoft.com
# GPLv3
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = 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 = x11/qt4
BUILD_DEPENDS = archivers/unzip
LIB_DEPENDS = devel/sdl \
devel/sdl-mixer
WRKDIST = ${WRKDIR}/jag-${V}-src
DESTDIRNAME = INSTALL_ROOT
pre-configure:
@${SUBST_CMD} ${WRKSRC}/Game.pro ${WRKSRC}/main.cpp
do-configure:
cd ${WRKSRC} && ${LOCALBASE}/bin/qmake4 Game.pro
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>