2019-07-12 21:02:12 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2019/07/12 21:02:20 sthen Exp $
|
2016-12-02 13:10:17 +00:00
|
|
|
|
|
|
|
NOT_FOR_ARCHS= ${BE_ARCHS}
|
2016-11-03 17:30:32 +00:00
|
|
|
|
|
|
|
COMMENT= open-source port of Prince of Persia
|
|
|
|
|
|
|
|
DISTNAME= sdlpop-20161103
|
|
|
|
CATEGORIES= games
|
2016-11-10 05:41:53 +00:00
|
|
|
REVISION= 1
|
2016-11-03 17:30:32 +00:00
|
|
|
|
|
|
|
GH_ACCOUNT= NagyD
|
|
|
|
GH_PROJECT= SDLPoP
|
|
|
|
GH_COMMIT= 6185f28a3b8b74cfc5762aeeea38aedb4e142cbc
|
|
|
|
|
|
|
|
MAINTAINER= Robert Nagy <robert@openbsd.org>
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIST}/src
|
|
|
|
USE_GMAKE= Yes
|
2017-02-27 20:50:32 +00:00
|
|
|
MAKE_FLAGS= CC="${CC}" LOCALBASE="${LOCALBASE}"
|
2016-11-03 17:30:32 +00:00
|
|
|
|
|
|
|
# GPLv3
|
2019-07-12 21:02:12 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2016-11-03 17:30:32 +00:00
|
|
|
|
|
|
|
WANTLIB= SDL2 SDL2_image SDL2_mixer c m
|
|
|
|
|
|
|
|
LIB_DEPENDS= devel/sdl2-image \
|
|
|
|
devel/sdl2-mixer
|
|
|
|
|
|
|
|
pre-configure:
|
2017-02-27 20:50:32 +00:00
|
|
|
${SUBST_CMD} ${WRKSRC}/seg009.c
|
2016-11-03 17:30:32 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/sdlpop/data
|
|
|
|
cp -rp ${WRKDIST}/data/* ${PREFIX}/share/sdlpop/data
|
|
|
|
${INSTALL_PROGRAM} \
|
|
|
|
${WRKDIST}/prince ${PREFIX}/bin/sdlpop
|
2016-11-10 05:41:53 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sdlpop
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/doc/Readme.txt ${PREFIX}/share/doc/sdlpop
|
2016-11-03 17:30:32 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|