# $NetBSD: Makefile,v 1.15 2015/04/25 14:23:00 tnn Exp $ DISTNAME= lmarbles-1.0.7 PKGREVISION= 8 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lgames/} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://lgames.sourceforge.net/ COMMENT= Atomix-like puzzle GNU_CONFIGURE= yes PROFILE_DIR= ${VARBASE}/games DOC_DIR= ${PREFIX}/share/doc/${PKGBASE} EXAMPLES_DIR= ${PREFIX}/share/examples/${PKGBASE} CONFIGURE_ARGS+= --localstatedir=${PROFILE_DIR} SUBST_CLASSES+= path SUBST_STAGE.path= post-configure SUBST_FILES.path= src/lmarbles.6 SUBST_SED.path+= -e 's;/var/lib/games;${PROFILE_DIR};g' SUBST_SED.path+= -e 's;/usr/share/doc/marbles;${DOC_DIR};g' SETGIDGAME= yes SPECIAL_PERMS= bin/lmarbles ${SETGID_GAMES_PERMS} REQD_DIRS_PERMS+= ${PROFILE_DIR} ${GAMEOWN} ${GAMEGRP} ${GAMEDIRMODE} REQD_FILES_PERMS+= ${EXAMPLES_DIR}/lmarbles.prfs ${PROFILE_DIR}/lmarbles.prfs \ ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE} BUILD_DEFS+= VARBASE BUILD_DEFS+= GAMEDATAMODE BUILD_DEFS+= GAMEMODE .include "../../mk/endian.mk" .if ${MACHINE_ENDIAN} != "little" CONFIGURE_ARGS+= --enable-ascii .endif post-install: ${INSTALL_DATA_DIR} ${DESTDIR}${DOC_DIR} (cd ${WRKSRC}/src/manual; for d in *; do \ ${INSTALL_DATA} $${d} ${DESTDIR}${DOC_DIR}/$${d}; \ done) ${INSTALL_DATA_DIR} ${DESTDIR}${EXAMPLES_DIR} ${INSTALL_DATA} ${WRKSRC}/src/empty.prfs \ ${DESTDIR}${EXAMPLES_DIR}/lmarbles.prfs .include "../../audio/SDL_mixer/buildlink3.mk" .include "../../mk/bsd.pkg.mk"