a08f3919de
PLIST and delete everything under the @sample'd directory instead of the directory itself to prevent a warning from pkg_delete(1) trying to remove a non existing directory and to help preventing left-over files and directories.
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.20 2011/05/11 06:56:43 ajacoutot Exp $
|
|
|
|
COMMENT = maze game resembling boulderdash
|
|
|
|
DISTNAME = rocksndiamonds-3.3.0.1
|
|
CATEGORIES = games x11
|
|
REVISION = 0
|
|
|
|
HOMEPAGE = http://www.artsoft.org/rocksndiamonds/
|
|
|
|
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
WANTLIB = SDL c m pthread smpeg SDL_mixer SDL_image SDL_net
|
|
|
|
MASTER_SITES = http://www.artsoft.org/RELEASES/unix/rocksndiamonds/
|
|
|
|
LIB_DEPENDS = devel/sdl-mixer \
|
|
devel/sdl-image \
|
|
devel/sdl-net>=1.2.7
|
|
|
|
USE_GMAKE = Yes
|
|
MAKE_FLAGS = CC="${CC}" MAKE="${MAKE_PROGRAM}" X11_PATH="${X11BASE}" \
|
|
RO_GAME_DIR="${PREFIX}/share/rocksndiamonds" \
|
|
RW_GAME_DIR="/var/games/rocksndiamonds"
|
|
|
|
ALL_TARGET = sdl
|
|
|
|
# XXX segfaults with gcc3
|
|
MODULES += gcc4
|
|
MODGCC4_ARCHES =*
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
N = rocksndiamonds
|
|
|
|
post-extract:
|
|
@find ${WRKSRC} -name \*.orig -exec rm {} \;
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${N} ${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/${N}
|
|
@cp -R ${WRKSRC}/{graphics,levels,music,sounds} ${PREFIX}/share/${N}
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${N}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/${N}
|
|
|
|
.include <bsd.port.mk>
|