1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/games/dopewars/Makefile
Alex Kozlov e159824929 - Convert USE_GETTEXT to USES (part 3)
Approved by:	portmgr (bapt)
2013-04-24 18:10:30 +00:00

43 lines
1.2 KiB
Makefile

# Created by: Jim Mock <jim@FreeBSD.org>
# $FreeBSD$
PORTNAME= dopewars
PORTVERSION= 1.5.12
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= SF
MAINTAINER= c.petrik.sosa@gmail.com
COMMENT= UNIX rewrite of a game originally based on "Drug Wars"
USES= gettext
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_GNOME= gtk12
CONFIGURE_ARGS= --enable-networking --disable-plugins --localstatedir=${DATADIR}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL LICENCE NEWS README TODO
MAN6= dopewars.6
post-patch:
@${REINPLACE_CMD} -e 's!/pixmaps!/dopewars/pixmaps!' \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e 's!^CFLAGS =!CFLAGS = \@GLIB_CFLAGS\@!' \
${WRKSRC}/src/gui_client/Makefile.in \
${WRKSRC}/src/curses_client/Makefile.in
@${REINPLACE_CMD} -e 's!install-recursive!!g' ${WRKSRC}/doc/Makefile.in
post-install:
@${INSTALL_MAN} ${WRKSRC}/doc/dopewars.6 ${MAN6PREFIX}/man/man6
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/help
@${INSTALL_DATA} ${WRKSRC}/doc/*html ${WRKSRC}/doc/example* ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/doc/help/*html ${DOCSDIR}/help/
@${INSTALL_DATA} ${PORTDOCS:S.^.${WRKSRC}/.} ${DOCSDIR}/
.endif
.include <bsd.port.mk>