[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / qnetwalk

File: [cvs.NetBSD.org] / pkgsrc / games / qnetwalk / Attic / Makefile (download)

Revision 1.21, Sat Oct 6 11:54:50 2012 UTC (10 years, 11 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2012Q4-base, pkgsrc-2012Q4
Changes since 1.20: +1 -3 lines

Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.

# $NetBSD: Makefile,v 1.21 2012/10/06 11:54:50 asau Exp $
#

DISTNAME=	qnetwalk-1.2
PKGREVISION=	9
CATEGORIES=	x11 games
MASTER_SITES=	http://qt.osdn.org.ua/

MAINTAINER=	ianzag@mail.ru
HOMEPAGE=	http://qt.osdn.org.ua/qnetwalk.html
COMMENT=	QNetwalk is a Qt-version of the popular NetWalk game

USE_TOOLS+=	gmake
USE_LANGUAGES=	c c++
USE_LIBTOOL=	YES

INSTALLATION_DIRS+=	bin

QNETWALK_BIN=	${PREFIX}/bin
QNETWALK_MAN=	${PREFIX}/${PKGMANDIR}/man6
QNETWALK_DATA=	${PREFIX}/share/games/${PKGBASE}
QNETWALK_TR=	${QNETWALK_DATA}
KDEDIR=		${PREFIX}/share/kde

do-configure:
	(cd ${WRKSRC} && ${QTDIR}/bin/qmake -o Makefile qnetwalk.pro)

INSTALL_MAKE_FLAGS+=	INSTALL_ROOT=${DESTDIR}

# Fix hardcoded paths
SUBST_CLASSES+=		path
SUBST_MESSAGE.path=	Fixing hardcoded paths.
SUBST_STAGE.path=	pre-configure
SUBST_FILES.path=	qnetwalk.pro main.cpp mainwindow.cpp
SUBST_SED.path=		-e 's:@QNETWALK_BIN@:${QNETWALK_BIN}:g'
SUBST_SED.path+=	-e 's:@QNETWALK_MAN@:${QNETWALK_MAN}:g'
SUBST_SED.path+=	-e 's:@QNETWALK_TR@:${QNETWALK_TR}:g'
SUBST_SED.path+=	-e 's:@QNETWALK_DATA@:${QNETWALK_DATA}:g'
SUBST_SED.path+=	-e 's:@KDEDIR@:${KDEDIR}:g'

.include "../../x11/qt3-libs/buildlink3.mk"
.include "../../x11/qt3-tools/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"