Update ports-mgmt/pkg-devel to version 1.4.0.p.a4
[dports.git] / games / lpairs / Makefile
1 # Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       lpairs
5 PORTVERSION=    1.0.4
6 PORTREVISION=   2
7 CATEGORIES=     games
8 MASTER_SITES=   SF/lgames/${PORTNAME}/
9
10 MAINTAINER=     amdmi3@FreeBSD.org
11 COMMENT=        Classical memory game
12
13 GNU_CONFIGURE=  yes
14 USE_SDL=        sdl
15 CPPFLAGS+=      -I${LOCALBASE}/include
16 LDFLAGS+=       -L${LOCALBASE}/lib
17
18 OPTIONS_DEFINE= NLS
19
20 .include <bsd.port.options.mk>
21
22 .if ${PORT_OPTIONS:MNLS}
23 PLIST_SUB+=     NLS=""
24 USES+=          gettext
25 CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE}
26 .else
27 CONFIGURE_ARGS+=--disable-nls
28 PLIST_SUB+=     NLS="@comment "
29 .endif
30
31 post-patch:
32         @${REINPLACE_CMD} -e '/^LIBS =/ s|$$| $${INTLLIBS}|' \
33                 ${WRKSRC}/lpairs/Makefile.in
34         @${REINPLACE_CMD} -e 's|^\(inst_dir=\).*|\1$$datarootdir/lpairs|' \
35                 ${WRKSRC}/configure
36
37 .include <bsd.port.mk>