freebsd-ports/games/lianliankan/Makefile
Tijl Coosemans 216b5a285f - Fix missing library problems when the linker enforces explicit linking
PR:		192062
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-08-26 14:06:08 +00:00

54 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= 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>