2018-07-18 02:06:10 +02:00
|
|
|
# $NetBSD: Makefile,v 1.3 2018/07/18 00:06:16 joerg Exp $
|
2016-07-24 13:48:14 +02:00
|
|
|
|
|
|
|
DISTNAME= einstein-puzzle-2.1.1
|
2016-09-29 14:09:48 +02:00
|
|
|
PKGREVISION= 1
|
2016-07-24 13:48:14 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=lksj/}
|
|
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= https://github.com/lksj/einstein-puzzle/
|
|
|
|
COMMENT= Computer implementation of a puzzle invented by Albert Einstein
|
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
2018-07-18 02:06:10 +02:00
|
|
|
USE_LANGUAGES= c++03
|
2016-07-24 13:48:14 +02:00
|
|
|
|
|
|
|
MAKE_FLAGS+= PREFIX=${PREFIX}
|
|
|
|
|
|
|
|
INSTALLATION_DIRS+= libexec
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
${ECHO} '#!/bin/sh' > ${WRKDIR}/einstein.sh
|
|
|
|
${ECHO} "cd ${PREFIX}/share/einstein/res && ${PREFIX}/libexec/einstein" >> ${WRKDIR}/einstein.sh
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MV} ${DESTDIR}${PREFIX}/bin/einstein ${DESTDIR}${PREFIX}/libexec
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/einstein.sh ${DESTDIR}${PREFIX}/bin/einstein
|
|
|
|
|
|
|
|
.include "../../audio/SDL_mixer/buildlink3.mk"
|
|
|
|
.include "../../devel/SDL/buildlink3.mk"
|
|
|
|
.include "../../devel/SDL_ttf/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|