2006-06-03 05:19:52 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2006/06/03 09:33:12 alek Exp $
|
2003-08-08 18:01:36 -04:00
|
|
|
|
2003-12-05 03:20:40 -05:00
|
|
|
COMMENT= "enriched clone of the game Logical by Rainbow Arts"
|
2003-08-08 18:01:36 -04:00
|
|
|
|
|
|
|
DISTNAME= pathological-1.1.3
|
2006-06-03 05:19:52 -04:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2003-08-08 18:01:36 -04:00
|
|
|
CATEGORIES= games
|
|
|
|
HOMEPAGE= http://pathological.sourceforge.net/
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-28 17:41:14 -05:00
|
|
|
WANTLIB= c
|
2003-08-08 18:01:36 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pathological/}
|
|
|
|
|
2006-01-28 14:17:21 -05:00
|
|
|
MODULES= lang/python
|
2003-08-08 18:01:36 -04:00
|
|
|
|
2006-01-28 14:17:21 -05:00
|
|
|
RUN_DEPENDS= :pygame-*:devel/pygame
|
2003-08-08 18:01:36 -04:00
|
|
|
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' \
|
2004-04-10 19:10:14 -04:00
|
|
|
${WRKSRC}/pathological{,.py}
|
2006-01-28 14:17:21 -05:00
|
|
|
@perl -pi -e 's,/usr/bin/python,${MODPY_BIN},g' \
|
2003-08-08 18:01:36 -04:00
|
|
|
${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
|
2004-10-01 11:16:22 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pathological
|
|
|
|
${INSTALL_DATA} /dev/null \
|
|
|
|
${PREFIX}/share/examples/pathological/pathological_scores
|
2003-08-08 18:01:36 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|