mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
49 lines
1.0 KiB
Makefile
49 lines
1.0 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ggz-client-libs
|
|
PORTVERSION= ${GGZ_VERSION}
|
|
PORTREVISION= 2
|
|
CATEGORIES= games
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= The GGZ Gaming Zone - Core Client Libraries
|
|
|
|
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
|
|
|
|
USE_AUTOTOOLS= libtool
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-debug --with-libggz-dir="${LOCALBASE}"
|
|
USE_LDCONFIG= yes
|
|
USE_GGZ= core
|
|
|
|
MAN1= ggzwrap.1
|
|
MAN3= ggzcore_h.3 ggzmod_h.3
|
|
MAN5= ggz.modules.5
|
|
MAN6= ggz.6 ggz-config.6 ggz-wrapper.6
|
|
MAN7= ggz.7
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|libggz.la|libggz.so|g' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|#!/bin/bash|#!/bin/sh|' ${WRKSRC}/ggz-wrapper/ggz
|
|
|
|
post-install:
|
|
@${TOUCH} ${PREFIX}/etc/ggz.modules
|
|
|
|
.include "${.CURDIR}/../libggz/bsd.ggz.mk"
|
|
.include <bsd.port.mk>
|