(which is not) throughout the ports Makefiles. * Replace find|xargs with find -exec {} + * Replace -exec {} \; with -exec {} + if applicable. * Use the -delete operator to remove files and empty directories. * Combine and tweak some find(1) invocations while here. ok kn@ rsadowski@ espie@
38 lines
1.0 KiB
Makefile
38 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.11 2020/03/20 16:44:23 naddy Exp $
|
|
COMMENT = arcade-puzzle game
|
|
V = 0.3.2
|
|
DISTNAME = jag-${V}
|
|
CATEGORIES = games
|
|
HOMEPAGE = http://jag.xlabsoft.com
|
|
REVISION = 2
|
|
|
|
# GPLv3
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += GL ICE QtGui QtOpenGL QtXml SDL SDL_mixer SM X11 Xext
|
|
WANTLIB += Xi Xinerama Xrandr Xrender c fontconfig freetype m
|
|
WANTLIB += pthread ${COMPILER_LIBCXX}
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
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} {} + -o \
|
|
-type f -exec chmod ${SHAREMODE} {} +
|
|
|
|
.include <bsd.port.mk>
|