freebsd-ports/games/lgeneral/Makefile
Tijl Coosemans 2c9ab8d7ad devel/gettext*:
- Update to 0.20.1.
- Add options to install documentation and examples.

devel/libtextstyle:
- Take maintainership because it is now released as part of gettext.

ftp/weex:
- Remove bundled gettext (intl/): no longer supported.
- Patch configure.in, Makefile.am and src/Makefile.am to remove references
  to bundled gettext.
- Patch configure.in to add AC_CONFIG_MACRO_DIR([m4]) so aclocal.m4 will
  include gettext .m4 files from m4/ (matching the version set with
  AM_GNU_GETTEXT_VERSION) instead of /usr/local/share/aclocal.
- Port to modern gettext: add po/Makevars and fix a problem in the French
  translation.
- Patch configure.in to fix detection of OpenSSL 1.1.
- In port Makefile: add EXAMPLES and NLS options, add ports OpenSSL support,
  set default path for root certificates.

games/lgeneral:
- Patch Makefile.in instead of Makefile.am so USES=autoreconf isn't needed.

www/sarg:
- Patch configure.ac to add AC_CONFIG_MACRO_DIR([m4]) so aclocal.m4 will
  include gettext .m4 files from m4/ (matching the version set with
  AM_GNU_GETTEXT_VERSION) instead of /usr/local/share/aclocal.
- Port Makefile: remove obsolete post-patch, patching configure also has no
  effect with USES=autoreconf.

PR:		238277
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2019-06-08 09:55:01 +00:00

52 lines
1.1 KiB
Makefile

# Created by: Filippo Natali <filippo@widestore.net>
# $FreeBSD$
PORTNAME= lgeneral
PORTVERSION= 1.3.2
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME} \
SF/${PORTNAME}/${PORTNAME}-data:data
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
pg-data${EXTRACT_SUFX}:data
MAINTAINER= ports@FreeBSD.org
COMMENT= Turn-based strategy engine inspired by Panzer General
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_powerpc= does not install
BROKEN_sparc64= does not install
USES= gmake localbase
USE_CSTD= gnu89
USE_SDL= sdl
GNU_CONFIGURE= yes
OPTIONS_DEFINE= DOCS NLS SOUND
OPTIONS_DEFAULT= SOUND
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
SOUND_USE= sdl=mixer
SOUND_CONFIGURE_OFF= --disable-sound
post-patch:
.for i in flags terrain units
@${REINPLACE_CMD} -e '/mkinstalldirs/s/$$(${i}dir)/$$(DESTDIR)&/' \
${WRKSRC}/src/gfx/${i}/Makefile.in
.endfor
post-install:
${SETENV} DISPLAY= \
${STAGEDIR}${PREFIX}/bin/lgc-pg --separate-bridges \
-s ${WRKDIR}/pg-data \
-d ${STAGEDIR}${DATADIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>