51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.27 2013/07/04 21:27:57 adam Exp $
|
|
#
|
|
|
|
DISTNAME= stratagus-2.1-src
|
|
PKGNAME= ${DISTNAME:S/-src//}
|
|
PKGREVISION= 17
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=stratagus/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://stratagus.sourceforge.net/
|
|
COMMENT= Real-time strategy engine
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
WRKSRC= ${WRKDIR}/stratagus-040702
|
|
USE_TOOLS+= gmake
|
|
USE_PKGLOCALEDIR= yes
|
|
GNU_CONFIGURE= yes
|
|
MAKE_ENV+= X11_LDFLAGS=${X_LDFLAGS:M*:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-flac --with-mad
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.if ${OPSYS} == "DragonFly"
|
|
X_LDFLAGS= ${X11_LDFLAGS} -lX11
|
|
.else
|
|
X_LDFLAGS= ${X11_LDFLAGS}
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/stratagus ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/stratagus
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/stratagus/graphics
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.* ${DESTDIR}${PREFIX}/share/doc/stratagus
|
|
${INSTALL_DATA} ${WRKSRC}/doc/graphics/* \
|
|
${DESTDIR}${PREFIX}/share/doc/stratagus/graphics
|
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
|
.include "../../audio/flac/buildlink3.mk"
|
|
.include "../../audio/libmad/buildlink3.mk"
|
|
.include "../../audio/libmikmod/buildlink3.mk"
|
|
.include "../../audio/libvorbis/buildlink3.mk"
|
|
.include "../../devel/SDL/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../lang/lua/buildlink3.mk"
|
|
.include "../../multimedia/libogg/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|