openbsd-ports/games/micropolis/Makefile

63 lines
2.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.7 2008/01/27 18:16:22 espie Exp $
2008-01-19 16:21:55 -05:00
COMMENT= city-building simulation
DISTNAME= micropolis-20080126
WRKDIST= ${WRKDIR}/micropolis
WRKSRC= ${WRKDIST}/src
MAKE_FILE= makefile
PKGNAME= ${DISTNAME}p0
CATEGORIES= games
HOMEPAGE= http://www.donhopkins.com/home/micropolis/
MASTER_SITES= http://freedaemon.com/~deanna/
MAINTAINER= Deanna Phillips <deanna@openbsd.org>
# GPLv3
# beware of SimCity, tm of Electronic Arts
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
NO_REGRESS= Yes
USE_X11= Yes
2008-01-19 16:21:55 -05:00
RUN_DEPENDS= ::audio/esound \
::devel/desktop-file-utils
WANTLIB= c m X11 Xext Xpm
do-configure:
@perl -pi -e s,%%PREFIX%%,${PREFIX}, ${WRKDIST}/Micropolis
@perl -pi -e s,%%PREFIX%%,${PREFIX}, ${WRKDIST}/res/micropolis.tcl
@perl -pi -e s,%%LOCALBASE%%,${LOCALBASE}, ${WRKDIST}/res/micropolis.tcl
@perl -pi -e s,%%X11BASE%%,${X11BASE},g ${WRKSRC}/sim/makefile
@perl -pi -e s,%%X11BASE%%,${X11BASE},g ${WRKSRC}/tclx/config.mk
@perl -pi -e s,%%X11BASE%%,${X11BASE},g ${WRKSRC}/tk/makefile
do-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/micropolis
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/micropolis
@cd ${WRKDIST} && \
find res -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/micropolis/{} \;
@cd ${WRKDIST} && \
find images -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/micropolis/{} \;
@cd ${WRKDIST} && \
find manual -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/micropolis/{} \;
@cd ${WRKDIST} && \
find res -type f -exec ${INSTALL_DATA} {} ${PREFIX}/share/micropolis/{} \;
@cd ${WRKDIST} && \
find images -type f -exec ${INSTALL_DATA} {} ${PREFIX}/share/micropolis/{} \;
@cd ${WRKDIST} && \
find manual -type f -exec ${INSTALL_DATA} {} ${PREFIX}/share/doc/micropolis/{} \;
@${INSTALL_SCRIPT} ${WRKDIST}/Micropolis ${PREFIX}/bin/micropolis
@${INSTALL_PROGRAM} ${WRKSRC}/sim/sim ${PREFIX}/libexec/sim
2008-01-19 16:21:55 -05:00
@${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/
@${INSTALL_DATA} ${WRKDIST}/Micropolis.png ${PREFIX}/share/pixmaps/micropolis.png
2008-01-19 16:21:55 -05:00
@${INSTALL_DATA_DIR} ${PREFIX}/share/applications
@${INSTALL_DATA} ${FILESDIR}/micropolis.desktop ${PREFIX}/share/applications
.include <bsd.port.mk>