=================================================================== RCS file: /cvs/ports/games/ufoai/Attic/Makefile,v retrieving revision 1.1 retrieving revision 1.10 diff -u -r1.1 -r1.10 --- ports/games/ufoai/Attic/Makefile 2009/06/09 15:07:00 1.1 +++ ports/games/ufoai/Attic/Makefile 2010/09/03 11:06:20 1.10 @@ -1,19 +1,11 @@ -# $OpenBSD: Makefile,v 1.1 2009/06/09 14:07:00 yason Exp $ -#ONLY_FOR_ARCHS = ??? -#NOT_FOR_ARCHS = ??? -#SHARED_ONLY = ??? -#COMES_WITH = ??? -#BROKEN = reason +# $OpenBSD: Makefile,v 1.10 2010/09/03 10:06:20 yason Exp $ COMMENT = squad-based tactical strategy game -# COMMENT-foo = ??? for multi packages -DISTNAME = ufoai-2.2.1-source -PKGNAME = ufoai-2.2.1 -#PKGNAME-foo = ??? for multi packages +V = 2.3 +DISTNAME = ufoai-${V}-source +PKGNAME = ${DISTNAME:S/-source//} -#SHARED_LIBS = ??? - CATEGORIES = games x11 HOMEPAGE = http://ufoai.sourceforge.net/ @@ -26,67 +18,54 @@ PERMIT_DISTFILES_CDROM =Yes PERMIT_DISTFILES_FTP = Yes -#WANTLIB = ??? +WANTLIB += FLAC GL SDL SDL_image SDL_mixer SDL_ttf c crypto curl curses idn jpeg m +WANTLIB += mikmod ogg png pthread smpeg ssl tiff theora vorbis vorbisfile xvidcore z MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=ufoai/} -#DISTFILES = ??? -#EXTRACT_ONLY = ??? EXTRACT_SUFX = .tar.bz2 -#DIST_SUBDIR = ??? +MODULES = devel/gettext +LIB_DEPENDS = ::audio/openal \ + ::devel/sdl-image \ + ::devel/sdl-mixer \ + ::devel/sdl-ttf \ + ::devel/libexecinfo \ + ::graphics/jpeg \ + ::graphics/png \ + ::multimedia/libtheora \ + ::multimedia/xvidcore \ + ::net/curl \ + ::x11/gtkglext \ + ::x11/gtksourceview \ + ${MODGETTEXT_LIB_DEPENDS} +RUN_DEPENDS = :ufoai-data-${V}:games/ufoai-data -#MODULES = ??? -#BUILD_DEPENDS = ??? -#RUN_DEPENDS = ??? -#LIB_DEPENDS = ??? -#REGRESS_DEPENDS = ??? - -#MAKE_FLAGS = ??? -#MAKE_ENV = ??? -#FAKE_FLAGS = ??? -#REGRESS_FLAGS = ??? - USE_X11 = Yes USE_GMAKE = Yes -#USE_LIBTOOL = Yes -CONFIGURE_STYLE = gnu -CONFIGURE_ARGS += --enable-release=yes -CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng -I${X11BASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -liconv -pthread" +MAKE_FLAGS += CFLAGS='-DHAVE_CONFIG_H -Wall -pipe -ansi' \ + ${CONFIGURE_ENV} +AUTOCONF_VERSION = 2.63 +AUTOMAKE_VERSION = 1.9 +CONFIGURE_STYLE = autoconf gnu +CONFIGURE_ARGS = --enable-release=yes --disable-ufo2map -#FLAVORS = 1 2 3 a b -#FLAVOR ?= -# grab multiple choice value -#CHOICE = ${FLAVOR:L:Na:Nb} -# check that CHOICE is 1 OR 2 OR 3, or error out -#.if ${CHOICE} == "1" -# code for 1 -#.elif ${CHOICE} == "2" -# code for 2 -#.elif ${CHOICE} == "3" -# code for 3 -#.else -#ERRORS += "Fatal: Conflicting flavor: ${FLAVOR}" -#.endif -# check for switches -#.if ${FLAVOR:L:Ma} -# code for a -#.endif -#.if ${FLAVOR:L:Mb} -# code for b -#.endif +CONFIGURE_ENV += CFLAGS="-pthread" \ + CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include -I${LOCALBASE}/include/libpng" \ + LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib -liconv" -#CFLAGS = -O2 -pipe -#LDFLAGS = ??? -#MAKE_FILE = ??? -#PKG_ARCH = ??? -#WRKDIST = ??? if other than ${WRKDIR}/$DISTNAME -#WRKSRC = ??? if other than ${WRKDIST} -#WRKBUILD = ??? if other than ${WRKSRC} -#WRKCONF = ??? if other than ${WRKBUILD} +INSTALL_TARGET = install_exec -#ALL_TARGET = ??? -#INSTALL_TARGET = ??? -#REGRESS_TARGET = ??? +do-extract: + -cd ${WRKDIR} && bzip2 -dc ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX} | tar xf - + +pre-configure: + cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \ + AUTOMAKE_VERSION=${AUTOMAKE_VERSION} aclocal + cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \ + AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoconf + cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \ + AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoheader +# cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \ +# AUTOMAKE_VERSION=${AUTOMAKE_VERSION} automake .include