8eaa2604c8
- if we're going to supply the build makefile, it shouldn't require gmake. - don't install executable html or gif files - add patch comments - const correctness for string constants, as demanded by gcc 4.5 - avoid needing -lcompat - fix a y2038 issue PKGREVISION -> 2
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.27 2011/12/20 16:18:16 dholland Exp $
|
|
|
|
DISTNAME= craftcc35
|
|
PKGNAME= craft-3.5
|
|
PKGREVISION= 2
|
|
CATEGORIES= games x11
|
|
MASTER_SITES= ftp://set.gmd.de/pub/as/janus/craft/
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://set.gmd.de/~hua/
|
|
COMMENT= Warcraft-like game for X11
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
USE_LANGUAGES= c c++
|
|
USE_X11BASE= yes
|
|
|
|
SUBST_CLASSES+= craft
|
|
SUBST_STAGE.craft= pre-configure
|
|
SUBST_FILES.craft= win.hc setupedit.hc option_menu.hc craft_def.h
|
|
SUBST_VARS.craft= PREFIX
|
|
|
|
SUBST_CLASSES+= buttons
|
|
SUBST_STAGE.buttons= pre-configure
|
|
SUBST_FILES.buttons= .windefaults.params
|
|
SUBST_SED.buttons= -e 's+buttons+${PREFIX}/share/craft/buttons+'
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
post-extract:
|
|
find ${WRKSRC} -type f -name '*~' -print | xargs rm -f
|
|
ln -fs ${FILESDIR}/Makefile ${WRKSRC}
|
|
for f in `find ${WRKSRC} -name "*.hc" -type f -print`; do \
|
|
${ECHO} "" >>$$f; \
|
|
done
|
|
${CHMOD} a-x ${WRKSRC}/html/pic/*.gif
|
|
${CHMOD} a-x ${WRKSRC}/html/pic/craft.gif.old
|
|
${CHMOD} a-x ${WRKSRC}/html/craftcc.html
|
|
rm -f ${WRKSRC}/hcc/hcc
|
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|