aboutsummaryrefslogtreecommitdiffstats
path: root/games/lpairs/Makefile
blob: e189ac539f19e1211d63372b98c76b8bf4d77f54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# New ports collection makefile for:    lpairs
# Date created:     12 Sep 2008
# Whom:         Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   lpairs
PORTVERSION=    1.0.4
CATEGORIES= games
MASTER_SITES=   SF/lgames/${PORTNAME}/1.0

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Classical memory game

GNU_CONFIGURE=  yes
USE_SDL=    sdl
CONFIGURE_ENV=  LDFLAGS="-L${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include"

.if !defined(WITHOUT_NLS)
PLIST_SUB+= NLS=""
USE_GETTEXT=    yes
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>