blob: 255e410c855f38245c259604c8aee94909d01562 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Created by: Yinghong Liu <relaxbsd@gmail.com>
# $FreeBSD$
PORTNAME= lianliankan
DISTVERSION= 2.3beta1
PORTREVISION= 7
CATEGORIES= games
MASTER_SITES= SF/llk-linux/llk-linux-source/${DISTVERSION}
DISTNAME= llk_linux-${DISTVERSION}
MAINTAINER= games@FreeBSD.org
COMMENT= Tile matching game
LICENSE= GPLv3
USES= libtool pkgconfig
USE_GNOME= gtk20 esound
USE_AUTOTOOLS= aclocal automake autoconf autoheader libtoolize
GNU_CONFIGURE= yes
AUTOMAKE_ARGS= -a -c -f
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
DATADIR= ${PREFIX}/share/llk_linux
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|po include src|po src|' \
-e '/llk_linuxdocdir/,/EXTRA_DIST =/ d' \
${WRKSRC}/Makefile.am
@${REINPLACE_CMD} -e 's|gdk_pixbuf_unref|g_object_unref| ; \
s|OK,message|OK, "%s", message|' \
${WRKSRC}/src/main.c
@${REINPLACE_CMD} -e 's|Pos.__pos|Pos|' \
${WRKSRC}/src/pak/pak.c
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e '/^SUBDIRS/s|po||' \
${WRKSRC}/Makefile.am
.endif
post-install:
${INSTALL_DATA} ${FILESDIR}/lianliankan.desktop \
${STAGEDIR}${DESKTOPDIR}
.include <bsd.port.mk>
|