2003-07-25 07:04:30 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.3 2003/07/25 11:04:30 jolan Exp $
|
2003-04-11 05:12:52 -04:00
|
|
|
ONLY_FOR_ARCHS= i386 macppc
|
|
|
|
|
2003-07-25 07:04:30 -04:00
|
|
|
COMMENT= "ur-quan masters: sdl port of star control 2"
|
|
|
|
COMMENT-content= "ur-quan masters: minimal content"
|
|
|
|
COMMENT-3domusic= "ur-quan masters: 3DO music content"
|
|
|
|
COMMENT-voice= "ur-quan masters: speech content"
|
2003-04-11 05:12:52 -04:00
|
|
|
|
2003-07-25 07:04:30 -04:00
|
|
|
VER= 0.2
|
|
|
|
DISTNAME= uqm-${VER}-source
|
|
|
|
PDIST= ${DISTNAME}.tgz
|
|
|
|
CDIST= uqm-${VER}-content.zip
|
|
|
|
MDIST= uqm-${VER}-3domusic.zip
|
|
|
|
VDIST= uqm-${VER}-voice.zip
|
|
|
|
DISTFILES= ${PDIST} ${CDIST}
|
|
|
|
CATEGORIES= games x11
|
|
|
|
PKGNAME= uqm-${VER}p0
|
|
|
|
PKGNAME-3domusic= uqm-3domusic-${VER}
|
|
|
|
PKGNAME-content= uqm-content-${VER}
|
|
|
|
PKGNAME-voice= uqm-voice-${VER}
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sc2/}
|
2003-04-11 05:12:52 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://sc2.sourceforge.net/
|
|
|
|
|
2003-05-12 04:23:45 -04:00
|
|
|
MAINTAINER= Jolan Luff <jolan@openbsd.org>
|
2003-04-11 05:12:52 -04:00
|
|
|
|
|
|
|
# GPL
|
2003-07-25 07:04:30 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= "Unresolved licensing issues"
|
|
|
|
PERMIT_PACKAGE_FTP= "Unresolved licensing issues"
|
|
|
|
PERMIT_DISTFILES_CDROM= "Unresolved licensing issues"
|
|
|
|
PERMIT_DISTFILES_FTP= "Unresolved licensing issues"
|
2003-04-11 05:12:52 -04:00
|
|
|
|
|
|
|
LIB_DEPENDS= SDL_image::devel/sdl-image \
|
|
|
|
vorbis.0,vorbisfile.1::audio/libvorbis
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_X11= Yes
|
|
|
|
|
2003-07-25 07:04:30 -04:00
|
|
|
PSEUDO_FLAVORS= no_3domusic no_voice
|
|
|
|
FLAVOR?=
|
|
|
|
MULTI_PACKAGES= -content
|
|
|
|
.if !${FLAVOR:L:Mno_3domusic}
|
|
|
|
DISTFILES+= ${MDIST}
|
|
|
|
MULTI_PACKAGES+=-3domusic
|
|
|
|
.endif
|
|
|
|
.if !${FLAVOR:L:Mno_voice}
|
|
|
|
DISTFILES+= ${VDIST}
|
|
|
|
MULTI_PACKAGES+=-voice
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SUBPACKAGE?=
|
|
|
|
|
2003-04-11 05:12:52 -04:00
|
|
|
do-configure:
|
|
|
|
.if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "i386" || \
|
|
|
|
${MACHINE_ARCH} == "vax")
|
|
|
|
@sed -e "s|@PREFIX@|${PREFIX}|g" ${FILESDIR}/config.h-lilendian \
|
|
|
|
> ${WRKSRC}/src/config.h
|
|
|
|
.else
|
|
|
|
@sed -e "s|@PREFIX@|${PREFIX}|g" ${FILESDIR}/config.h-bigendian \
|
|
|
|
> ${WRKSRC}/src/config.h
|
|
|
|
.endif
|
|
|
|
@sed -e "s|@CC@|${CC}|g ; s|@CFLAGS@|${CFLAGS}|g ; \
|
|
|
|
s|@LOCALBASE@|${LOCALBASE}|g ; s|@PREFIX@|${PREFIX}|g ; \
|
|
|
|
s|@X11BASE@|${X11BASE}|g" ${FILESDIR}/build.vars \
|
|
|
|
> ${WRKSRC}/build.vars
|
|
|
|
|
|
|
|
do-build:
|
2003-07-25 07:04:30 -04:00
|
|
|
cd ${WRKBUILD}; ./build.sh uqm
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@mkdir -p ${WRKDIST}/content
|
|
|
|
.for R in androsyn arilou blackurq chenjesu chmmr druuge human ilwrath \
|
|
|
|
melnorme mmrnmhrm mycon orz pkunk shofixti slylandr spathi supox \
|
|
|
|
syreen thradd umgah urquan utwig vux yehat zoqfot
|
|
|
|
@mv ${WRKDIR}/${R} ${WRKDIST}/content
|
|
|
|
@mv ${WRKDIR}/${R}.shp ${WRKDIST}/content
|
|
|
|
.endfor
|
|
|
|
.for E in comm ipanims lastbat{,.sc2} lbm melee probe{,.sc2} sis{_ship,.dat} \
|
|
|
|
slides starcon{.key,.ndx,.txt} version
|
|
|
|
@mv ${WRKDIR}/${E} ${WRKDIST}/content
|
|
|
|
.endfor
|
|
|
|
@mv ${WRKDIR}/*.con ${WRKDIST}/content
|
2003-04-11 05:12:52 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/uqm
|
2003-07-25 07:04:30 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/uqm
|
2003-04-11 05:12:52 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/users/manual.txt ${PREFIX}/share/doc/uqm
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/uqm ${PREFIX}/bin
|
2003-07-25 07:04:30 -04:00
|
|
|
@cp -R ${WRKDIST}/content/* ${PREFIX}/share/uqm
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@find ${PREFIX}/share/uqm -type f -print0 | xargs -0 chmod 444
|
2003-04-11 05:12:52 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|