freebsd-ports/emulators/atari800/Makefile
Rong-En Fan 741aa71483 Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
2008-08-21 06:18:49 +00:00

111 lines
3 KiB
Makefile

# New ports collection makefile for: Atari800
# Date created: 29th April, 1997
# Whom: Joel Sutton <jsutton@webnet.com.au>
#
# $FreeBSD$
#
PORTNAME= atari800
PORTVERSION= 2.0.3
PORTREVISION= 2
CATEGORIES= emulators
MASTER_SITES= SF
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} xf25.zip
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Atari 8-bit computer emulator
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
RESTRICTED= "xf25 contains copyright ROMs and cannot be distributed."
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}"
MAN1= atari800.1
CFLAGS+= -I${LOCALBASE}/include/libpng
LDFLAGS= -L${LOCALBASE}/lib
ATARI_XF= ataribas.rom atariosb.rom atarixl.rom demos1.xfd \
demos2.xfd dos25.xfd mydos45d.atr
.if defined(WITH_SDL)
PKGNAMESUFFIX= -sdl
USE_SDL= sdl
CONFIGURE_ARGS+= --target=sdl
.else
USE_XORG= x11 xext
.if defined(WITHOUT_SHM)
CONFIGURE_ARGS+= --target=x11
.else
CONFIGURE_ARGS+= --target=x11-shm
.endif
.endif
.if defined(WITH_SERIOSOUND)
CONFIGURE_ARGS+= --enable-seriosound
.endif
.if defined(WITH_CLIPSOUND)
CONFIGURE_ARGS+= --enable-cripsound
.endif
.if defined(WITH_PAGEDATTRIB)
CONFIGURE_ARGS+= --enable-pagedattrib
.endif
.if defined(WITH_BUFFEREDLOG)
CONFIGURE_ARGS+= --enable-bufferedlog
.endif
.if defined(WITH_VERYSLOW)
CONFIGURE_ARGS+= --enable-veryslow
.endif
pre-everything::
@${ECHO_MSG} ""
@${ECHO_MSG} "Atari800 has the following tunable option(s):"
@${ECHO_MSG} " WITHOUT_SHM=yes Use X11 frontend without shared memory extensions"
@${ECHO_MSG} " WITH_SDL=yes Use SDL frontend"
@${ECHO_MSG} " WITH_SERIOSOUND=yes Use serial in/out sound"
@${ECHO_MSG} " WITH_CLIPSOUND=yes Use sound clipping"
@${ECHO_MSG} " WITH_PAGEDATTRIB=yes Use page-based attribute array"
@${ECHO_MSG} " WITH_BUFFEREDLOG=yes Use buffered debug output"
@${ECHO_MSG} " (until the graphics mode switches back to text mode)"
@${ECHO_MSG} " WITH_VERYSLOW=yes Use very slow computer support"
@${ECHO_MSG} " (use with the -refresh option)"
@${ECHO_MSG} ""
post-patch:
@${CP} ${FILESDIR}/atari800.cfg ${WRKSRC}
@${REINPLACE_CMD} -e 's|GUMBY|${DATADIR}|g' ${WRKSRC}/atari800.cfg
@${REINPLACE_CMD} -e 's|/etc|${DATADIR}|g' ${WRKSRC}/atari.c
@${REINPLACE_CMD} -e 's|sdl-config|$$SDL_CONFIG|g' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
pre-configure:
@${UNZIP_CMD} -q -L -o ${DISTDIR}/${DIST_SUBDIR}/xf25.zip ${ATARI_XF} -d ${WRKSRC}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/atari800 ${PREFIX}/bin/atari800
${INSTALL_MAN} ${WRKSRC}/atari800.man ${MANPREFIX}/man/man1/atari800.1
@${MKDIR} ${DATADIR}
${INSTALL_DATA} -m 644 ${WRKSRC}/atari800.cfg ${DATADIR}
.for file in ${ATARI_XF}
${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in BUGS CHANGES.OLD CREDITS ChangeLog FAQ INSTALL README TODO USAGE
${INSTALL_DATA} ${WRKSRC}/../DOC/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>