# $OpenBSD: Makefile,v 1.5 2003/09/28 19:15:52 jolan Exp $ # 64-bit issues, unaligned memory access ONLY_FOR_ARCHS= i386 macppc COMMENT= "ur-quan masters: sdl port of star control 2" COMMENT-3domusic= "ur-quan masters: 3DO music content" COMMENT-voice= "ur-quan masters: speech content" VER= 0.3 DISTNAME= uqm-${VER}-source CATEGORIES= games x11 PDIST= ${DISTNAME}.tgz CDIST= uqm-${VER}-content.zip MDIST= uqm-${VER}-3domusic.zip VDIST= uqm-${VER}-voice.zip DISTFILES= ${PDIST} ${CDIST} SUPDISTFILES= ${MDIST} ${VDIST} DIST_SUBDIR= uqm CATEGORIES= games x11 PKGNAME= uqm-${VER} PKGNAME-3domusic= uqm-3domusic-${VER} PKGNAME-voice= uqm-voice-${VER} EXTRACT_ONLY= ${PDIST} MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sc2/} HOMEPAGE= http://sc2.sourceforge.net/ MAINTAINER= Jolan Luff # GPL PERMIT_PACKAGE_CDROM= "Unresolved licensing issues" PERMIT_PACKAGE_FTP= "Unresolved licensing issues" PERMIT_DISTFILES_CDROM= "Unresolved licensing issues" PERMIT_DISTFILES_FTP= "Unresolved licensing issues" LIB_DEPENDS= SDL_image::devel/sdl-image \ vorbis.0,vorbisfile.1::audio/libvorbis NO_REGRESS= Yes USE_GMAKE= Yes USE_X11= Yes PSEUDO_FLAVORS= 3domusic voice FLAVOR?= MULTI_PACKAGES= .if ${FLAVOR:L:M3domusic} DISTFILES+= ${MDIST} MULTI_PACKAGES+=-3domusic .endif .if ${FLAVOR:L:Mvoice} DISTFILES+= ${VDIST} MULTI_PACKAGES+=-voice .endif SUBPACKAGE?= .if defined(PACKAGING) . if ${SUBPACKAGE} == "-3domusic" RUN_DEPENDS= ::games/uqm . endif . if ${SUBPACKAGE} == "-voice" RUN_DEPENDS= ::games/uqm . endif .endif WRKSRC= ${WRKDIR}/${PKGNAME} do-configure: .if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "i386" || \ ${MACHINE_ARCH} == "vax") @sed -e "s|@PREFIX@|${PREFIX}|g ; s|@ENDIAN@|undef|g" \ ${FILESDIR}/config.h > ${WRKSRC}/src/config.h .else @sed -e "s|@PREFIX@|${PREFIX}|g ; s|@ENDIAN|define|g" \ ${FILESDIR}/config.h > ${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: cd ${WRKBUILD}; ./build.sh uqm do-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/uqm ${INSTALL_DATA_DIR} ${PREFIX}/share/uqm/content/packages/addons ${INSTALL_DATA} ${WRKBUILD}/doc/users/manual.txt \ ${PREFIX}/share/doc/uqm ${INSTALL_DATA} ${WRKBUILD}/content/version \ ${PREFIX}/share/uqm/content ${INSTALL_DATA} ${FULLDISTDIR}/${CDIST} \ ${PREFIX}/share/uqm/content/packages .if ${FLAVOR:L:M3domusic} ${INSTALL_DATA} ${FULLDISTDIR}/${MDIST} \ ${PREFIX}/share/uqm/content/packages .endif .if ${FLAVOR:L:Mvoice} ${INSTALL_DATA} ${FULLDISTDIR}/${VDIST} \ ${PREFIX}/share/uqm/content/packages .endif ${INSTALL_PROGRAM} ${WRKBUILD}/uqm ${PREFIX}/bin .include