2008-01-27 13:16:22 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2008/01/27 18:16:22 espie Exp $
|
2008-01-19 16:21:55 -05:00
|
|
|
|
2008-01-17 22:36:32 -05:00
|
|
|
COMMENT= city-building simulation
|
|
|
|
|
2008-01-27 11:34:32 -05:00
|
|
|
DISTNAME= micropolis-20080126
|
|
|
|
WRKDIST= ${WRKDIR}/micropolis
|
2008-01-21 07:14:04 -05:00
|
|
|
WRKSRC= ${WRKDIST}/src
|
|
|
|
MAKE_FILE= makefile
|
2008-01-27 13:16:22 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2008-01-17 22:36:32 -05:00
|
|
|
|
|
|
|
CATEGORIES= games
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.donhopkins.com/home/micropolis/
|
2008-01-27 11:34:32 -05:00
|
|
|
MASTER_SITES= http://freedaemon.com/~deanna/
|
2008-01-17 22:36:32 -05:00
|
|
|
|
|
|
|
MAINTAINER= Deanna Phillips <deanna@openbsd.org>
|
|
|
|
|
2008-01-21 07:14:04 -05:00
|
|
|
# GPLv3
|
|
|
|
# beware of SimCity, tm of Electronic Arts
|
2008-01-17 22:36:32 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2008-01-20 12:41:22 -05:00
|
|
|
NO_REGRESS= Yes
|
2008-01-17 22:36:32 -05:00
|
|
|
USE_X11= Yes
|
2008-01-19 16:21:55 -05:00
|
|
|
RUN_DEPENDS= ::audio/esound \
|
|
|
|
::devel/desktop-file-utils
|
2008-01-17 22:36:32 -05:00
|
|
|
|
|
|
|
WANTLIB= c m X11 Xext Xpm
|
|
|
|
|
2008-01-21 07:14:04 -05:00
|
|
|
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
|
2008-01-17 22:36:32 -05:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/micropolis
|
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/micropolis
|
2008-01-21 07:14:04 -05:00
|
|
|
@cd ${WRKDIST} && \
|
2008-01-17 22:36:32 -05:00
|
|
|
find res -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/micropolis/{} \;
|
2008-01-21 07:14:04 -05:00
|
|
|
@cd ${WRKDIST} && \
|
2008-01-17 22:36:32 -05:00
|
|
|
find images -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/micropolis/{} \;
|
2008-01-21 07:14:04 -05:00
|
|
|
@cd ${WRKDIST} && \
|
2008-01-17 22:36:32 -05:00
|
|
|
find manual -type d -exec ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/micropolis/{} \;
|
2008-01-21 07:14:04 -05:00
|
|
|
@cd ${WRKDIST} && \
|
2008-01-17 22:36:32 -05:00
|
|
|
find res -type f -exec ${INSTALL_DATA} {} ${PREFIX}/share/micropolis/{} \;
|
2008-01-21 07:14:04 -05:00
|
|
|
@cd ${WRKDIST} && \
|
2008-01-17 22:36:32 -05:00
|
|
|
find images -type f -exec ${INSTALL_DATA} {} ${PREFIX}/share/micropolis/{} \;
|
2008-01-21 07:14:04 -05:00
|
|
|
@cd ${WRKDIST} && \
|
2008-01-17 22:36:32 -05:00
|
|
|
find manual -type f -exec ${INSTALL_DATA} {} ${PREFIX}/share/doc/micropolis/{} \;
|
2008-01-21 07:14:04 -05:00
|
|
|
@${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/
|
2008-01-21 07:14:04 -05:00
|
|
|
@${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
|
2008-01-17 22:36:32 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|