mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
9ac14925fd
builds, and add a missing dependency on gettext. Noticed by: asami
41 lines
911 B
Makefile
41 lines
911 B
Makefile
# New ports collection makefile for: freeciv
|
|
# Date created: Jun 20 1997
|
|
# Whom: ada@bsd.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= freeciv
|
|
PORTVERSION= 1.11.4
|
|
CATEGORIES= games
|
|
MASTER_SITES= ftp://ftp.freeciv.org/pub/freeciv/stable/ \
|
|
ftp://ftp.netc.pt/pub/freeciv/stable/ \
|
|
ftp://ftp.pvv.ntnu.no/pub/freeciv/stable/
|
|
|
|
MAINTAINER= sheldonh@freebsd.org
|
|
|
|
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
|
|
|
|
USE_XPM= yes
|
|
USE_BZIP2= yes
|
|
WANT_GTK= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LIBS="-L${LOCALBASE}/lib"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(HAVE_GTK)
|
|
USE_IMLIB= yes
|
|
.else
|
|
CONFIGURE_ARGS= --disable-gtktest
|
|
.endif
|
|
|
|
pre-patch:
|
|
@${PERL} -pi -e 's|-lpthread|-pthread|g ; \
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
|
|
s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
|
|
s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
|
|
|
|
.include <bsd.port.post.mk>
|