=================================================================== RCS file: /cvs/ports/games/ufoai/Attic/Makefile,v retrieving revision 1.6 retrieving revision 1.9 diff -u -r1.6 -r1.9 --- ports/games/ufoai/Attic/Makefile 2009/08/17 22:19:29 1.6 +++ ports/games/ufoai/Attic/Makefile 2010/05/27 21:16:00 1.9 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.6 2009/08/17 21:19:29 yason Exp $ +# $OpenBSD: Makefile,v 1.9 2010/05/27 20:16:00 yason Exp $ # $FreeBSD: ports/games/ufoai/Makefile,v 1.13 2009/03/20 23:34:24 acm Exp $ COMMENT = squad-based tactical strategy game @@ -19,13 +19,12 @@ PERMIT_DISTFILES_CDROM =Yes PERMIT_DISTFILES_FTP = Yes -WANTLIB = c curses iconv intl m pthread z +WANTLIB = SDL c curses iconv intl m pthread z MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=ufoai/} EXTRACT_SUFX = .tar.bz2 -LIB_DEPENDS = SDL::devel/sdl \ - SDL_mixer::devel/sdl-mixer \ +LIB_DEPENDS = SDL_mixer::devel/sdl-mixer \ SDL_ttf::devel/sdl-ttf \ jpeg::graphics/jpeg \ png::graphics/png \ @@ -33,17 +32,19 @@ RUN_DEPENDS = :ufoai-data-${V}:games/ufoai-data USE_X11 = Yes -USE_LIBTOOL = Yes USE_GMAKE = Yes -CONFIGURE_STYLE = gnu -CONFIGURE_ARGS += --enable-release=yes \ +MAKE_FLAGS = CFLAGS='-DHAVE_CONFIG_H -Wall -pipe -ansi' +AUTOCONF_VERSION = 2.61 +CONFIGURE_STYLE = autoconf gnu +CONFIGURE_ARGS = --enable-release=yes \ + --with-opengl-framework \ --with-shaders -.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" -CONFIGURE_ARGS += --enable-mmx=yes -CONFIGURE_ENV += CFLAGS=-msse -.endif -CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng -I${X11BASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -liconv -pthread" +CONFIGURE_ENV = CFLAGS="-pthread" \ + CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include -I${LOCALBASE}/include/libpng" \ + LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -liconv" + +do-extract: + -cd ${WRKDIR} && bzip2 -dc ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX} | tar xf - post-build: cd ${WRKSRC} && gmake lang