1e9b558e97
Pathological is an enriched clone of the game "Logical" by Rainbow Arts. To solve a level, fill each wheel with four marbles of matching color. Various board elements such as teleporters, switches, filters, etc. make the game interesting and challenging.
57 lines
1.8 KiB
Makefile
57 lines
1.8 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2003/08/08 22:01:36 jolan Exp $
|
|
|
|
COMMENT= "an enriched clone of the game Logical by Rainbow Arts"
|
|
|
|
DISTNAME= pathological-1.1.3
|
|
CATEGORIES= games
|
|
HOMEPAGE= http://pathological.sourceforge.net/
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pathological/}
|
|
|
|
PYTHON_VER= 2.2
|
|
|
|
RUN_DEPENDS= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER} \
|
|
:pygame-*:devel/pygame
|
|
BUILD_DEPENDS= :netpbm-*:graphics/netpbm
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/pathological
|
|
GAMEDIR= ${PREFIX}/share/pathological
|
|
|
|
pre-build:
|
|
@perl -pi -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
|
|
${WRKSRC}/pathological \
|
|
${WRKSRC}/pathological.py
|
|
@perl -pi -e 's,/usr/bin/python,${LOCALBASE}/bin/python${PYTHON_VER},g' \
|
|
${WRKSRC}/pathological.py
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && \
|
|
${CC} ${CFLAGS} -o write-highscores write-highscores.c \
|
|
&& ./makehtml
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pathological ${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/write-highscores ${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${GAMEDIR}/{circuits,graphics,music,sounds}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pathological.py ${GAMEDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/circuits/all-boards ${GAMEDIR}/circuits
|
|
${INSTALL_DATA} ${WRKSRC}/graphics/*.{jpg,png} ${GAMEDIR}/graphics
|
|
${INSTALL_DATA} ${WRKSRC}/music/*.xm ${GAMEDIR}/music
|
|
${INSTALL_DATA} ${WRKSRC}/sounds/*.wav ${GAMEDIR}/sounds
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
|
|
${INSTALL_DATA} ${WRKSRC}/pathological.xpm ${PREFIX}/share/pixmaps
|
|
@gunzip ${WRKSRC}/pathological.6.gz
|
|
${INSTALL_MAN} ${WRKSRC}/pathological.6 ${PREFIX}/man/man6
|
|
${INSTALL_DATA_DIR} ${DOCDIR}/html
|
|
${INSTALL_DATA} ${WRKSRC}/html/*.{html,png} ${DOCDIR}/html
|
|
|
|
.include <bsd.port.mk>
|