1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/games/lianliankan/Makefile
Rusmir Dusko f2658ab325 - Remove not needed DOCS
- Add NLS Option
- Support STAGEDIR and add OPTIONS_SUB
- Add REINPLACE_CMD, fix bad GTK code
- Use REINPLACE_CMD instead of simple patches
- Change files/patch-src__Makefile.am, disable warning with - -Wal
- Break lines around 80 characters

Approved by:	pawel / wg (mentors, implicit)
2013-12-27 11:01:19 +00:00

56 lines
1.2 KiB
Makefile

# 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= nemysis@FreeBSD.org
COMMENT= Tile matching game
LICENSE= GPLv2
USES= pkgconfig
USE_GNOME= gtk20 esound
USE_AUTOTOOLS= aclocal automake autoconf libtool
AUTOMAKE_ARGS= --add-missing --copy
ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -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>