pkgsrc/games/lmarbles/Makefile
nia eb6759d0c9 lmarbles: Update to 1.0.8
1.0.8:
- added XDG desktop support (09/10/26 MS)
- fixed configuration process (09/10/26 MS)
- removed -Wall from CC arguments for better portability
  (06/04/01 PM)
2020-03-22 09:21:24 +00:00

51 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.18 2020/03/22 09:21:24 nia Exp $
DISTNAME= lmarbles-1.0.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"