[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local]

File: [local] / Makefile (download)

Revision 1.1, Fri Jan 30 21:29:43 2015 UTC (4 years ago) by nbrk
Branch point for: MAIN

Initial revision

COMMENT-main =		exult: reimplementation of the Ultima VII game engine
COMMENT-audio =		exult: digital music and digital wave sound effects data

VERSION=		1.4.9rc1
DISTNAME=		exult-${VERSION}
PKGNAME-main=		${DISTNAME}
PKGNAME-audio=		exult-audio-${VERSION}
CATEGORIES=		games x11

HOMEPAGE=		http://exult.sourceforge.net/

MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=exult/exult-all-versions/}
MASTER_SITES0=		${MASTER_SITE_SOURCEFORGE:=exult/exult-data/}
SUPDISTFILES=		exult_audio.zip:0

CONFIGURE_STYLE=	gnu

PSEUDO_FLAVORS=	no_audio
FLAVOR?=
MULTI_PACKAGES=	 -main -audio

.include <bsd.port.arch.mk>

#RUN_DEPENDS-audio=	games/exult
PKG_ARCH-audio=	*

# GPL
PERMIT_PACKAGE_CDROM=	Yes

# XXX TODO make port-lib-depends-check
WANTLIB-main=		SDL c m pthread
#WANTLIB-audio=		ogg vorbis vorbisfile
DIST_SUBDIR=		exult

LIB_DEPENDS-main=	devel/sdl

DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

.if ${FLAVOR:L:Mno_audio}
BUILD_PACKAGES = -main
.else
BUILD_PACKAGES = -audio 
.endif

.if ${BUILD_PACKAGES:M-audio} # with beautiful music and sfx
DISTFILES+=	${SUPDISTFILES}
post-extract:
	${UNZIP} ${FULLDISTDIR}/exult_audio.zip -d ${WRKDIST}
.endif

EXULTDIR=		${PREFIX}/share/exult
post-install:
	${INSTALL_DATA_DIR} ${EXULTDIR}
	${INSTALL_DATA_DIR} ${EXULTDIR}/blackgate
	${INSTALL_DATA_DIR} ${EXULTDIR}/forgeofvirtue
	${INSTALL_DATA_DIR} ${EXULTDIR}/serpentisle
	${INSTALL_DATA_DIR} ${EXULTDIR}/silverseed

.if ${BUILD_PACKAGES:M-audio}
	${INSTALL_DATA_DIR} ${EXULTDIR}/music
	${INSTALL_DATA} ${WRKDIST}/*.flx ${EXULTDIR}/
	${INSTALL_DATA} ${WRKDIST}/*.txt ${EXULTDIR}/
	${INSTALL_DATA} ${WRKDIST}/music/*.ogg ${EXULTDIR}/music/
	${INSTALL_DATA} ${WRKDIST}/music/*.txt ${EXULTDIR}/music/
.endif

.include <bsd.port.mk>