freebsd-ports/games/acm/Makefile
Tijl Coosemans 68edbeeaae - Display a stage-qa warning when ports use PREFIX/var instead of /var
- Add --localstatedir=/var to _LATE_CONFIGURE_ARGS (like --mandir) but not
  when CONFIGURE_ARGS already sets it.  (GNU configure scripts set it to
  PREFIX/var when PREFIX != /usr.)
- Add --localstatedir="${PREFIX}/var" to CONFIGURE_ARGS in some ports so
  they aren't affected by this change (for now at least).  This commit is
  meant to ensure that new ports don't make the same mistake.

- games/acm: the configure script in this port is very old; instead of
  patching it more, just replace GNU_CONFIGURE with HAS_CONFIGURE.
- irc/charybdis: it already used /var but adding --localstatedir=/var
  changed the behaviour of the configure script; adjust the port to this.

PR:		199506
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2015-04-20 19:06:29 +00:00

37 lines
820 B
Makefile

# Created by: joerg
# $FreeBSD$
PORTNAME= acm
PORTVERSION= 5.0
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://mirror.amdmi3.ru/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= Arial combat simulator for X11
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= perl5
USE_XORG= x11 xext
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} \
--x-includes=${LOCALBASE}/include \
--x-libraries=${LOCALBASE}/lib
CONFIGURE_ENV= ac_cv_lib_Xm_XmCreateBulletinBoard=no \
ac_cv_lib_gdbm_dbm_fetch=no
USE_PERL5= build
MAKE_ARGS+= prefix=${STAGEDIR}${PREFIX}/ OBVDIR=${STAGEDIR}${DATADIR}/
OPTIONS_DEFINE= SOUND
SOUND_LIB_DEPENDS= libaudio.so:${PORTSDIR}/audio/nas
.include <bsd.port.options.mk>
.if empty(PORT_OPTIONS:MSOUND)
CONFIGURE_ENV+= ac_cv_lib_audio_AuCloseServer=no
.endif
.include <bsd.port.mk>