2013-04-30 00:27:05 +02:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
2008-09-23 13:54:19 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= lpairs
|
|
|
|
PORTVERSION= 1.0.4
|
2012-02-18 11:18:33 +01:00
|
|
|
PORTREVISION= 2
|
2008-09-23 13:54:19 +02:00
|
|
|
CATEGORIES= games
|
2010-10-03 15:34:13 +02:00
|
|
|
MASTER_SITES= SF/lgames/${PORTNAME}/
|
2008-09-23 13:54:19 +02:00
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
|
|
COMMENT= Classical memory game
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_SDL= sdl
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2008-09-23 13:54:19 +02:00
|
|
|
|
2014-02-21 14:36:56 +01:00
|
|
|
OPTIONS_DEFINE= NLS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2013-04-30 00:27:05 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2008-09-23 13:54:19 +02:00
|
|
|
PLIST_SUB+= NLS=""
|
2013-04-24 20:10:30 +02:00
|
|
|
USES+= gettext
|
2008-09-23 13:54:19 +02:00
|
|
|
CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^LIBS =/ s|$$| $${INTLLIBS}|' \
|
|
|
|
${WRKSRC}/lpairs/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(inst_dir=\).*|\1$$datarootdir/lpairs|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|